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/apvlv-0.2.0/src/ApvlvCmds.cc
Examining data/apvlv-0.2.0/src/ApvlvCmds.h
Examining data/apvlv-0.2.0/src/ApvlvCompletion.cc
Examining data/apvlv-0.2.0/src/ApvlvCompletion.h
Examining data/apvlv-0.2.0/src/ApvlvCore.cc
Examining data/apvlv-0.2.0/src/ApvlvCore.h
Examining data/apvlv-0.2.0/src/ApvlvDir.cc
Examining data/apvlv-0.2.0/src/ApvlvDir.h
Examining data/apvlv-0.2.0/src/ApvlvDjvu.cc
Examining data/apvlv-0.2.0/src/ApvlvDjvu.h
Examining data/apvlv-0.2.0/src/ApvlvDoc.cc
Examining data/apvlv-0.2.0/src/ApvlvDoc.h
Examining data/apvlv-0.2.0/src/ApvlvEpub.cc
Examining data/apvlv-0.2.0/src/ApvlvEpub.h
Examining data/apvlv-0.2.0/src/ApvlvFile.cc
Examining data/apvlv-0.2.0/src/ApvlvFile.h
Examining data/apvlv-0.2.0/src/ApvlvHtm.cc
Examining data/apvlv-0.2.0/src/ApvlvHtm.h
Examining data/apvlv-0.2.0/src/ApvlvInfo.cc
Examining data/apvlv-0.2.0/src/ApvlvInfo.h
Examining data/apvlv-0.2.0/src/ApvlvMenu.cc
Examining data/apvlv-0.2.0/src/ApvlvMenu.h
Examining data/apvlv-0.2.0/src/ApvlvParams.cc
Examining data/apvlv-0.2.0/src/ApvlvParams.h
Examining data/apvlv-0.2.0/src/ApvlvPdf.cc
Examining data/apvlv-0.2.0/src/ApvlvPdf.h
Examining data/apvlv-0.2.0/src/ApvlvTxt.cc
Examining data/apvlv-0.2.0/src/ApvlvTxt.h
Examining data/apvlv-0.2.0/src/ApvlvUtil.cc
Examining data/apvlv-0.2.0/src/ApvlvUtil.h
Examining data/apvlv-0.2.0/src/ApvlvView.cc
Examining data/apvlv-0.2.0/src/ApvlvView.h
Examining data/apvlv-0.2.0/src/ApvlvWindow.cc
Examining data/apvlv-0.2.0/src/ApvlvWindow.h
Examining data/apvlv-0.2.0/src/main.cc

FINAL RESULTS:

