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/libaudio-scan-perl-1.01/tools/leak.c
Examining data/libaudio-scan-perl-1.01/include/opus.h
Examining data/libaudio-scan-perl-1.01/include/ape.h
Examining data/libaudio-scan-perl-1.01/include/ogg.h
Examining data/libaudio-scan-perl-1.01/include/mp4.h
Examining data/libaudio-scan-perl-1.01/include/wavpack.h
Examining data/libaudio-scan-perl-1.01/include/aac.h
Examining data/libaudio-scan-perl-1.01/include/pinttypes.h
Examining data/libaudio-scan-perl-1.01/include/flac.h
Examining data/libaudio-scan-perl-1.01/include/mp3.h
Examining data/libaudio-scan-perl-1.01/include/md5.h
Examining data/libaudio-scan-perl-1.01/include/wav.h
Examining data/libaudio-scan-perl-1.01/include/mpc.h
Examining data/libaudio-scan-perl-1.01/include/ppport.h
Examining data/libaudio-scan-perl-1.01/include/dsdiff.h
Examining data/libaudio-scan-perl-1.01/include/dsf.h
Examining data/libaudio-scan-perl-1.01/include/buffer.h
Examining data/libaudio-scan-perl-1.01/include/common.h
Examining data/libaudio-scan-perl-1.01/include/asf.h
Examining data/libaudio-scan-perl-1.01/include/pstdint.h
Examining data/libaudio-scan-perl-1.01/include/mac.h
Examining data/libaudio-scan-perl-1.01/include/id3.h
Examining data/libaudio-scan-perl-1.01/src/common.c
Examining data/libaudio-scan-perl-1.01/src/dsf.c
Examining data/libaudio-scan-perl-1.01/src/buffer.c
Examining data/libaudio-scan-perl-1.01/src/dsdiff.c
Examining data/libaudio-scan-perl-1.01/src/asf.c
Examining data/libaudio-scan-perl-1.01/src/mac.c
Examining data/libaudio-scan-perl-1.01/src/id3.c
Examining data/libaudio-scan-perl-1.01/src/ogg.c
Examining data/libaudio-scan-perl-1.01/src/jenkins_hash.c
Examining data/libaudio-scan-perl-1.01/src/mp4.c
Examining data/libaudio-scan-perl-1.01/src/ape.c
Examining data/libaudio-scan-perl-1.01/src/opus.c
Examining data/libaudio-scan-perl-1.01/src/id3_frametype.c
Examining data/libaudio-scan-perl-1.01/src/aac.c
Examining data/libaudio-scan-perl-1.01/src/wavpack.c
Examining data/libaudio-scan-perl-1.01/src/wav.c
Examining data/libaudio-scan-perl-1.01/src/md5.c
Examining data/libaudio-scan-perl-1.01/src/mp3.c
Examining data/libaudio-scan-perl-1.01/src/flac.c
Examining data/libaudio-scan-perl-1.01/src/mpc.c
Examining data/libaudio-scan-perl-1.01/src/id3_compat.c

FINAL RESULTS:

