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/liboggz-1.1.1/win32/strsep.c
Examining data/liboggz-1.1.1/win32/config.h
Examining data/liboggz-1.1.1/win32/attgetopt.c
Examining data/liboggz-1.1.1/win32/getopt.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/httpdate_test.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/httpdate.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/cmd.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/main.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/timespec.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/cgi.h
Examining data/liboggz-1.1.1/src/tools/oggz-chop/header.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/cmd.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/httpdate.c
Examining data/liboggz-1.1.1/src/tools/oggz-chop/header.h
Examining data/liboggz-1.1.1/src/tools/oggz-rip.c
Examining data/liboggz-1.1.1/src/tools/oggz-validate.c
Examining data/liboggz-1.1.1/src/tools/oggz-info.c
Examining data/liboggz-1.1.1/src/tools/skeleton.h
Examining data/liboggz-1.1.1/src/tools/oggz-scan.c
Examining data/liboggz-1.1.1/src/tools/oggz-basetime.c
Examining data/liboggz-1.1.1/src/tools/skeleton.c
Examining data/liboggz-1.1.1/src/tools/oggz-codecs.c
Examining data/liboggz-1.1.1/src/tools/oggz-sort.c
Examining data/liboggz-1.1.1/src/tools/oggz_tools.c
Examining data/liboggz-1.1.1/src/tools/mimetypes.h
Examining data/liboggz-1.1.1/src/tools/oggz-comment.c
Examining data/liboggz-1.1.1/src/tools/oggz-dump.c
Examining data/liboggz-1.1.1/src/tools/oggz-merge.c
Examining data/liboggz-1.1.1/src/tools/oggz-known-codecs.c
Examining data/liboggz-1.1.1/src/tools/oggz.c
Examining data/liboggz-1.1.1/src/tools/oggz_tools_dirac.h
Examining data/liboggz-1.1.1/src/tools/mimetypes.c
Examining data/liboggz-1.1.1/src/tools/oggz_tools.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_io.c
Examining data/liboggz-1.1.1/src/liboggz/dirac.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_auto.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_stream_private.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_dlist.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_read.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_vector.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_dlist.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_table.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_byteorder.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_seek.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_compat.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_private.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_stream.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_auto.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_comments.c
Examining data/liboggz-1.1.1/src/liboggz/dirac.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_write.c
Examining data/liboggz-1.1.1/src/liboggz/metric_internal.c
Examining data/liboggz-1.1.1/src/liboggz/oggz.c
Examining data/liboggz-1.1.1/src/liboggz/oggz_vector.h
Examining data/liboggz-1.1.1/src/liboggz/oggz_macros.h
Examining data/liboggz-1.1.1/src/tests/write-bad-granulepos.c
Examining data/liboggz-1.1.1/src/tests/read-generated.c
Examining data/liboggz-1.1.1/src/tests/seek-stress.c
Examining data/liboggz-1.1.1/src/tests/io-count.c
Examining data/liboggz-1.1.1/src/tests/write-prefix.c
Examining data/liboggz-1.1.1/src/tests/io-run.c
Examining data/liboggz-1.1.1/src/tests/write-dup-bos.c
Examining data/liboggz-1.1.1/src/tests/oggz_tests.h
Examining data/liboggz-1.1.1/src/tests/io-seek.c
Examining data/liboggz-1.1.1/src/tests/io-read.c
Examining data/liboggz-1.1.1/src/tests/comment-test.c
Examining data/liboggz-1.1.1/src/tests/write-bad-bos.c
Examining data/liboggz-1.1.1/src/tests/io-write.c
Examining data/liboggz-1.1.1/src/tests/write-bad-eos.c
Examining data/liboggz-1.1.1/src/tests/write-bad-bytes.c
Examining data/liboggz-1.1.1/src/tests/write-suffix.c
Examining data/liboggz-1.1.1/src/tests/comment-test.h
Examining data/liboggz-1.1.1/src/tests/write-bad-packetno.c
Examining data/liboggz-1.1.1/src/tests/read-stop-ok.c
Examining data/liboggz-1.1.1/src/tests/io-write-flush.c
Examining data/liboggz-1.1.1/src/tests/write-bad-guard.c
Examining data/liboggz-1.1.1/src/tests/write-unmarked-guard.c
Examining data/liboggz-1.1.1/src/tests/read-stop-err.c
Examining data/liboggz-1.1.1/src/tests/write-recursive.c
Examining data/liboggz-1.1.1/src/tests/io-read-single.c
Examining data/liboggz-1.1.1/src/tests/write-bad-serialno.c
Examining data/liboggz-1.1.1/src/examples/write-feed.c
Examining data/liboggz-1.1.1/src/examples/write-hungry.c
Examining data/liboggz-1.1.1/src/examples/dump-comments.c
Examining data/liboggz-1.1.1/src/examples/read-io.c
Examining data/liboggz-1.1.1/src/examples/fix-eos.c
Examining data/liboggz-1.1.1/src/examples/modify-headers.c
Examining data/liboggz-1.1.1/src/examples/identity.c
Examining data/liboggz-1.1.1/src/examples/read-file.c
Examining data/liboggz-1.1.1/src/examples/rewrite-pages.c
Examining data/liboggz-1.1.1/include/oggz/oggz_deprecated.h
Examining data/liboggz-1.1.1/include/oggz/oggz_seek.h
Examining data/liboggz-1.1.1/include/oggz/oggz_write.h
Examining data/liboggz-1.1.1/include/oggz/oggz_table.h
Examining data/liboggz-1.1.1/include/oggz/oggz_off_t.h
Examining data/liboggz-1.1.1/include/oggz/oggz_stream.h
Examining data/liboggz-1.1.1/include/oggz/oggz_comments.h
Examining data/liboggz-1.1.1/include/oggz/oggz_packet.h
Examining data/liboggz-1.1.1/include/oggz/oggz_off_t_generated.h
Examining data/liboggz-1.1.1/include/oggz/oggz.h
Examining data/liboggz-1.1.1/include/oggz/oggz_constants.h
Examining data/liboggz-1.1.1/include/oggz/oggz_io.h
Examining data/liboggz-1.1.1/include/oggz/oggz_read.h
Examining data/liboggz-1.1.1/symbian/config.h

