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/shairplay-0.9.0~git20180824.096b61a+dfsg1/include/shairplay/dnssd.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/include/shairplay/raop.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/dnssdservice.cpp
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/dnssdservice.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/raopcallbackhandler.cpp
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/raopcallbackhandler.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/raopcallbacks.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/raopservice.cpp
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/bindings/qt4/raopservice.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/aes_ctr.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/aes_ctr.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/alac/alac.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/alac/alac.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/alac/stdint_win.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/compat.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint_impl.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/config.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/crypto.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/hmac.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/md5.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/rc4.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/sha1.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssdint.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/add_scalar.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ed25519.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/fe.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/fe.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/fixedint.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/key_exchange.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/keypair.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/precomp_data.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sc.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sc.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/seed.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sha512.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sha512.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sign.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/verify.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/global.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_parser.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_parser.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/httpd.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/httpd.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/memalign.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/netutils.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/netutils.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/hand_garble.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/modified_md5.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/playfair.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/playfair.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsapem.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsapem.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sdp.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sdp.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sockets.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/threads.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.h
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/dnssd_test.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/example.c
Examining data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/main.c

FINAL RESULTS:

data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/compat.h:21: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.
#ifndef snprintf
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/compat.h:22: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.
#define snprintf _snprintf
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/compat.h:22:18:  [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.
#define snprintf _snprintf
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:88: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.
#define snprintf                _snprintf
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:88:33:  [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.
#define snprintf                _snprintf
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.c:120:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(buffer, sizeof(buffer)-1, fmt, ap);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/hand_garble.c:4:9:  [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 printf(...) (void)0;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/modified_md5.c:7:9:  [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 printf(...) (void)0;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:10:9:  [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 printf(...) (void)0;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:5:9:  [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 printf(...) (void)0;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:189:4:  [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(authstr, realm);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:191:4:  [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(authstr, conn->nonce);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:85:9:  [3] (random) srandom:
  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.
#define srandom(A)              srand(A)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:85:33:  [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.
#define srandom(A)              srand(A)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:86:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random()                rand()
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:98:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
#define chroot(A)               _chdir(A)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/aes_ctr.c:40: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(ctx->counter, nonce, AES_BLOCKSIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/aes_ctr.c:48: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 block[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/alac/alac.c:448:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer_out+1, error_buffer+1, (output_size-1) * 4);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:27: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 charlist[65];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:28: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 charmap[256];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:182: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(inbuf, src, srclen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:156:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char Rcon[30]=
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:247:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ctx->iv, iv, 16);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:277:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(iv, ctx->iv, AES_IV_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:285:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(msg_32, msg, AES_BLOCKSIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:299:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out, out_32, AES_BLOCKSIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:305:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ctx->iv, iv, AES_IV_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:316:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(iv, ctx->iv, AES_IV_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:324:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(msg_32, msg, AES_BLOCKSIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:342:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(out, out_32, AES_BLOCKSIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/aes.c:348:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ctx->iv, iv, AES_IV_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.c:265:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(biR->comps, bi->comps, bi->size*COMP_BYTE_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.c:436:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tmp_u->comps, &u->comps[u->size-n-1-j], (n+1)*COMP_BYTE_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.c:488:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&u->comps[u->size-n-1-j], tmp_u->comps, (n+1)*COMP_BYTE_SIZE);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/hmac.c:55:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k_ipad, key, key_len);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/hmac.c:56:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k_opad, key, key_len);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/hmac.c:88:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k_ipad, key, key_len);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/hmac.c:89:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(k_opad, key, key_len);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/md5.c:139:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ctx->buffer[x], msg, partLen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/md5.c:151:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ctx->buffer[x], &msg[i], len-i);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:75: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).
#undef open
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:89:9:  [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).
#define open(A,B)               _open(A,B)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:301: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(origx, x, 5 * sizeof(limb));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:305: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(origxprime, xprime, sizeof(limb) * 5);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:310: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(origxprime, xxprime, sizeof(limb) * 5);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:360: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(nqpqx, q, sizeof(limb) * 5);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:394: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(resultx, nqx, sizeof(limb) * 5);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna-c64.c:395: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(resultz, nqz, sizeof(limb) * 5);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:336: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(output, t, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:420: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(output, t, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:633: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(origx, x, 10 * sizeof(limb));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:639: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(origxprime, xprime, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:656: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(origxprime, xxprime, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:670: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(x3, xxxprime, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:671: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(z3, zzprime, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:735: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(nqpqx, q, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:769: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(resultx, nqx, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519-donna.c:770: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(resultz, nqz, sizeof(limb) * 10);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/curve25519/curve25519.h:4:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char kCurve25519BasePoint[32] = { 9 };
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:27: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 md5buf[MD5_SIZE];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:28: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 md5hex[MD5_SIZE*2];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:65: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 md5buf[MD5_SIZE];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:66: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 md5hex[MD5_SIZE*2];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:98: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 our_response[MD5_SIZE*2+1];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:61:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef union _TXTRecordRef_t { char PrivateData[16]; char *ForceNaturalAlignment; } TXTRecordRef;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:226: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 servname[MAX_SERVNAME];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:288: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 deviceid[3*MAX_HWADDR_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:289: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 features[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/add_scalar.c:9:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const unsigned char SC_1[32] = {1}; /* scalar with value 1 */
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/add_scalar.c:11:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char n[32]; 
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/add_scalar.c:19:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hashbuf[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/fe.c:461:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char s[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/fe.c:479:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char s[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:68: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.
    signed char aslide[256];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:69: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.
    signed char bslide[256];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:387: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.
    signed char e[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/key_exchange.c:5:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char e[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/seed.c:27:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("/dev/urandom", "rb");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sha512.h:12:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[128];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sign.c:9:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char hram[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/sign.c:10:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char r[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/verify.c:48:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char h[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/verify.c:49:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char checker[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:9:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:9:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:10:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:10:79:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:11:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay.h:11:78:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:16:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:16:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:22:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:22:75:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:28:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_dummy.c:28:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:8:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char reply_message[4][142] = {{0x46,0x50,0x4c,0x59,0x03,0x01,0x02,0x00,0x00,0x00,0x00,0x82,0x02,0x00,0x0f,0x9f,0x3f,0x9e,0x0a,0x25,0x21,0xdb,0xdf,0x31,0x2a,0xb2,0xbf,0xb2,0x9e,0x8d,0x23,0x2b,0x63,0x76,0xa8,0xc8,0x18,0x70,0x1d,0x22,0xae,0x93,0xd8,0x27,0x37,0xfe,0xaf,0x9d,0xb4,0xfd,0xf4,0x1c,0x2d,0xba,0x9d,0x1f,0x49,0xca,0xaa,0xbf,0x65,0x91,0xac,0x1f,0x7b,0xc6,0xf7,0xe0,0x66,0x3d,0x21,0xaf,0xe0,0x15,0x65,0x95,0x3e,0xab,0x81,0xf4,0x18,0xce,0xed,0x09,0x5a,0xdb,0x7c,0x3d,0x0e,0x25,0x49,0x09,0xa7,0x98,0x31,0xd4,0x9c,0x39,0x82,0x97,0x34,0x34,0xfa,0xcb,0x42,0xc6,0x3a,0x1c,0xd9,0x11,0xa6,0xfe,0x94,0x1a,0x8a,0x6d,0x4a,0x74,0x3b,0x46,0xc3,0xa7,0x64,0x9e,0x44,0xc7,0x89,0x55,0xe4,0x9d,0x81,0x55,0x00,0x95,0x49,0xc4,0xe2,0xf7,0xa3,0xf6,0xd5,0xba},
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:18: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 keymsg[164];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:37:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:37:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_setup(fairplay_t *fp, const unsigned char req[16], unsigned char res[142])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:49: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(res, reply_message[mode], 142);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:55:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:55:75:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_handshake(fairplay_t *fp, const unsigned char req[164], unsigned char res[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:64: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(fp->keymsg, req, 164);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:67: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(res, fp_header, 12);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:68: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(res + 12, req + 144, 20);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:73:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/fairplay_playfair.c:73:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
fairplay_decrypt(fairplay_t *fp, const unsigned char input[72], unsigned char output[16])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_parser.c:185:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char tokens[256] = {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:121: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(request->data+request->datalen, at, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:50: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(response->data+response->data_length, data, datalen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:58: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 codestr[4];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.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 hdrvalue[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/httpd.c:80: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(&httpd->callbacks, callbacks, sizeof(httpd_callbacks_t));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/httpd.c:188: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 buffer[1024];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.c:86:10:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	wclen = MultiByteToWideChar(CP_UTF8, 0, str, -1, NULL, 0);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.c:88:2:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	MultiByteToWideChar(CP_UTF8, 0, str, -1, wcstr, wclen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/logger.c:108: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 buffer[4096];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/netutils.c:195: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(dst, ptr->ai_addr, ptr->ai_addrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:29: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 ed_private[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:30: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 ed_public[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:42: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 ed_private[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:43: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 ed_ours[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:44: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 ed_theirs[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:46: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 ecdh_ours[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:47: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 ecdh_theirs[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:48: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 ecdh_secret[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:55: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 hash[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:65: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(key, hash, keylen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:72: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 seed[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:81:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_init_seed(const unsigned char seed[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:95:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_get_public_key(pairing_t *pairing, unsigned char public_key[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:99: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(public_key, pairing->ed_public, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:115: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(session->ed_private, pairing->ed_private, 64);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:116: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(session->ed_ours, pairing->ed_public, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:123:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:123:104:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:125: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 ecdh_priv[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:136: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(session->ecdh_theirs, ecdh_key, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:137: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(session->ed_theirs, ed_key, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:146:69:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_session_get_public_key(pairing_session_t *session, unsigned char ecdh_key[32])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:154: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(ecdh_key, session->ecdh_ours, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:159:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_session_get_signature(pairing_session_t *session, unsigned char signature[64])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:161: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 sig_msg[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:162: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 key[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:163: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 iv[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:173: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(&sig_msg[0], session->ecdh_ours, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:174: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(&sig_msg[32], session->ecdh_theirs, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:186:67:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_session_finish(pairing_session_t *session, const unsigned char signature[64])
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:188: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 sig_buffer[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:189: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 sig_msg[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:190: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 key[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:191: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 iv[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:209: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(&sig_msg[0], session->ecdh_theirs, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:210: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(&sig_msg[32], session->ecdh_ours, 32);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:22:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
pairing_t *pairing_init_seed(const unsigned char seed[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:23:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void pairing_get_public_key(pairing_t *pairing, unsigned char public_key[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:26:74:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:26:108:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int pairing_session_handshake(pairing_session_t *session, const unsigned char ecdh_key[32], const unsigned char ed_key[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:27:73:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int pairing_session_get_public_key(pairing_session_t *session, unsigned char ecdh_key[32]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:28:72:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int pairing_session_get_signature(pairing_session_t *session, unsigned char signature[64]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.h:29:71:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int pairing_session_finish(pairing_session_t *session, const unsigned char signature[64]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/modified_md5.c:50:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char blockIn[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/modified_md5.c:57: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(blockIn, originalblockIn, 64);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:312:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char blockIn[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:330:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:462:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char decryptedMessage[128];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:463:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char newSap[320];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:464:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char Q[210];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:467:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char md5[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:468:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char otherHash[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:473: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(&newSap[0x000], static_source_1, 0x11);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:474: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(&newSap[0x011], decryptedMessage, 0x80);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:475: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(&newSap[0x091], &oldSap[0x80], 0x80);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.c:476: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(&newSap[0x111], static_source_2, 0x2f);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.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(sessionKey, initial_session_key, 16);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.h:1:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char message_key[4][144] = {{0x1D, 0x24, 0x03, 0x40, 0xDC, 0xAE, 0xC7, 0xA8, 0x26, 0x7C, 0x20, 0x99, 0x5D, 0x7E, 0x89, 0x2E, 0xA2, 0x58, 0xAF, 0xBE, 0xB8, 0x07, 0x9A, 0x2F, 0x87, 0x77, 0xD3, 0xCE, 0x37, 0x3E, 0x1B, 0x16, 0x41, 0x4F, 0x4E, 0xBE, 0x62, 0x5A, 0x00, 0x77, 0xC6, 0xEB, 0xDA, 0x4B, 0x97, 0x1A, 0x61, 0x8D, 0x31, 0x32, 0x1C, 0xA2, 0x78, 0x9B, 0x66, 0x72, 0x60, 0x94, 0x44, 0x86, 0xCB, 0x09, 0xBD, 0x3A, 0x77, 0x57, 0xC1, 0x72, 0x61, 0x1D, 0x32, 0xC7, 0x85, 0xD1, 0xEF, 0xE5, 0x4D, 0x95, 0x0B, 0xF0, 0xD8, 0x18, 0xE7, 0x4A, 0xDC, 0x77, 0xCA, 0x55, 0x28, 0x32, 0x93, 0x2A, 0x7B, 0x3E, 0x3A, 0xD4, 0x97, 0xFD, 0x7D, 0x6D, 0x95, 0x71, 0x27, 0x9C, 0x77, 0x6A, 0x7C, 0xD5, 0xBF, 0x9D, 0x0E, 0xF2, 0x0F, 0x55, 0x91, 0x29, 0xCF, 0xAA, 0x58, 0x1C, 0x7A, 0xE7, 0xCB, 0x8B, 0x20, 0x07, 0x53, 0xAA, 0x59, 0x40, 0x3B, 0x03, 0xBE, 0x33, 0x47, 0x47, 0x5A, 0x4F, 0x86, 0x31, 0x8D, 0x30, 0xF9, 0x1C},
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/omg_hax.h:5:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char message_iv[4][16] = {{0x57, 0x52, 0xF1, 0xB7, 0x54, 0x9D, 0x8F, 0x87, 0x0C, 0x10, 0x48, 0x5A, 0x60, 0x88, 0xCA, 0xDB},
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/playfair.c:18: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 blockIn[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/playfair.c:19: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 sapKey[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:24:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer0[20] = {0x96, 0x5F, 0xC6, 0x53, 0xF8, 0x46, 0xCC, 0x18, 0xDF, 0xBE, 0xB2, 0xF8, 0x38, 0xD7, 0xEC, 0x22, 0x03, 0xD1, 0x20, 0x8F};
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:25:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer1[210];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:26:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer2[35] = {0x43, 0x54, 0x62, 0x7A, 0x18, 0xC3, 0xD6, 0xB3, 0x9A, 0x56, 0xF6, 0x1C, 0x14, 0x3F, 0x0C, 0x1D, 0x3B, 0x36, 0x83, 0xB1, 0x39, 0x51, 0x4A, 0xAA, 0x09, 0x3E, 0xFE, 0x44, 0xAF, 0xDE, 0xC3, 0x20, 0x9D, 0x42, 0x3A}; 
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:27:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer3[132];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/playfair/sap_hash.c:28:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer4[21] = {0xED, 0x25, 0xD1, 0xBB, 0xBC, 0x27, 0x9F, 0x02, 0xA2, 0xA9, 0x11, 0x00, 0x0C, 0xB3, 0x52, 0xC0, 0xBD, 0xE3, 0x1B, 0x49, 0xC7};
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:228: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(&data[*dataidx], value, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:254: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[*dataidx], &object->value.value_real, sizeof(double));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:265: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[*dataidx], object->value.value_data.value, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:276: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[*dataidx], object->value.value_string, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:408: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(buffer, data + dataidx, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:424: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(buffer, data + dataidx, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:626: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(buffer, value, valuelen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:652: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(buffer, value, valuelen + 1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:723: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(keys[i], key, keylen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:932: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(buf, "bplist00", BPLIST_HEADER_LEN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:57: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 hwaddr[MAX_HWADDR_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:61: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 password[MAX_PASSWORD_LEN+1];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:76: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 nonce[MAX_NONCE_LEN+1];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:131: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(conn->local, local, locallen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:135: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(conn->remote, remote, remotelen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:188:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(authstr, "Digest realm=\"");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:190:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(authstr, "\", nonce=\"");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:211: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 signature[MAX_SIGNATURE_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:352: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(&raop->callbacks, callbacks, sizeof(raop_callbacks_t));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:449: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(raop->hwaddr, hwaddr, hwaddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:49: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 aeskey[RAOP_AESKEY_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:50: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 aesiv[RAOP_AESIV_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:86:15:  [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).
		intarr[i] = atoi(utils_strsep(&strptr, " "));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:118: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 decoder_info[48];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:205: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(raop_buffer->aeskey, aeskey, RAOP_AESKEY_LEN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:206: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(raop_buffer->aesiv, aesiv, RAOP_AESIV_LEN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:240: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 packetbuf[RAOP_PACKET_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_buffer.c:293: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(packetbuf+encryptedlen, &data[12+encryptedlen], datalen-12-encryptedlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:33: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 public_key[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:48: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(*response_data, public_key, sizeof(public_key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:58: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 public_key[32];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:59: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 signature[64];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:88: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(*response_data, public_key, sizeof(public_key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:89: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(*response_data + sizeof(public_key), signature, sizeof(signature));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:161: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 aeskey[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:162: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 aesiv[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:192:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char fpaeskey[72];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:230: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 buffer[1024];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:355: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(datastr, data, datalen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:146: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(&raop_rtp->callbacks, callbacks, sizeof(raop_callbacks_t));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:229: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 packet[8];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:372: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 packet[RAOP_PACKET_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:429: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(&raop_rtp->control_saddr, &saddr, saddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:481: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 packet[RAOP_PACKET_LEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:672: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(metadata, data, datalen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_rtp.c:693: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(coverart, data, datalen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:202: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 buffer[MAX_KEYLEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:242: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(buffer+idx, digest, digestlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:244: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(buffer+idx, ipaddr, ipaddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:246: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(buffer+idx, hwaddr, hwaddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:278: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 counter[4];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:298: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 buffer[MAX_KEYLEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:299: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 maskbuf[MAX_KEYLEN];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:317: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(buffer+rsakey->keylen-inputlen, input, inputlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:359: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(dst, buffer+i, outlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:382: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(dst, tmpptr, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsapem.c:155: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(ptr, rsapem->data+rsapem->datapos, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sdp.c:143: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(sdp->data, sdpdata, sdpdatalen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:49:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	stream = fopen(filename, "rb");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:43: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 apname[56];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:44: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 password[56];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:46: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 hwaddr[6];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:48: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 ao_driver[56];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:49: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 ao_devicename[56];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:50: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 ao_deviceid[16];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:58: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 buffer[8192];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:181: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 tmpbuf[4096];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:185: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(tmpbuf, buffer, tmpbuflen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:212: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(session->buffer+session->buflen, buffer, buflen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:277:16:  [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).
			opt->port = atoi(*++argv);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:279:16:  [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).
			opt->port = atoi(arg+14);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/example.c:56:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen("audio.pcm", "wb");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/example.c:69:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen("metadata.bin", "wb");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/example.c:81:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen("coverart.jpg", "wb");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/main.c:24: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 buffer[2048];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/main.c:47: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 template[512];
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/test/main.c:54:2:  [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(template, "/tmp/tmpXXXXXX.JPG");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:59:6:  [1] (buffer) strlen:
  Does not handle 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(charlist) != 64) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:75:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(base64->charlist, charlist, sizeof(base64->charlist)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:187: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).
		int i, inbuflen = strlen(inbuf);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/base64.c:200: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).
	inbuflen = strlen(inbuf);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/bigint.c:654: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 size = strlen(data);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:93:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(A,B,C)             _read(A,B,C)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:96:9:  [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.
#define usleep(A)               Sleep(A/1000)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/crypto/os_port.h:142:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define SOCKET_READ(A,B,C)      read(A,B,C)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:32: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).
	MD5_Update(&md5ctx, (const unsigned char *)username, strlen(username));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:34:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	MD5_Update(&md5ctx, (const unsigned char *)realm, strlen(realm));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:36: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).
	MD5_Update(&md5ctx, (const unsigned char *)password, strlen(password));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:42: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).
	MD5_Update(&md5ctx, (const unsigned char *)method, strlen(method));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:44: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).
	MD5_Update(&md5ctx, (const unsigned char *)uri, strlen(uri));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:51:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	MD5_Update(&md5ctx, (const unsigned char *)nonce, strlen(nonce));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:77:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(result, md5hex, resultlen-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/digest.c:120: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).
		last = value+strlen(value)-1;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:234: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).
	dnssd->TXTRecordSetValue(&txtRecord, "txtvers", strlen(RAOP_TXTVERS), RAOP_TXTVERS);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:235: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).
	dnssd->TXTRecordSetValue(&txtRecord, "ch", strlen(RAOP_CH), RAOP_CH);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:236: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).
	dnssd->TXTRecordSetValue(&txtRecord, "cn", strlen(RAOP_CN), RAOP_CN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:237: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).
	dnssd->TXTRecordSetValue(&txtRecord, "et", strlen(RAOP_ET), RAOP_ET);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:238: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).
	dnssd->TXTRecordSetValue(&txtRecord, "sv", strlen(RAOP_SV), RAOP_SV);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:239: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).
	dnssd->TXTRecordSetValue(&txtRecord, "da", strlen(RAOP_DA), RAOP_DA);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:240: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).
	dnssd->TXTRecordSetValue(&txtRecord, "sr", strlen(RAOP_SR), RAOP_SR);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:241: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).
	dnssd->TXTRecordSetValue(&txtRecord, "ss", strlen(RAOP_SS), RAOP_SS);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:243: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).
		dnssd->TXTRecordSetValue(&txtRecord, "pw", strlen("true"), "true");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:245: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).
		dnssd->TXTRecordSetValue(&txtRecord, "pw", strlen("false"), "false");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:247: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).
	dnssd->TXTRecordSetValue(&txtRecord, "vn", strlen(RAOP_VN), RAOP_VN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:248: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).
	dnssd->TXTRecordSetValue(&txtRecord, "tp", strlen(RAOP_TP), RAOP_TP);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:249: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).
	dnssd->TXTRecordSetValue(&txtRecord, "md", strlen(RAOP_MD), RAOP_MD);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:250: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).
	dnssd->TXTRecordSetValue(&txtRecord, "vs", strlen(GLOBAL_VERSION), GLOBAL_VERSION);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:251: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).
	dnssd->TXTRecordSetValue(&txtRecord, "sm", strlen(RAOP_SM), RAOP_SM);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:252: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).
	dnssd->TXTRecordSetValue(&txtRecord, "ek", strlen(RAOP_EK), RAOP_EK);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:262: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 (sizeof(servname) < strlen(servname)+1+strlen(name)+1) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:262: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).
	if (sizeof(servname) < strlen(servname)+1+strlen(name)+1) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:267:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
	strncat(servname, "@", sizeof(servname)-strlen(servname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:267: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).
	strncat(servname, "@", sizeof(servname)-strlen(servname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:268:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(servname, name, sizeof(servname)-strlen(servname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:268: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).
	strncat(servname, name, sizeof(servname)-strlen(servname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:307: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).
	dnssd->TXTRecordSetValue(&txtRecord, "deviceid", strlen(deviceid), deviceid);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:308: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).
	dnssd->TXTRecordSetValue(&txtRecord, "features", strlen(features), features);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/dnssd.c:309: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).
	dnssd->TXTRecordSetValue(&txtRecord, "model", strlen(GLOBAL_MODEL), GLOBAL_MODEL);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:333:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static unsigned char equal(signed char b, signed char c) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:363:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][0], equal(babs, 1));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:364:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][1], equal(babs, 2));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:365:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][2], equal(babs, 3));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:366:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][3], equal(babs, 4));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:367:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][4], equal(babs, 5));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:368:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][5], equal(babs, 6));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:369:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][6], equal(babs, 7));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/ed25519/ge.c:370:28:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    cmov(t, &base[pos][7], equal(babs, 8));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:43: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).
	int urllen = request->url ? strlen(request->url) : 0;
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:49:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(request->url, at, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:79:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(request->headers[request->headers_index])+length+1
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:84:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(request->headers[request->headers_index], at, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:104:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(request->headers[request->headers_index])+length+1
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_request.c:109:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(request->headers[request->headers_index], at, length);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:80: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).
	http_response_add_data(response, protocol, strlen(protocol));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:82: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).
	http_response_add_data(response, codestr, strlen(codestr));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:84: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).
	http_response_add_data(response, message, strlen(message));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:106: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).
	http_response_add_data(response, name, strlen(name));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:108: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).
	http_response_add_data(response, value, strlen(value));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:126: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).
		http_response_add_data(response, hdrname, strlen(hdrname));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/http_response.c:128: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).
		http_response_add_data(response, hdrvalue, strlen(hdrvalue));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:178: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).
	derive_key_internal(session, (const unsigned char *) SALT_KEY, strlen(SALT_KEY), key, sizeof(key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:179: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).
	derive_key_internal(session, (const unsigned char *) SALT_IV, strlen(SALT_IV), iv, sizeof(key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:201: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).
	derive_key_internal(session, (const unsigned char *) SALT_KEY, strlen(SALT_KEY), key, sizeof(key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/pairing.c:202: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).
	derive_key_internal(session, (const unsigned char *) SALT_IV, strlen(SALT_IV), iv, sizeof(key));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:173: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).
		uint64_t length = strlen(object->value.value_string);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:199: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).
			uint64_t keylen = strlen(object->value.value_dict.keys[i]);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:220: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).
	length = (int64_t) strlen(value);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:268: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).
		int64_t length = (int64_t) strlen(object->value.value_string);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:646: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).
	valuelen = strlen(value);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/plist.c:719: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 keylen = strlen(key);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:170: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 (strcmp(method, "OPTIONS") != 0 && strlen(raop->password)) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:192:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(authstr, "\"");
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:440: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(password) > MAX_PASSWORD_LEN) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop.c:445:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(raop->password, password, MAX_PASSWORD_LEN);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/raop_handlers.h:321: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).
					*response_datalen = strlen(*response_data);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:217: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).
	digestlen = base64_decode(rsakey->base64, &digest, b64digest, strlen(b64digest));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:313:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	inputlen = base64_decode(rsakey->base64, &input, b64input, strlen(b64input));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/rsakey.c:374: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).
	length = base64_decode(rsakey->base64, &tmpptr, b64input, strlen(b64input));
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sdp.c:44: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).
	int len = strlen(line);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/sdp.c:103: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(sdp->data);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/threads.h:42:20:  [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.
#define sleepms(x) usleep((x)*1000)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:36: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).
	*stringp = strptr+strlen(delim);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:93: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).
utils_hwaddr_raop(char *str, int strlen, const char *hwaddr, int hwaddrlen)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:98: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 (strlen == 0 || strlen < 2*hwaddrlen+1)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:118: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).
utils_hwaddr_airplay(char *str, int strlen, const char *hwaddr, int hwaddrlen)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.c:123: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 (strlen == 0 || strlen < 2*hwaddrlen+hwaddrlen)
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.h:20: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).
int utils_hwaddr_raop(char *str, int strlen, const char *hwaddr, int hwaddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/lib/utils.h:21: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).
int utils_hwaddr_airplay(char *str, int strlen, const char *hwaddr, int hwaddrlen);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:100:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) != slen) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:130:6:  [1] (buffer) strlen:
  Does not handle 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(opt->ao_driver)) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:137:6:  [1] (buffer) strlen:
  Does not handle 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(opt->ao_devicename)) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:140:6:  [1] (buffer) strlen:
  Does not handle 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(opt->ao_deviceid)) {
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:263:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(opt->apname, "Shairplay", sizeof(opt->apname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:269:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->apname, *++argv, sizeof(opt->apname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:271:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->apname, arg+9, sizeof(opt->apname)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:273:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->password, *++argv, sizeof(opt->password)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:275:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->password, arg+11, sizeof(opt->password)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:287:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->ao_driver, arg+12, sizeof(opt->ao_driver)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:289:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->ao_devicename, arg+16, sizeof(opt->ao_devicename)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:291:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(opt->ao_deviceid, arg+14, sizeof(opt->ao_deviceid)-1);
data/shairplay-0.9.0~git20180824.096b61a+dfsg1/src/shairplay.c:360:6:  [1] (buffer) strlen:
  Does not handle 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(options.password)) {

ANALYSIS SUMMARY:

Hits = 366
Lines analyzed = 23723 in approximately 1.44 seconds (16475 lines/second)
Physical Source Lines of Code (SLOC) = 17687
Hits@level = [0] 250 [1] 104 [2] 246 [3]   4 [4]  12 [5]   0
Hits@level+ = [0+] 616 [1+] 366 [2+] 262 [3+]  16 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 34.8278 [1+] 20.6932 [2+] 14.8131 [3+] 0.904619 [4+] 0.678464 [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.