data/libaudio-scan-perl-1.01/src/flac.c:865:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(decimal, "%"PRIu64, track_offset + index_offset);
data/libaudio-scan-perl-1.01/src/flac.c:874:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(decimal, "%"PRIu64, leadin);
data/libaudio-scan-perl-1.01/src/flac.c:878:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(decimal, "%"PRIu64, track_offset);
data/libaudio-scan-perl-1.01/src/mpc.c:122:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(si->encoder, "%s %u.%u.%u", tmp, major, minor, build);
data/libaudio-scan-perl-1.01/src/common.c:235:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  value = getenv(name);
data/libaudio-scan-perl-1.01/include/mp3.h:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char lame_encoder_version[9];
data/libaudio-scan-perl-1.01/include/mpc.h:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char            encoder[256];        ///< encoder name
data/libaudio-scan-perl-1.01/include/ppport.h:3260:42:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define CopyD(s,d,n,t)                 memcpy((char*)(d),(char*)(s), (n) * sizeof(t))
data/libaudio-scan-perl-1.01/include/ppport.h:4812:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		&& (xdigit = strchr((char *) PL_hexdigit, s[1])))
data/libaudio-scan-perl-1.01/include/pstdint.h:764: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 str0[256], str1[256];
data/libaudio-scan-perl-1.01/include/pstdint.h:766:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str0, "%d %x\n", 0, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:768:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%d %x\n",  i8, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:770:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%u %x\n",  u8, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:772:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%d %x\n",  i16, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:774:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%u %x\n",  u16, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:776:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%" PRINTF_INT32_MODIFIER "d %x\n",  i32, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:778:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%" PRINTF_INT32_MODIFIER "u %x\n",  u32, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:781:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%" PRINTF_INT64_MODIFIER "d %x\n",  i64, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:784:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "d %x\n",  imax, ~0);
data/libaudio-scan-perl-1.01/include/pstdint.h:786:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (str1, "%" PRINTF_INTMAX_MODIFIER "u %x\n",  umax, ~0);
data/libaudio-scan-perl-1.01/src/ape.c:59: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 compare[12];
data/libaudio-scan-perl-1.01/src/ape.c:80:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char id3[APE_ID3_MIN_TAG_SIZE];
data/libaudio-scan-perl-1.01/src/ape.c:134:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      lyrics_size = atoi(bptr);
data/libaudio-scan-perl-1.01/src/asf.c:258: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 fields[5][12] = {
data/libaudio-scan-perl-1.01/src/buffer.c:278: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 bytestr[4] = {0};
data/libaudio-scan-perl-1.01/src/buffer.c:279: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 hexstr[ 16*3 + 5] = {0};
data/libaudio-scan-perl-1.01/src/buffer.c:280: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 charstr[16*1 + 5] = {0};
data/libaudio-scan-perl-1.01/src/buffer.c:988: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 buf[4];
data/libaudio-scan-perl-1.01/src/common.c:163:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[10];
data/libaudio-scan-perl-1.01/src/dsdiff.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chunk_id[5];
data/libaudio-scan-perl-1.01/src/dsdiff.c:91: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 chunk_id[5];
data/libaudio-scan-perl-1.01/src/dsdiff.c:171:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char chunk_id[5];
data/libaudio-scan-perl-1.01/src/flac.c:784: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 decimal[21];
data/libaudio-scan-perl-1.01/src/flac.c:805:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char isrc[13];
data/libaudio-scan-perl-1.01/src/id3.c:335: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 id[5];
data/libaudio-scan-perl-1.01/src/id3.c:1618:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char timestamp[17] = { 0 };
data/libaudio-scan-perl-1.01/src/mac.c:104: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 md5[16];
data/libaudio-scan-perl-1.01/src/md5.c:169: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(xbuf, data, 64);
data/libaudio-scan-perl-1.01/src/md5.c:343: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(pms->buf + offset, p, copy);
data/libaudio-scan-perl-1.01/src/md5.c:357: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(pms->buf, p, left);
data/libaudio-scan-perl-1.01/src/mp3.c:107:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      lyrics_size = atoi(bptr);
data/libaudio-scan-perl-1.01/src/mp3.c:576: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 id3v1taghdr[4];
data/libaudio-scan-perl-1.01/src/mp3.c:721: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(mp3->first_frame, &frame, sizeof(mp3frame));
data/libaudio-scan-perl-1.01/src/mp4.c:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp_size[4];
data/libaudio-scan-perl-1.01/src/mp4.c:667: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 type[5];
data/libaudio-scan-perl-1.01/src/mp4.c:704:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp_size[4];
data/libaudio-scan-perl-1.01/src/mp4.c:1603: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 type[5];
data/libaudio-scan-perl-1.01/src/mp4.c:1637:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char key[5];
data/libaudio-scan-perl-1.01/src/mp4.c:1850:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[5];
data/libaudio-scan-perl-1.01/src/mpc.c:96:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(si->encoder, "Buschmann 1.7.0...9, Klemm 0.90...1.05");
data/libaudio-scan-perl-1.01/src/mpc.c:100:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(si->encoder, "Release %u.%u", ver / 100,
data/libaudio-scan-perl-1.01/src/mpc.c:104:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(si->encoder, "Beta %u.%02u", ver / 100,
data/libaudio-scan-perl-1.01/src/mpc.c:108:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					sprintf(si->encoder, "--Alpha-- %u.%02u",
data/libaudio-scan-perl-1.01/src/mpc.c:129: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 blocktype[2];
data/libaudio-scan-perl-1.01/src/mpc.c:134: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(blocktype, bptr, 2);
data/libaudio-scan-perl-1.01/src/ogg.c:38: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 ogghdr[28];
data/libaudio-scan-perl-1.01/src/ogg.c:49: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 vorbishdr[23];
data/libaudio-scan-perl-1.01/src/opus.c:41: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 ogghdr[OGG_HEADER_SIZE];
data/libaudio-scan-perl-1.01/src/opus.c:52: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 opushdr[11];
data/libaudio-scan-perl-1.01/src/wav.c:98:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chunk_id[5];
data/libaudio-scan-perl-1.01/src/wav.c:269: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 type_id[5];
data/libaudio-scan-perl-1.01/src/wav.c:366:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char chunk_id[5];
data/libaudio-scan-perl-1.01/src/wavpack.c:353: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 chunk_id[5];
data/libaudio-scan-perl-1.01/include/common.h:57: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).
#define my_hv_store(a,b,c)     hv_store(a,b,strlen(b),c,0)
data/libaudio-scan-perl-1.01/include/common.h:59: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).
#define my_hv_fetch(a,b)       hv_fetch(a,b,strlen(b),0)
data/libaudio-scan-perl-1.01/include/common.h:60: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).
#define my_hv_exists(a,b)      hv_exists(a,b,strlen(b))
data/libaudio-scan-perl-1.01/include/common.h:62: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).
#define my_hv_delete(a,b)      hv_delete(a,b,strlen(b),0)
data/libaudio-scan-perl-1.01/include/ppport.h:3775:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));
data/libaudio-scan-perl-1.01/include/ppport.h:3784:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define sv_vcatpvf(sv, pat, args)  sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/libaudio-scan-perl-1.01/include/ppport.h:3789:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define sv_vsetpvf(sv, pat, args)  sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*))
data/libaudio-scan-perl-1.01/include/ppport.h:3810:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libaudio-scan-perl-1.01/include/ppport.h:3839:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libaudio-scan-perl-1.01/include/ppport.h:3860:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
data/libaudio-scan-perl-1.01/include/ppport.h:3883:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libaudio-scan-perl-1.01/include/ppport.h:3912:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*));
data/libaudio-scan-perl-1.01/include/ppport.h:3933:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*));  \
data/libaudio-scan-perl-1.01/include/ppport.h:4404:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        STRLEN len = strlen(radix);
data/libaudio-scan-perl-1.01/src/ape.c:434: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).
  key_length = strlen(key);