data/apvlv-0.2.0/src/ApvlvUtil.cc:261:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (p, sizeof p, ms, vap);
data/apvlv-0.2.0/src/ApvlvUtil.cc:296:8:  [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 (argv[0], argv);
data/apvlv-0.2.0/src/ApvlvUtil.cc:307:12:  [4] (shell) WinExec:
  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.
    return WinExec (str, SW_NORMAL);
data/apvlv-0.2.0/src/ApvlvView.cc:684:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (estr, sizeof estr, str, vap);
data/apvlv-0.2.0/src/ApvlvView.cc:699:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (estr, sizeof estr, str, vap);
data/apvlv-0.2.0/src/ApvlvUtil.cc:86:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	home = getenv ("HOME");
data/apvlv-0.2.0/src/ApvlvUtil.cc:89:13:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	    home = g_get_home_dir ();
data/apvlv-0.2.0/src/ApvlvView.cc:1003:22:  [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.
              home = getenv("HOME");
data/apvlv-0.2.0/src/main.cc:98:15:  [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.
  while ((c = getopt_long (argc, argv, "c:hv", long_options, &index)) != -1)
data/apvlv-0.2.0/src/ApvlvCmds.cc:114:14:  [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).
	mPreCount = atoi (s);
data/apvlv-0.2.0/src/ApvlvCmds.cc:230:6:  [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 ts[6];
data/apvlv-0.2.0/src/ApvlvCmds.cc:435:6:  [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 s[2] = { 0 };
data/apvlv-0.2.0/src/ApvlvCmds.cc:448:6:  [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 s[2] = { 0 };
data/apvlv-0.2.0/src/ApvlvCmds.cc:458:23:  [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).
		mCmdHead->precount (atoi (mCountString.c_str ()));
data/apvlv-0.2.0/src/ApvlvDir.cc:860:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[AD_STATUS_SIZE][256];
data/apvlv-0.2.0/src/ApvlvDir.h:66: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 filename[0x100];
data/apvlv-0.2.0/src/ApvlvDjvu.cc:104: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).
    FILE *fp = fopen (filename, "wb");
data/apvlv-0.2.0/src/ApvlvDoc.cc:544:6:  [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 temp[0x10];
data/apvlv-0.2.0/src/ApvlvDoc.cc:550:6:  [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 temp[0x10];
data/apvlv-0.2.0/src/ApvlvDoc.cc:657: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).
	mView->open ();
data/apvlv-0.2.0/src/ApvlvDoc.cc:664: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).
	mView->open ();
data/apvlv-0.2.0/src/ApvlvDoc.cc:738: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 rate[16];
data/apvlv-0.2.0/src/ApvlvDoc.cc:1936: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 (dat + ac->mSize, dat, ac->mSize);
data/apvlv-0.2.0/src/ApvlvDoc.cc:1986: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 (mData, mData + mSize, mSize);
data/apvlv-0.2.0/src/ApvlvDoc.cc:2256: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.
        char temp[AD_STATUS_SIZE][256];
data/apvlv-0.2.0/src/ApvlvEpub.cc:419: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).
        int page = atoi(pagestr.c_str());
data/apvlv-0.2.0/src/ApvlvInfo.cc:181:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int page = atoi (p);
data/apvlv-0.2.0/src/ApvlvInfo.cc:195:9:  [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).
	skip = atoi (p);
data/apvlv-0.2.0/src/ApvlvParams.cc:127:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char k[32], v[32], *p;
data/apvlv-0.2.0/src/ApvlvParams.cc:128: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 (k, argu.c_str (), off);
data/apvlv-0.2.0/src/ApvlvParams.cc:222:11:  [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).
	  return atoi (it->second.c_str ());
data/apvlv-0.2.0/src/ApvlvTxt.cc:272:6:  [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 + i * 3, mRenderBuf + passed + i * 4 + 1, 3);
data/apvlv-0.2.0/src/ApvlvUtil.cc:72: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 abpath[PATH_MAX];
data/apvlv-0.2.0/src/ApvlvUtil.cc:254: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 p[0x1000], temp[0x100];
data/apvlv-0.2.0/src/ApvlvView.cc:204:19:  [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).
  void ApvlvView::open ()
data/apvlv-0.2.0/src/ApvlvView.cc:666: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 s[2] = { 0 };
data/apvlv-0.2.0/src/ApvlvView.cc:782:6:  [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 text[PATH_MAX];
data/apvlv-0.2.0/src/ApvlvView.cc:986:24:  [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).
		crtadoc ()->setskip (atoi (argu.c_str ()));
data/apvlv-0.2.0/src/ApvlvView.cc:1030:45:  [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).
	    crtadoc ()->print (subcmd == "" ? -1 : atoi (subcmd.c_str ()));
data/apvlv-0.2.0/src/ApvlvView.cc:1051:30:  [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).
	      crtadoc ()->nextpage (atoi (subcmd.c_str ()));
data/apvlv-0.2.0/src/ApvlvView.cc:1058:29:  [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).
	      crtadoc ()->prepage (atoi (subcmd.c_str ()));
data/apvlv-0.2.0/src/ApvlvView.cc:1063:14:  [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).
	    int p = atoi (subcmd.c_str ());
data/apvlv-0.2.0/src/ApvlvView.cc:1150:11:  [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).
		int p = atoi (cmd.c_str ());
data/apvlv-0.2.0/src/ApvlvView.cc:1396: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 tagname[26];
data/apvlv-0.2.0/src/ApvlvView.h:96:10:  [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).
    void open ();
data/apvlv-0.2.0/src/ApvlvCmds.cc:197: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 (s);
data/apvlv-0.2.0/src/ApvlvCompletion.cc:74: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).
	if (memcmp (prefix, str, strlen (prefix)) == 0)
data/apvlv-0.2.0/src/ApvlvDir.cc:912:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (g_ascii_strncasecmp (basename + strlen (basename) - 4, ".pdf", 4)
data/apvlv-0.2.0/src/ApvlvDir.cc:914:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 4,
data/apvlv-0.2.0/src/ApvlvDir.cc:916:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:918:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:921:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:923:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 4, ".djv",
data/apvlv-0.2.0/src/ApvlvDir.cc:927:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	&& g_ascii_strncasecmp (basename + strlen (basename) - 4,
data/apvlv-0.2.0/src/ApvlvDir.cc:1045:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    else if (g_ascii_strncasecmp (name + strlen (name) - 4, ".pdf", 4)
data/apvlv-0.2.0/src/ApvlvDir.cc:1047:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 4,
data/apvlv-0.2.0/src/ApvlvDir.cc:1049:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:1051:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:1054:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 5,
data/apvlv-0.2.0/src/ApvlvDir.cc:1056:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 4, ".djv",
data/apvlv-0.2.0/src/ApvlvDir.cc:1060:39:  [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).
		     || g_ascii_strncasecmp (name + strlen (name) - 4,
data/apvlv-0.2.0/src/ApvlvDjvu.cc:175:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep (50 * 1000);
data/apvlv-0.2.0/src/ApvlvDoc.cc:55:36:  [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 (g_ascii_strcasecmp (name + strlen (name) - 4, ".htm") == 0
data/apvlv-0.2.0/src/ApvlvDoc.cc:56:39:  [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).
        || g_ascii_strcasecmp (name + strlen (name) - 5, ".html") == 0
data/apvlv-0.2.0/src/ApvlvDoc.cc:57:39:  [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).
        || g_ascii_strcasecmp (name + strlen (name) - 5, ".epub") == 0)
data/apvlv-0.2.0/src/ApvlvDoc.cc:1375: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).
    if (strlen (str) > 0 && strcmp (str, mSearchStr.c_str ()) != 0)
data/apvlv-0.2.0/src/ApvlvFile.cc:88: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).
	if (strcasecmp (filename + strlen (filename) - strlen (type_phrase[i]),
data/apvlv-0.2.0/src/ApvlvFile.cc:88: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 (strcasecmp (filename + strlen (filename) - strlen (type_phrase[i]),
data/apvlv-0.2.0/src/ApvlvParams.cc:139:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    p = (char *) v + strlen (v) - 1;
data/apvlv-0.2.0/src/ApvlvPdf.cc:212:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ifs.read (mRawdata, filelen);
data/apvlv-0.2.0/src/ApvlvUtil.h:100:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define usleep(x)    Sleep((x) / 1000)
data/apvlv-0.2.0/src/ApvlvView.cc:619:15:  [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).
	size_t len = strlen (bname);
data/apvlv-0.2.0/src/ApvlvView.cc:639:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (dname[strlen (dname) - 1] == PATH_SEP_C)
data/apvlv-0.2.0/src/ApvlvView.cc:1232: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).
	    if (str && strlen (str) > 0)
data/apvlv-0.2.0/src/ApvlvView.cc:1257: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).
	    if (str && strlen (str) > 0)
data/apvlv-0.2.0/src/ApvlvView.cc:1267:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (str == NULL || strlen (str) == 1)

ANALYSIS SUMMARY:

Hits = 76
Lines analyzed = 11986 in approximately 0.23 seconds (52801 lines/second)
Physical Source Lines of Code (SLOC) = 8901
Hits@level = [0]   2 [1]  31 [2]  36 [3]   4 [4]   5 [5]   0
Hits@level+ = [0+]  78 [1+]  76 [2+]  45 [3+]   9 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 8.76306 [1+] 8.53837 [2+] 5.05561 [3+] 1.01112 [4+] 0.561735 [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.