FINAL RESULTS:

data/liboggz-1.1.1/src/examples/read-file.c:51:5:  [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.
    printf ("%" PRId64, granulepos);
data/liboggz-1.1.1/src/examples/read-file.c:57:5:  [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.
    printf ("%" PRId64 "|%" PRId64, iframe, pframe);
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:80:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  return strcpy (ret, s);
data/liboggz-1.1.1/src/tests/io-count.c:108:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-read-single.c:90:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-read.c:88:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-run.c:117:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-seek.c:92:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-write-flush.c:107:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/io-write.c:88:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/read-generated.c:81:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/read-stop-err.c:90:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tests/read-stop-ok.c:88:3:  [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.
  printf ("%08" PRI_OGGZ_OFF_T "x: serialno %010lu, "
data/liboggz-1.1.1/src/tools/oggz-chop/header.c:34:10:  [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.
  return printf (CONTENT_TYPE_OGG);
data/liboggz-1.1.1/src/tools/oggz-chop/header.c:40:10:  [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.
  return printf (ACCEPT_TIMEURI_OGG);
data/liboggz-1.1.1/src/tools/oggz-chop/httpdate.c:27:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  return snprintf (buf, n, HTTPDATE_FMT,
data/liboggz-1.1.1/src/tools/oggz-chop/httpdate.c:43:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  sscanf (s, HTTPDATE_FMT,
data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:53: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/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:53: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/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:389:11:  [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.
    len = snprintf (NULL, 0, CONTENT_TYPE_FMT, name);
data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:393:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf (ts->fisbone.message_header_fields, len+1, CONTENT_TYPE_FMT, name);
data/liboggz-1.1.1/src/tools/oggz-dump.c:296:3:  [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 (outfile, ", packetno %" PRId64,
data/liboggz-1.1.1/src/tools/oggz-merge.c:305:15:  [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, ALL_VORBIS_WARNING, v);
data/liboggz-1.1.1/src/tools/oggz-scan.c:177:9:  [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(outfile, HTML_CLIP, osdata->clipcount, time_offset);
data/liboggz-1.1.1/src/tools/oggz-scan.c:180:9:  [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(outfile, CMML_CLIP, osdata->clipcount, time_offset);
data/liboggz-1.1.1/src/tools/oggz-scan.c:352: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(outfile, HTML_HEAD, infilename);
data/liboggz-1.1.1/src/tools/oggz-scan.c:355: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(outfile, CMML_HEAD, infilename, infilename);
data/liboggz-1.1.1/src/tools/oggz-scan.c:363: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(outfile, HTML_END);
data/liboggz-1.1.1/src/tools/oggz-scan.c:366: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(outfile, CMML_END);
data/liboggz-1.1.1/src/tools/oggz-validate.c:387:7:  [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, "%" PRId64 , oggz_tell (oggz));
data/liboggz-1.1.1/src/tools/oggz.c:104:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (toolname, "oggz-%s", argv[2]);
data/liboggz-1.1.1/src/tools/oggz.c:109:15:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = execvp ("man", &argv[1]);
data/liboggz-1.1.1/src/tools/oggz.c:114:15:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        ret = execvp (toolname, &argv[1]);
data/liboggz-1.1.1/src/tools/oggz.c:121:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (toolname, "oggz-%s", argv[1]);
data/liboggz-1.1.1/src/tools/oggz.c:123:13:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      ret = execvp (toolname, &argv[1]);
data/liboggz-1.1.1/src/tools/oggz_tools.c:48: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/liboggz-1.1.1/src/tools/oggz_tools.c:48: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/liboggz-1.1.1/src/tools/oggz_tools.c:469:11:  [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.
    ret = fprintf (stream, "%" PRId64, granulepos);
data/liboggz-1.1.1/src/tools/oggz_tools.c:476:13:  [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.
      ret = fprintf (stream, "%" PRId64 "|%" PRId64, iframe, pframe);
data/liboggz-1.1.1/src/tools/skeleton.c:25: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/liboggz-1.1.1/src/tools/skeleton.c:25: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/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:88:23:  [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.
  gateway_interface = getenv ("GATEWAY_INTERFACE");
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:145:15:  [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.
  path_info = getenv ("PATH_INFO");
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:146: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.
  path_translated = getenv ("PATH_TRANSLATED");
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:147:18:  [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.
  query_string = getenv ("QUERY_STRING");
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:148:23:  [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.
  if_modified_since = getenv ("HTTP_IF_MODIFIED_SINCE");
data/liboggz-1.1.1/src/tools/oggz-chop/cmd.c:87:9:  [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.
    i = getopt_long(argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-chop/cmd.c:89:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-codecs.c:220:9:  [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.
    i = getopt_long (argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-codecs.c:222:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-comment.c:486:9:  [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.
    i = getopt_long(argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-comment.c:488:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-dump.c:578:9:  [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.
    i = getopt_long(argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-dump.c:580:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-info.c:634:9:  [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.
    i = getopt_long (argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-info.c:636:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-merge.c:403:9:  [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.
    i = getopt_long (argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-merge.c:405:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-rip.c:341:9:  [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.
    i = getopt_long (argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-rip.c:343:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-scan.c:242:9:  [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.
    i = getopt_long(argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-scan.c:244:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-sort.c:412:9:  [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.
    i = getopt_long (argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-sort.c:414:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/src/tools/oggz-validate.c:517:9:  [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.
    i = getopt_long(argc, argv, optstring, long_options, NULL);
data/liboggz-1.1.1/src/tools/oggz-validate.c:519:9:  [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.
    i = getopt (argc, argv, optstring);
data/liboggz-1.1.1/win32/attgetopt.c:25:5:  [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.
int getopt(int argc, char **argv, char *opts)
data/liboggz-1.1.1/win32/getopt.h:14:5:  [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.
int getopt(int argc, char **argv, char *opts);
data/liboggz-1.1.1/src/examples/fix-eos.c:166:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if ((oggz = oggz_open ((char *)argv[1], OGGZ_READ | OGGZ_AUTO)) == NULL) {
data/liboggz-1.1.1/src/examples/fix-eos.c:177: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).
  fixer.out = fopen(argv[2], "wb");
data/liboggz-1.1.1/src/examples/fix-eos.c:183:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if ((oggz = oggz_open ((char *)argv[1], OGGZ_READ | OGGZ_AUTO)) == NULL) {
data/liboggz-1.1.1/src/examples/identity.c:81: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[1024];
data/liboggz-1.1.1/src/examples/identity.c:106:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  outfile = fopen (outfilename, "w");
data/liboggz-1.1.1/src/examples/modify-headers.c:128: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[1024];
data/liboggz-1.1.1/src/examples/modify-headers.c:150:20:  [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).
  mhdata.outfile = fopen (outfilename, "w");
data/liboggz-1.1.1/src/examples/read-file.c:98:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if ((oggz = oggz_open ((char *)argv[1], OGGZ_READ | OGGZ_AUTO)) == NULL) {
data/liboggz-1.1.1/src/examples/read-io.c:107: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).
  if ((f = fopen ((char *)argv[1], "rb")) == NULL) {
data/liboggz-1.1.1/src/examples/read-io.c:107: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.
  if ((f = fopen ((char *)argv[1], "rb")) == NULL) {
data/liboggz-1.1.1/src/examples/rewrite-pages.c:66:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if ((oggz = oggz_open ((char *)argv[1], OGGZ_READ | OGGZ_AUTO)) == NULL) {
data/liboggz-1.1.1/src/examples/write-feed.c:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1];
data/liboggz-1.1.1/src/examples/write-hungry.c:44: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[1];
data/liboggz-1.1.1/src/liboggz/oggz.c:140: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).
    file = fopen (filename, "wb");
data/liboggz-1.1.1/src/liboggz/oggz.c:142: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).
    file = fopen (filename, "rb");
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:761: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 (c, stream->vendor, MIN (field_length, remaining));
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:784: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 (c, comment->name, MIN (field_length, remaining));
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:795: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 (c, comment->value, MIN (field_length, remaining));
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:825:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const unsigned char preamble_vorbis[7] =
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:827:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const unsigned char preamble_theora[7] =
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:829:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const unsigned char preamble_flac[4] =
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:831:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const unsigned char preamble_kate[9] =
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:883: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(buffer, preamble, preamble_length);
data/liboggz-1.1.1/src/liboggz/oggz_read.c:240: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(&(p->zp), zp, sizeof(oggz_packet));
data/liboggz-1.1.1/src/liboggz/oggz_read.c:246: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(p->zp.op.packet, op->packet, op->bytes);
data/liboggz-1.1.1/src/liboggz/oggz_read.c:731: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 (buffer, buf, bytes);
data/liboggz-1.1.1/src/liboggz/oggz_write.c:314:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (new_buf, op->packet, (size_t)op->bytes);
data/liboggz-1.1.1/src/liboggz/oggz_write.c:474: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 (buf, og->header + writer->page_offset, h);
data/liboggz-1.1.1/src/liboggz/oggz_write.c:492: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 (buf, og->body + (writer->page_offset - og->header_len), b);
data/liboggz-1.1.1/src/tests/comment-test.h:26: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 comment_packet_flac[86] = {0x04,0x00,0x00,0x52,0x20,0x00,0x00,0x00,0x72,0x65,0x66,0x65,0x72,0x65,0x6e,0x63,0x65,0x20,0x6c,0x69,0x62,0x46,0x4c,0x41,0x43,0x20,0x31,0x2e,0x31,0x2e,0x32,0x20,0x32,0x30,0x30,0x35,0x30,0x32,0x30,0x35,0x02,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x54,0x72,0x6f,0x75,0x74,0x20,0x4a,0x75,0x6e,0x6b,0x69,0x65,0x73,0x0e,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x44,0x4a,0x20,0x46,0x75,0x67,0x75};
data/liboggz-1.1.1/src/tests/comment-test.h:30: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 comment_packet_speex[77] = {0x1b,0x00,0x00,0x00,0x45,0x6e,0x63,0x6f,0x64,0x65,0x64,0x20,0x77,0x69,0x74,0x68,0x20,0x53,0x70,0x65,0x65,0x78,0x20,0x31,0x2e,0x32,0x62,0x65,0x74,0x61,0x31,0x02,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x54,0x72,0x6f,0x75,0x74,0x20,0x4a,0x75,0x6e,0x6b,0x69,0x65,0x73,0x0e,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x44,0x4a,0x20,0x46,0x75,0x67,0x75};
data/liboggz-1.1.1/src/tests/comment-test.h:34: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 comment_packet_theora[92] = {0x81,0x74,0x68,0x65,0x6f,0x72,0x61,0x23,0x00,0x00,0x00,0x58,0x69,0x70,0x68,0x2e,0x4f,0x72,0x67,0x20,0x6c,0x69,0x62,0x54,0x68,0x65,0x6f,0x72,0x61,0x20,0x49,0x20,0x32,0x30,0x30,0x36,0x30,0x35,0x32,0x36,0x20,0x33,0x20,0x32,0x20,0x30,0x02,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x54,0x72,0x6f,0x75,0x74,0x20,0x4a,0x75,0x6e,0x6b,0x69,0x65,0x73,0x0e,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x44,0x4a,0x20,0x46,0x75,0x67,0x75};
data/liboggz-1.1.1/src/tests/comment-test.h:38: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 comment_packet_vorbis[87] = {0x03,0x76,0x6f,0x72,0x62,0x69,0x73,0x1d,0x00,0x00,0x00,0x58,0x69,0x70,0x68,0x2e,0x4f,0x72,0x67,0x20,0x6c,0x69,0x62,0x56,0x6f,0x72,0x62,0x69,0x73,0x20,0x49,0x20,0x32,0x30,0x30,0x35,0x30,0x33,0x30,0x34,0x02,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x54,0x72,0x6f,0x75,0x74,0x20,0x4a,0x75,0x6e,0x6b,0x69,0x65,0x73,0x0e,0x00,0x00,0x00,0x41,0x52,0x54,0x49,0x53,0x54,0x3d,0x44,0x4a,0x20,0x46,0x75,0x67,0x75,0x01};
data/liboggz-1.1.1/src/tests/io-count.c:48:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char packet_buf[1024];
data/liboggz-1.1.1/src/tests/io-count.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &data_buf[offset], len);
data/liboggz-1.1.1/src/tests/io-count.c:176:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-read-single.c:53: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[1];
data/liboggz-1.1.1/src/tests/io-read-single.c:142:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &data_buf[offset], len);
data/liboggz-1.1.1/src/tests/io-read-single.c:155:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-read.c:51: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[1];
data/liboggz-1.1.1/src/tests/io-read.c:139:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &data_buf[offset], len);
data/liboggz-1.1.1/src/tests/io-read.c:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-run.c:75: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[1];
data/liboggz-1.1.1/src/tests/io-run.c:173:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &data_buf[my_offset], len);
data/liboggz-1.1.1/src/tests/io-run.c:210:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-seek.c:55:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1];
data/liboggz-1.1.1/src/tests/io-seek.c:148:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, &data_buf[my_offset], len);
data/liboggz-1.1.1/src/tests/io-seek.c:185:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-write-flush.c:63: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[1];
data/liboggz-1.1.1/src/tests/io-write-flush.c:150: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_buf[write_offset], buf, len);
data/liboggz-1.1.1/src/tests/io-write-flush.c:161:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/io-write-flush.c:219: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).
    f = fopen (filename, "w");
data/liboggz-1.1.1/src/tests/io-write.c:51: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[1];
data/liboggz-1.1.1/src/tests/io-write.c:139: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_buf[offset], buf, len);
data/liboggz-1.1.1/src/tests/io-write.c:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_buf[DATA_BUF_LEN];
data/liboggz-1.1.1/src/tests/read-generated.c:44: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[1];
data/liboggz-1.1.1/src/tests/read-generated.c:125: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[1024];
data/liboggz-1.1.1/src/tests/read-stop-err.c:53: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[PACKET_SIZE];
data/liboggz-1.1.1/src/tests/read-stop-err.c:138: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[READ_SIZE];
data/liboggz-1.1.1/src/tests/read-stop-ok.c:51: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[PACKET_SIZE];
data/liboggz-1.1.1/src/tests/read-stop-ok.c:134: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[READ_SIZE];
data/liboggz-1.1.1/src/tests/write-bad-bos.c:44: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[1];
data/liboggz-1.1.1/src/tests/write-bad-bos.c:96: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[1];
data/liboggz-1.1.1/src/tests/write-bad-bytes.c:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1];
data/liboggz-1.1.1/src/tests/write-bad-bytes.c:84: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[1];
data/liboggz-1.1.1/src/tests/write-bad-eos.c:45: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[1];
data/liboggz-1.1.1/src/tests/write-bad-eos.c:81: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[1];
data/liboggz-1.1.1/src/tests/write-bad-granulepos.c:45: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[1];
data/liboggz-1.1.1/src/tests/write-bad-granulepos.c:81: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[1];
data/liboggz-1.1.1/src/tests/write-bad-guard.c:43: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[1];
data/liboggz-1.1.1/src/tests/write-bad-guard.c:67: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[1];
data/liboggz-1.1.1/src/tests/write-bad-packetno.c:45: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[1];
data/liboggz-1.1.1/src/tests/write-bad-packetno.c:80: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[1];
data/liboggz-1.1.1/src/tests/write-bad-serialno.c:43: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[1];
data/liboggz-1.1.1/src/tests/write-dup-bos.c:44: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[1];
data/liboggz-1.1.1/src/tests/write-dup-bos.c:79: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[1];
data/liboggz-1.1.1/src/tests/write-prefix.c:44: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[1];
data/liboggz-1.1.1/src/tests/write-prefix.c:118: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[1];
data/liboggz-1.1.1/src/tests/write-recursive.c:40: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[1];
data/liboggz-1.1.1/src/tests/write-recursive.c:55:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1];
data/liboggz-1.1.1/src/tests/write-suffix.c:44: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[1];
data/liboggz-1.1.1/src/tests/write-suffix.c:109: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[1];
data/liboggz-1.1.1/src/tests/write-unmarked-guard.c:37:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buf[1];
data/liboggz-1.1.1/src/tests/write-unmarked-guard.c:80: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[1];
data/liboggz-1.1.1/src/tools/oggz-basetime.c:289:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if ((oggz = oggz_open ((char *)argv[1], OGGZ_READ | OGGZ_AUTO)) == NULL) {
data/liboggz-1.1.1/src/tools/oggz-chop/header.c:18:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[30];
data/liboggz-1.1.1/src/tools/oggz-chop/httpdate.c:36: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 wday[3], month[3];
data/liboggz-1.1.1/src/tools/oggz-chop/httpdate_test.c:14: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 d_out[30];
data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:160: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 (new_og->header, og->header, og->header_len);
data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:168: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 (new_og->body, og->body, og->body_len);
data/liboggz-1.1.1/src/tools/oggz-chop/oggz-chop.c:864:24:  [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).
      state->outfile = fopen (state->outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char timespec[16];
data/liboggz-1.1.1/src/tools/oggz-comment.c:319: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[1024];
data/liboggz-1.1.1/src/tools/oggz-comment.c:325:23:  [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).
    ocdata->outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-comment.c:509:18:  [2] (integer) atol:
  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).
      serialno = atol (optarg);
data/liboggz-1.1.1/src/tools/oggz-dump.c:361: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[1024];
data/liboggz-1.1.1/src/tools/oggz-dump.c:386: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 line[120];
data/liboggz-1.1.1/src/tools/oggz-dump.c:406:14:  [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).
    infile = fopen (infilename, "rb");
data/liboggz-1.1.1/src/tools/oggz-dump.c:609:18:  [2] (integer) atol:
  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).
      serialno = atol (optarg);
data/liboggz-1.1.1/src/tools/oggz-dump.c:656:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-known-codecs.c:77:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char * content_types[OGGZ_CONTENT_UNKNOWN];
data/liboggz-1.1.1/src/tools/oggz-merge.c:126: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 (new_og->header, og->header, og->header_len);
data/liboggz-1.1.1/src/tools/oggz-merge.c:135: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 (new_og->body, og->body, og->body_len);
data/liboggz-1.1.1/src/tools/oggz-merge.c:460:16:  [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).
      infile = fopen (infilename, "rb");
data/liboggz-1.1.1/src/tools/oggz-merge.c:475:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-rip.c:403: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).
  infile = fopen (infilename, "rb");
data/liboggz-1.1.1/src/tools/oggz-rip.c:415:23:  [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).
    ordata->outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-scan.c:307:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-sort.c:116: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 (new_og->header, og->header, og->header_len);
data/liboggz-1.1.1/src/tools/oggz-sort.c:125: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 (new_og->body, og->body, og->body_len);
data/liboggz-1.1.1/src/tools/oggz-sort.c:466:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile = fopen (outfilename, "wb");
data/liboggz-1.1.1/src/tools/oggz-validate.c:413: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[1024];
data/liboggz-1.1.1/src/tools/oggz-validate.c:531:20:  [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).
      max_errors = atoi (optarg);
data/liboggz-1.1.1/src/tools/oggz.c:92: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 toolname[TOOLNAME_LEN];
data/liboggz-1.1.1/src/tools/skeleton.c:124: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 (op->packet, FISHEAD_IDENTIFIER, 8); /* identifier */
data/liboggz-1.1.1/src/tools/skeleton.c:157: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 (op->packet, FISBONE_IDENTIFIER, 8); /* identifier */
data/liboggz-1.1.1/src/tools/skeleton.c:167: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((op->packet+FISBONE_SIZE), fp->message_header_fields, fp->current_header_size);
data/liboggz-1.1.1/src/tools/skeleton.c:190: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(fp->UTC, data+44, 20);
data/liboggz-1.1.1/src/tools/skeleton.c:223: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(fp->message_header_fields, data+FISBONE_SIZE, fp->current_header_size);
data/liboggz-1.1.1/src/tools/skeleton.h:34: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 UTC[20];
data/liboggz-1.1.1/include/oggz/oggz_io.h:130:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int oggz_io_set_read (OGGZ * oggz, OggzIORead read, void * user_handle);
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:68:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (s);
data/liboggz-1.1.1/src/liboggz/oggz_comments.c:92:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  if (strncpy (ret, s, len) == NULL) {
data/liboggz-1.1.1/src/liboggz/oggz_io.c:67:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bytes = io->read (io->read_user_handle, buf, n);
data/liboggz-1.1.1/src/liboggz/oggz_io.c:191:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
oggz_io_set_read (OGGZ * oggz, OggzIORead read, void * user_handle)
data/liboggz-1.1.1/src/liboggz/oggz_io.c:201:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  oggz->io->read = read;
data/liboggz-1.1.1/src/liboggz/oggz_private.h:206:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  OggzIORead read;
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:109:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dr_len = strlen (dr);
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:111:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pt_len = dr_len + strlen(path_info) + 1;
data/liboggz-1.1.1/src/tools/oggz-chop/cgi.c:185:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (if_modified_since) + 1;
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:123:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "npt:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:127:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-24:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:131:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-24-drop:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:135:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-25:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:139:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-30:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:143:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-30-drop:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:147:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-50:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:151:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-60:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-chop/timespec.c:155:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
  if (sscanf (str, "smpte-60-drop:%16s", timespec) == 1) {
data/liboggz-1.1.1/src/tools/oggz-info.c:295:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(messages, oit->fbInfo.message_header_fields, len);
data/liboggz-1.1.1/src/tools/skeleton.c:96:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int this_message_size = strlen(header_key) + strlen(header_value) + 4;
data/liboggz-1.1.1/src/tools/skeleton.c:96: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).
    int this_message_size = strlen(header_key) + strlen(header_value) + 4;

ANALYSIS SUMMARY:

Hits = 210
Lines analyzed = 24933 in approximately 0.89 seconds (28126 lines/second)
Physical Source Lines of Code (SLOC) = 14338
Hits@level = [0] 630 [1]  22 [2] 120 [3]  27 [4]  41 [5]   0
Hits@level+ = [0+] 840 [1+] 210 [2+] 188 [3+]  68 [4+]  41 [5+]   0
Hits/KSLOC@level+ = [0+] 58.5856 [1+] 14.6464 [2+] 13.112 [3+] 4.74264 [4+] 2.85953 [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.