data/libaudio-scan-perl-1.01/src/ape.c:475:94:  [1] (buffer) strlen:
  Does not handle 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 (((flags & APE_ITEM_TYPE_FLAGS) & 2) == 0 && !is_utf8_string((unsigned char*)(value), strlen(value))) {
data/libaudio-scan-perl-1.01/src/buffer.c:291:5:  [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(hexstr, bytestr, sizeof(hexstr)-strlen(hexstr)-1);
data/libaudio-scan-perl-1.01/src/buffer.c:291: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).
    strncat(hexstr, bytestr, sizeof(hexstr)-strlen(hexstr)-1);
data/libaudio-scan-perl-1.01/src/buffer.c:298:5:  [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(charstr, bytestr, sizeof(charstr)-strlen(charstr)-1);
data/libaudio-scan-perl-1.01/src/buffer.c:298:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat(charstr, bytestr, sizeof(charstr)-strlen(charstr)-1);
data/libaudio-scan-perl-1.01/src/buffer.c:309: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(hexstr) > 0) {
data/libaudio-scan-perl-1.01/src/common.c:28:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uint32_t read;
data/libaudio-scan-perl-1.01/src/common.c:56:80:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        warn("Error reading: %d %s (read %d wanted %d)\n", last_error, errmsg, read, actual_wanted);
data/libaudio-scan-perl-1.01/src/common.c:70:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_append(buf, tmp, read);
data/libaudio-scan-perl-1.01/src/common.c:74:95:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      warn("Error: Unable to read at least %d bytes from file (only read %d).\n", min_wanted, read);
data/libaudio-scan-perl-1.01/src/common.c:81:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (PerlIO_tell(infile) != pos_check + read) {
data/libaudio-scan-perl-1.01/src/common.c:83:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      PerlIO_seek(infile, pos_check + read, SEEK_SET);
data/libaudio-scan-perl-1.01/src/common.c:87:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DEBUG_TRACE("Buffered %d bytes, new pos %d\n", read, (int)PerlIO_tell(infile));
data/libaudio-scan-perl-1.01/src/dsdiff.c:53:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(chunk_id, (char *)buffer_ptr(dsdiff->buf), 4);
data/libaudio-scan-perl-1.01/src/dsdiff.c:65:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dsdiff->tag_diar_artist, (char *)buffer_ptr(dsdiff->buf), count);
data/libaudio-scan-perl-1.01/src/dsdiff.c:71:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dsdiff->tag_diti_title, (char *)buffer_ptr(dsdiff->buf), count);
data/libaudio-scan-perl-1.01/src/dsdiff.c:98:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(chunk_id, (char *)buffer_ptr(dsdiff->buf), 4);
data/libaudio-scan-perl-1.01/src/dsdiff.c:183:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(chunk_id, (char *)buffer_ptr(&buf), 4);
data/libaudio-scan-perl-1.01/src/id3.c:122:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < 30) {
data/libaudio-scan-perl-1.01/src/id3.c:123:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, 30 - read);
data/libaudio-scan-perl-1.01/src/id3.c:136:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < 30) {
data/libaudio-scan-perl-1.01/src/id3.c:137:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, 30 - read);
data/libaudio-scan-perl-1.01/src/id3.c:150:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < 30) {
data/libaudio-scan-perl-1.01/src/id3.c:151:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, 30 - read);
data/libaudio-scan-perl-1.01/src/id3.c:164:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < 4) {
data/libaudio-scan-perl-1.01/src/id3.c:165:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, 4 - read);
data/libaudio-scan-perl-1.01/src/id3.c:194:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < 30) {
data/libaudio-scan-perl-1.01/src/id3.c:195:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, 30 - read);
data/libaudio-scan-perl-1.01/src/id3.c:376:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(id, compat->equiv, 4);
data/libaudio-scan-perl-1.01/src/id3.c:433:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(id, compat->equiv, 4);
data/libaudio-scan-perl-1.01/src/id3.c:545:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(id, compat->equiv, 4);
data/libaudio-scan-perl-1.01/src/id3.c:787:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read += _id3_get_utf8_string(id3, &key, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:798:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read += _id3_get_utf8_string(id3, &value, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:823:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:828:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read += _id3_get_utf8_string(id3, &value, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:925:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read += _id3_get_utf8_string(id3, &value, size - read, ISO_8859_1);
data/libaudio-scan-perl-1.01/src/id3.c:933:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:941:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read += _id3_get_utf8_string(id3, &value, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:972:84:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        my_hv_store( id3->tags, id, newSViv( _varint( buffer_ptr(id3->buf), size - read ) ) );
data/libaudio-scan-perl-1.01/src/id3.c:973:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:980:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read += _id3_parse_rvad(id3, id, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:992:78:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          my_hv_store( id3->tags, id, newSVpvn( buffer_ptr(id3->buf), size - read ) );
data/libaudio-scan-perl-1.01/src/id3.c:993:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1001:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1002:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read += size - read;
data/libaudio-scan-perl-1.01/src/id3.c:1033:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    PIC image format, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1036:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read += _id3_get_utf8_string(id3, &value, size - read, ISO_8859_1);
data/libaudio-scan-perl-1.01/src/id3.c:1045:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:1046:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read += _id3_get_utf8_string(id3, &value, size - read, ISO_8859_1);
data/libaudio-scan-perl-1.01/src/id3.c:1050:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    latin1list, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1055:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          read += _id3_get_utf8_string(id3, &value, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:1058:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    string, read %d: %s\n", read, SvPVX(value));
data/libaudio-scan-perl-1.01/src/id3.c:1069:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:1070:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read += _id3_get_utf8_string(id3, &value, size - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:1078:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          DEBUG_TRACE("    stringfull, read %d: %s\n", read, SvPVX(tmp));
data/libaudio-scan-perl-1.01/src/id3.c:1085:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 3) {
data/libaudio-scan-perl-1.01/src/id3.c:1089:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    language, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1097:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= len) {
data/libaudio-scan-perl-1.01/src/id3.c:1101:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    frameid, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1107:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 8) {
data/libaudio-scan-perl-1.01/src/id3.c:1111:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    date, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1117:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 1) {
data/libaudio-scan-perl-1.01/src/id3.c:1120:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    int8, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1125:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 2) {
data/libaudio-scan-perl-1.01/src/id3.c:1128:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    int16, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1133:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 3) {
data/libaudio-scan-perl-1.01/src/id3.c:1136:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    int24, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1141:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 4) {
data/libaudio-scan-perl-1.01/src/id3.c:1144:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    int32, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1149:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (size - read >= 4) {
data/libaudio-scan-perl-1.01/src/id3.c:1150:80:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            av_push( framedata, newSViv( _varint( buffer_ptr(id3->buf), size - read ) ) );
data/libaudio-scan-perl-1.01/src/id3.c:1151:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1153:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            DEBUG_TRACE("    int32plus, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1161:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            av_push( framedata, newSVuv(size - read) );
data/libaudio-scan-perl-1.01/src/id3.c:1170:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              if (id3->tag_data_safe && (size - read) > 0)
data/libaudio-scan-perl-1.01/src/id3.c:1171:92:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                av_push( framedata, newSVuv(id3->offset + (id3->size - id3->size_remain) + read) );
data/libaudio-scan-perl-1.01/src/id3.c:1174:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _id3_skip(id3, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1180:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            uint32_t remain = size - read;
data/libaudio-scan-perl-1.01/src/id3.c:1184:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:1210:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read += _id3_parse_sylt(id3, encoding, size - read, framedata);
data/libaudio-scan-perl-1.01/src/id3.c:1215:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read += _id3_parse_etco(id3, size - read, framedata);
data/libaudio-scan-perl-1.01/src/id3.c:1220:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (size - read > 1) {
data/libaudio-scan-perl-1.01/src/id3.c:1221:74:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              av_push( framedata, newSVpvn( buffer_ptr(id3->buf), size - read ) );
data/libaudio-scan-perl-1.01/src/id3.c:1222:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1224:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              DEBUG_TRACE("    binarydata, read %d\n", read);
data/libaudio-scan-perl-1.01/src/id3.c:1238:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read < size) {
data/libaudio-scan-perl-1.01/src/id3.c:1239:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer_consume(id3->buf, size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1240:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DEBUG_TRACE("    !!! consuming extra bytes in frame: %d\n", size - read);
data/libaudio-scan-perl-1.01/src/id3.c:1300:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read) {
data/libaudio-scan-perl-1.01/src/id3.c:1314:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/id3.c:1374:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      read += buffer_get_utf16_as_utf8(id3->buf, id3->utf8, len - read, byteorder);
data/libaudio-scan-perl-1.01/src/id3.c:1385:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read) {
data/libaudio-scan-perl-1.01/src/id3.c:1396:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/id3.c:1502:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/id3.c:1553:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/id3.c:1563:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read < len) {
data/libaudio-scan-perl-1.01/src/id3.c:1567:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read += _id3_get_utf8_string(id3, &value, len - read, encoding);
data/libaudio-scan-perl-1.01/src/id3.c:1581:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ( len - read > 0 && bptr[0] == 0x0a ) {
data/libaudio-scan-perl-1.01/src/id3.c:1591:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/id3.c:1600:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (read < len) {
data/libaudio-scan-perl-1.01/src/id3.c:1612:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read;
data/libaudio-scan-perl-1.01/src/mp3.c:400:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(mp3->xing_frame->lame_encoder_version, (char *)bptr, 9);
data/libaudio-scan-perl-1.01/src/mp4.c:677:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( type, (char *)buffer_ptr(mp4->buf), 4 );
data/libaudio-scan-perl-1.01/src/mp4.c:1614:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( type, (char *)buffer_ptr(mp4->buf), 4 );
data/libaudio-scan-perl-1.01/src/mp4.c:1647:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( key, (char *)buffer_ptr(mp4->buf), 4 );
data/libaudio-scan-perl-1.01/src/mp4.c:1860:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( type, (char *)buffer_ptr(mp4->buf), 4 );
data/libaudio-scan-perl-1.01/src/wav.c:106:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( chunk_id, (char *)buffer_ptr(buf), 4 );
data/libaudio-scan-perl-1.01/src/wav.c:272:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( type_id, (char *)buffer_ptr(buf), 4 );
data/libaudio-scan-perl-1.01/src/wav.c:374:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( chunk_id, (char *)buffer_ptr(buf), 4 );
data/libaudio-scan-perl-1.01/src/wavpack.c:396:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( chunk_id, (char *)buffer_ptr(wvp->buf), 4 );

ANALYSIS SUMMARY:

Hits = 188
Lines analyzed = 22075 in approximately 0.64 seconds (34268 lines/second)
Physical Source Lines of Code (SLOC) = 13946
Hits@level = [0]  12 [1] 125 [2]  58 [3]   1 [4]   4 [5]   0
Hits@level+ = [0+] 200 [1+] 188 [2+]  63 [3+]   5 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 14.341 [1+] 13.4806 [2+] 4.51742 [3+] 0.358526 [4+] 0.286821 [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.