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/a52dec-0.7.4/include/attributes.h
Examining data/a52dec-0.7.4/include/audio_out.h
Examining data/a52dec-0.7.4/include/mm_accel.h
Examining data/a52dec-0.7.4/include/tendra.h
Examining data/a52dec-0.7.4/include/a52.h
Examining data/a52dec-0.7.4/liba52/bitstream.c
Examining data/a52dec-0.7.4/liba52/bit_allocate.c
Examining data/a52dec-0.7.4/liba52/downmix.c
Examining data/a52dec-0.7.4/liba52/bitstream.h
Examining data/a52dec-0.7.4/liba52/tables.h
Examining data/a52dec-0.7.4/liba52/a52_internal.h
Examining data/a52dec-0.7.4/liba52/imdct.c
Examining data/a52dec-0.7.4/liba52/parse.c
Examining data/a52dec-0.7.4/libao/audio_out.c
Examining data/a52dec-0.7.4/libao/float2s16.c
Examining data/a52dec-0.7.4/libao/audio_out_null.c
Examining data/a52dec-0.7.4/libao/audio_out_float.c
Examining data/a52dec-0.7.4/libao/audio_out_oss.c
Examining data/a52dec-0.7.4/libao/audio_out_solaris.c
Examining data/a52dec-0.7.4/libao/audio_out_al.c
Examining data/a52dec-0.7.4/libao/audio_out_win.c
Examining data/a52dec-0.7.4/libao/audio_out_wav.c
Examining data/a52dec-0.7.4/libao/audio_out_aif.c
Examining data/a52dec-0.7.4/libao/audio_out_peak.c
Examining data/a52dec-0.7.4/libao/audio_out_internal.h
Examining data/a52dec-0.7.4/src/a52dec.c
Examining data/a52dec-0.7.4/src/getopt.c
Examining data/a52dec-0.7.4/src/gettimeofday.c
Examining data/a52dec-0.7.4/src/extract_a52.c
Examining data/a52dec-0.7.4/src/getopt.h
Examining data/a52dec-0.7.4/src/gettimeofday.h
Examining data/a52dec-0.7.4/vc++/config.h
Examining data/a52dec-0.7.4/vc++/inttypes.h
Examining data/a52dec-0.7.4/test/compare.c

FINAL RESULTS:

data/a52dec-0.7.4/src/a52dec.c:575:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, PACKAGE"-"VERSION
data/a52dec-0.7.4/src/a52dec.c:159:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt (argc, argv, "s::t:crag:o:")) != -1)
data/a52dec-0.7.4/src/extract_a52.c:58:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt (argc, argv, "s:t:")) != -1)
data/a52dec-0.7.4/src/getopt.c:210:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/a52dec-0.7.4/src/getopt.c:211:14:  [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.
extern char *getenv ();
data/a52dec-0.7.4/src/getopt.c:403:21:  [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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/a52dec-0.7.4/src/getopt.c:972:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/a52dec-0.7.4/src/getopt.c:1002:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/a52dec-0.7.4/src/getopt.h:134:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
data/a52dec-0.7.4/src/getopt.h:136:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/a52dec-0.7.4/src/getopt.h:140:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
data/a52dec-0.7.4/src/getopt.h:153:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/a52dec-0.7.4/src/getopt.h:155:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/a52dec-0.7.4/include/audio_out.h:37:17:  [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).
    ao_open_t * open;
data/a52dec-0.7.4/include/audio_out.h:43:52:  [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).
static inline ao_instance_t * ao_open (ao_open_t * open)
data/a52dec-0.7.4/include/audio_out.h:45:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open ();
data/a52dec-0.7.4/liba52/downmix.c:456: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 (samples, samples + 256, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:489: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 (samples + 256, samples, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:554: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 (samples + 512, samples + 768, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:571: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 (samples + 768, samples + 512, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:576: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 (samples + 512, samples + 768, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:581: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 (samples + 512, samples + 768, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:582: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 (samples + 768, samples + 1024, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:586: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 (samples + 1027, samples + 768, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:596: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 (samples + 256, samples, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:621: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 (samples + 512, samples + 256, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.c:648: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 (samples + 768, samples + 512, 256 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/downmix.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 (samples + 1024, samples + 768, 256 * sizeof (sample_t));
data/a52dec-0.7.4/libao/audio_out_oss.c:156:20:  [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).
    instance->fd = open ("/dev/dsp", O_WRONLY);
data/a52dec-0.7.4/libao/audio_out_solaris.c:147:20:  [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).
    instance->fd = open ("/dev/audio", O_WRONLY);
data/a52dec-0.7.4/src/a52dec.c:164:32:  [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).
		    output_open = drivers[i].open;
data/a52dec-0.7.4/src/a52dec.c:219:27:  [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).
	output_open = drivers[0].open;
data/a52dec-0.7.4/src/a52dec.c:222:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	in_file = fopen (argv[optind], "rb");
data/a52dec-0.7.4/src/a52dec.c:255: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 (bufptr, start, len);
data/a52dec-0.7.4/src/a52dec.c:344:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (header + bytes, buf, missing);	\
data/a52dec-0.7.4/src/a52dec.c:348:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (header + bytes, buf, end - buf);	\
data/a52dec-0.7.4/src/a52dec.c:353: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 (head_buf, header, bytes);		\
data/a52dec-0.7.4/src/extract_a52.c:83:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	in_file = fopen (argv[optind], "rb");
data/a52dec-0.7.4/src/extract_a52.c:135:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (header + bytes, buf, missing);	\
data/a52dec-0.7.4/src/extract_a52.c:139:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (header + bytes, buf, end - buf);	\
data/a52dec-0.7.4/src/extract_a52.c:144: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 (head_buf, header, bytes);		\
data/a52dec-0.7.4/test/compare.c:39:10:  [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).
    f1 = fopen (argv[1], "rb");
data/a52dec-0.7.4/test/compare.c:40:10:  [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).
    f2 = fopen (argv[2], "rb");
data/a52dec-0.7.4/liba52/parse.c:37:8:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
void * memalign (size_t align, size_t size);
data/a52dec-0.7.4/liba52/parse.c:40:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
#define memalign(align,size) malloc (size)
data/a52dec-0.7.4/liba52/parse.c:63:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->samples = memalign (16, 256 * 12 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/parse.c:69:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->roots16 = memalign (16, 3 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/parse.c:73:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->roots32 = memalign (16, 7 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/parse.c:77:22:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->roots64 = memalign (16, 15 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/parse.c:81:23:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->roots128 = memalign (16, 31 * sizeof (sample_t));
data/a52dec-0.7.4/liba52/parse.c:86:19:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->pre1 = memalign (16, 128 * sizeof (complex_t));
data/a52dec-0.7.4/liba52/parse.c:90:20:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->post1 = memalign (16, 64 * sizeof (complex_t));
data/a52dec-0.7.4/liba52/parse.c:94:19:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->pre2 = memalign (16, 64 * sizeof (complex_t));
data/a52dec-0.7.4/liba52/parse.c:98:20:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->post2 = memalign (16, 32 * sizeof (complex_t));
data/a52dec-0.7.4/liba52/parse.c:102:31:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
    state->a52_imdct_window = memalign (16, 256 * sizeof (sample_t));
data/a52dec-0.7.4/src/getopt.c:233: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).
# if (!defined __STDC__ || !__STDC__) && !defined strlen
data/a52dec-0.7.4/src/getopt.c:236: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).
extern int strlen (const char *);
data/a52dec-0.7.4/src/getopt.c:434: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/a52dec-0.7.4/src/getopt.c:659: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).
		== (unsigned int) strlen (p->name))
data/a52dec-0.7.4/src/getopt.c:683: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).
	  nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:715:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:731:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:736: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).
	  nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:847: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).
	      if ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/a52dec-0.7.4/src/getopt.c:870:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:890:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:904:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    nextchar += strlen (nextchar);
data/a52dec-0.7.4/src/getopt.c:908:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    nextchar += strlen (nextchar);

ANALYSIS SUMMARY:

Hits = 68
Lines analyzed = 7138 in approximately 0.20 seconds (35805 lines/second)
Physical Source Lines of Code (SLOC) = 4948
Hits@level = [0]  86 [1]  25 [2]  30 [3]  12 [4]   1 [5]   0
Hits@level+ = [0+] 154 [1+]  68 [2+]  43 [3+]  13 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 31.1237 [1+] 13.7429 [2+] 8.69038 [3+] 2.62732 [4+] 0.202102 [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.