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/libdvdnav-6.1.0/examples/menus.c
Examining data/libdvdnav-6.1.0/doc/mainpage.cpp
Examining data/libdvdnav-6.1.0/doc/tutorial.cpp
Examining data/libdvdnav-6.1.0/src/searching.c
Examining data/libdvdnav-6.1.0/src/settings.c
Examining data/libdvdnav-6.1.0/src/logger.h
Examining data/libdvdnav-6.1.0/src/navigation.c
Examining data/libdvdnav-6.1.0/src/dvdnav/version.h
Examining data/libdvdnav-6.1.0/src/dvdnav/dvdnav_events.h
Examining data/libdvdnav-6.1.0/src/dvdnav/dvd_types.h
Examining data/libdvdnav-6.1.0/src/dvdnav/dvdnav.h
Examining data/libdvdnav-6.1.0/src/dvdnav.c
Examining data/libdvdnav-6.1.0/src/vm/decoder.h
Examining data/libdvdnav-6.1.0/src/vm/vmcmd.c
Examining data/libdvdnav-6.1.0/src/vm/getset.c
Examining data/libdvdnav-6.1.0/src/vm/play.c
Examining data/libdvdnav-6.1.0/src/vm/vmcmd.h
Examining data/libdvdnav-6.1.0/src/vm/vm.c
Examining data/libdvdnav-6.1.0/src/vm/getset.h
Examining data/libdvdnav-6.1.0/src/vm/vmget.c
Examining data/libdvdnav-6.1.0/src/vm/vm.h
Examining data/libdvdnav-6.1.0/src/vm/decoder.c
Examining data/libdvdnav-6.1.0/src/vm/play.h
Examining data/libdvdnav-6.1.0/src/dvdnav_internal.h
Examining data/libdvdnav-6.1.0/src/read_cache.h
Examining data/libdvdnav-6.1.0/src/read_cache.c
Examining data/libdvdnav-6.1.0/src/highlight.c
Examining data/libdvdnav-6.1.0/src/logger.c
Examining data/libdvdnav-6.1.0/msvc/msvc/contrib/timer/timer.c
Examining data/libdvdnav-6.1.0/msvc/msvc/contrib/timer/timer.h
Examining data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c
Examining data/libdvdnav-6.1.0/msvc/msvc/include/sys/time.h
Examining data/libdvdnav-6.1.0/msvc/msvc/include/unistd.h
Examining data/libdvdnav-6.1.0/msvc/msvc/include/os_types.h
Examining data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h
Examining data/libdvdnav-6.1.0/msvc/msvc/include/timer.h
Examining data/libdvdnav-6.1.0/msvc/msvc/include/inttypes.h
Examining data/libdvdnav-6.1.0/msvc/msvc/config.h

FINAL RESULTS:

data/libdvdnav-6.1.0/msvc/msvc/include/unistd.h:67:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#define readlink
data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:165:36:  [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 printerrf(format, args...) snprintf(this->err_str, MAX_ERR_LEN, format, ## args);
data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:168:24:  [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 printerrf(str) snprintf(this->err_str, MAX_ERR_LEN, str);
data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:170:24:  [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 printerrf(...) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__);
data/libdvdnav-6.1.0/msvc/msvc/include/os_types.h:15: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/libdvdnav-6.1.0/msvc/msvc/include/os_types.h:15: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/libdvdnav-6.1.0/msvc/msvc/include/unistd.h:63: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/libdvdnav-6.1.0/msvc/msvc/include/unistd.h:63: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/libdvdnav-6.1.0/msvc/msvc/include/unistd.h:64:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/libdvdnav-6.1.0/src/dvdnav_internal.h:233:20:  [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.
    do { if (this) snprintf(this->err_str, MAX_ERR_LEN, format, ## args); } while (0)
data/libdvdnav-6.1.0/src/dvdnav_internal.h:237:20:  [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.
    do { if (this) snprintf(this->err_str, MAX_ERR_LEN, str); } while (0)
data/libdvdnav-6.1.0/src/dvdnav_internal.h:240:20:  [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.
    do { if (this) snprintf(this->err_str, MAX_ERR_LEN, __VA_ARGS__); } while (0)
data/libdvdnav-6.1.0/src/logger.c:37:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stream, fmt, list);
data/libdvdnav-6.1.0/src/read_cache.c:82:33:  [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.
#  define dprintf(fmt, args...) fprintf(MSG_OUT, "libdvdnav: %s: "fmt,  __func__ , ## args)
data/libdvdnav-6.1.0/src/read_cache.c:88:29:  [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.
#  define dprintf(fmt, ...) fprintf(MSG_OUT, "libdvdnav: %s: "fmt,  __func__ , __VA_ARGS__)
data/libdvdnav-6.1.0/src/vm/decoder.c:580: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(MSG_OUT, " %08"PRIx64, (command.instruction & ~ command.examined) );
data/libdvdnav-6.1.0/src/vm/vmcmd.c:264: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(MSG_OUT, "Goto %" PRIu8, vm_getbits(command, 7, 8));
data/libdvdnav-6.1.0/src/vm/vmcmd.c:270: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(MSG_OUT, "SetTmpPML %" PRIu8 ", Goto %" PRIu8,
data/libdvdnav-6.1.0/src/vm/vmcmd.c:304: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(MSG_OUT, "LinkPGCN %" PRIu16, vm_getbits(command, 14, 15));
data/libdvdnav-6.1.0/src/vm/vmcmd.c:329: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(MSG_OUT, "JumpTT %" PRIu8, vm_getbits(command, 22, 7));
data/libdvdnav-6.1.0/src/vm/vmcmd.c:332: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(MSG_OUT, "JumpVTS_TT %" PRIu8, vm_getbits(command, 22, 7));
data/libdvdnav-6.1.0/src/vm/vmcmd.c:335: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(MSG_OUT, "JumpVTS_PTT %" PRIu8 ":%" PRIu16,
data/libdvdnav-6.1.0/src/vm/vmcmd.c:402: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(MSG_OUT, " = %" PRIu16, vm_getbits(command, 30, 15)); /*  ?? */
data/libdvdnav-6.1.0/src/vm/vmcmd.c:528: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(MSG_OUT, " %08"PRIx64, (command.instruction & ~ command.examined) );
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:216:7:  [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.
char *getenv();
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:371:20:  [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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:401: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.
		nonoption_flags = getenv(var);
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:926: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.
    getopt(argc, argv, optstring)
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:956:7:  [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/libdvdnav-6.1.0/src/dvdnav.c:199:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time.tv_usec);
data/libdvdnav-6.1.0/src/dvdnav_internal.h:34:34:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_init(a, b) InitializeCriticalSection(a)
data/libdvdnav-6.1.0/src/dvdnav_internal.h:35:34:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define pthread_mutex_lock(a)    EnterCriticalSection(a)
data/libdvdnav-6.1.0/doc/tutorial.cpp:243:49:  [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).
of the DVD device. <tt>libdvdread</tt> can also open DVD images/mounted DVDs. Read
data/libdvdnav-6.1.0/examples/menus.c:107:14:  [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_fd = open("libdvdnav.mpg", O_CREAT | O_WRONLY, S_IRWXU | S_IRWXG);
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:398: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 var[100];
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:400:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(var, "_%d_GNU_nonoption_argv_flags_", getpid());
data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:127:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char        path[MAX_PATH_LEN]; /* Path to DVD device/dir */
data/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:159:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char err_str[MAX_ERR_LEN];
data/libdvdnav-6.1.0/src/dvdnav.c:82: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(this, src, sizeof(dvdnav_t));
data/libdvdnav-6.1.0/src/dvdnav.c:379:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[80 * 3 + 1];
data/libdvdnav-6.1.0/src/dvdnav.c:382:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(&buffer[i*3], "%02x ",p[i-6]);
data/libdvdnav-6.1.0/src/dvdnav.c:493: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, block, DVD_VIDEO_LB_LEN);
data/libdvdnav-6.1.0/src/dvdnav.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(*buf, state->pgc->palette, sizeof(state->pgc->palette));
data/libdvdnav-6.1.0/src/dvdnav_internal.h:221: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 err_str[MAX_ERR_LEN];
data/libdvdnav-6.1.0/src/vm/getset.c:336:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(&buffer[3*i], "%c%c ",
data/libdvdnav-6.1.0/src/vm/vm.c:154:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open os2_open
data/libdvdnav-6.1.0/src/vm/vm.c:208:13:  [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).
  if ((fd = open(device, O_RDONLY)) == -1) {
data/libdvdnav-6.1.0/src/vm/vm.c:235: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 buffer[49] = {0};
data/libdvdnav-6.1.0/src/vm/vm.c:480:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[8 * 3 + 1];
data/libdvdnav-6.1.0/src/vm/vm.c:486:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(p, " %02d", i);
data/libdvdnav-6.1.0/src/vm/vm.c:509: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(target, source, sizeof(vm_t));
data/libdvdnav-6.1.0/src/vm/vm.c:538: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(target, source, sizeof(vm_t));
data/libdvdnav-6.1.0/src/vm/vm.h:79: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          dvd_name[50];
data/libdvdnav-6.1.0/src/vm/vm.h:80: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          dvd_serial[15];
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:240: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:405:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			nonoption_flags_len = strlen(nonoption_flags);
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:613:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    == (unsigned int) strlen(p->name))
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:637: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:669: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:685: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:690: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:801:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((unsigned int) (nameend - nextchar) == strlen(p->name))
data/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:824: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:844: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:858: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/libdvdnav-6.1.0/msvc/msvc/contrib/getopt.c:862: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/libdvdnav-6.1.0/msvc/msvc/include/dvdnav_internal.h:173:23:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define printerr(str) strncpy(this->err_str, str, MAX_ERR_LEN);
data/libdvdnav-6.1.0/src/dvdnav_internal.h:244:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    do { if (this) strncpy(this->err_str, str, MAX_ERR_LEN - 1); } while (0)
data/libdvdnav-6.1.0/src/vm/vm.c:223:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((read_size = read( fd, data, DVD_VIDEO_LB_LEN )) == -1) {
data/libdvdnav-6.1.0/src/vm/vm.c:236:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(name, (const char*) &data[25], 48);
data/libdvdnav-6.1.0/src/vm/vm.c:241:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(serial, (const char*) &data[73], 14);

ANALYSIS SUMMARY:

Hits = 71
Lines analyzed = 11698 in approximately 0.34 seconds (34335 lines/second)
Physical Source Lines of Code (SLOC) = 7608
Hits@level = [0] 213 [1]  17 [2]  22 [3]   8 [4]  23 [5]   1
Hits@level+ = [0+] 284 [1+]  71 [2+]  54 [3+]  32 [4+]  24 [5+]   1
Hits/KSLOC@level+ = [0+] 37.3291 [1+] 9.33228 [2+] 7.09779 [3+] 4.2061 [4+] 3.15457 [5+] 0.131441
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.