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/html2text-1.3.2a/Properties.C
Examining data/html2text-1.3.2a/Properties.h
Examining data/html2text-1.3.2a/auto_aptr.h
Examining data/html2text-1.3.2a/cmp_nocase.C
Examining data/html2text-1.3.2a/cmp_nocase.h
Examining data/html2text-1.3.2a/format.h
Examining data/html2text-1.3.2a/sgml.h
Examining data/html2text-1.3.2a/urlistream.C
Examining data/html2text-1.3.2a/urlistream.h
Examining data/html2text-1.3.2a/libstd/rb_tree.C
Examining data/html2text-1.3.2a/libstd/rb_tree.h
Examining data/html2text-1.3.2a/libstd/string.C
Examining data/html2text-1.3.2a/libstd/vector_base.C
Examining data/html2text-1.3.2a/libstd/vector_base.h
Examining data/html2text-1.3.2a/libstd/include/auto_ptr.h
Examining data/html2text-1.3.2a/HTMLControl.h
Examining data/html2text-1.3.2a/Area.h
Examining data/html2text-1.3.2a/HTMLControl.C
Examining data/html2text-1.3.2a/html.C
Examining data/html2text-1.3.2a/html.h
Examining data/html2text-1.3.2a/table.C
Examining data/html2text-1.3.2a/HTMLParser.h
Examining data/html2text-1.3.2a/HTMLParser.C
Examining data/html2text-1.3.2a/sgml.C
Examining data/html2text-1.3.2a/format.C
Examining data/html2text-1.3.2a/html2text.C
Examining data/html2text-1.3.2a/Area.C

FINAL RESULTS:

data/html2text-1.3.2a/HTMLParser.C:3050:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(msg, count == 0 ? ", expecting `" : " or `");
data/html2text-1.3.2a/HTMLParser.C:3051:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(msg, yytname[x]);
data/html2text-1.3.2a/format.C:1553:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.vspace.before", item_name);
data/html2text-1.3.2a/format.C:1555:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.vspace.after", item_name);
data/html2text-1.3.2a/format.C:1557:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.indent.left", item_name);
data/html2text-1.3.2a/format.C:1559:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.indent.right", item_name);
data/html2text-1.3.2a/format.C:1603:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.vspace.before", item_name);
data/html2text-1.3.2a/format.C:1605:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.vspace.between", item_name);
data/html2text-1.3.2a/format.C:1607:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.vspace.after", item_name);
data/html2text-1.3.2a/format.C:1609:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.indents", item_name);
data/html2text-1.3.2a/format.C:1611:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lb, "%s.default_types", item_name);
data/html2text-1.3.2a/html2text.C:169:3:  [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).
		strcpy(raw_input, input_string.data());
data/html2text-1.3.2a/html2text.C:589:3:  [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).
		strcpy(output_encoding, nl_langinfo(CODESET));
data/html2text-1.3.2a/libstd/string.C:194:5:  [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).
    strcpy(p + len, x);
data/html2text-1.3.2a/libstd/string.C:292:5:  [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).
    strcpy(p + pos, p + pos + n);
data/html2text-1.3.2a/libstd/string.C:374:7:  [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).
      strcpy(p + pos, x);
data/html2text-1.3.2a/urlistream.C:327:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(command, "GET %s\r\n\r\n", node_name);
data/html2text-1.3.2a/html2text.C:282:34:  [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.
  const char *home             = getenv("HOME");
data/html2text-1.3.2a/Area.C:57:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
((void) memcpy((to), (from), (count) * sizeof(type)))
data/html2text-1.3.2a/HTMLControl.C:191: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      name[11];
data/html2text-1.3.2a/HTMLParser.C:3042:8:  [2] (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). Risk is low because the source is a constant string.
	      strcpy(msg, "parse error");
data/html2text-1.3.2a/format.C:568: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.
  static char cell_attributes[7];
data/html2text-1.3.2a/format.C:582: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.
    static const char *prefixes[7];
data/html2text-1.3.2a/format.C:593: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.
    static const char *suffixes[7];
data/html2text-1.3.2a/format.C:1498: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).
  return p ? atoi(p) : dflt;
data/html2text-1.3.2a/format.C:1514: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).
    res->push_back(atoi(p));
data/html2text-1.3.2a/format.C:1551: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 lb[80];
data/html2text-1.3.2a/format.C:1601: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 lb[80];
data/html2text-1.3.2a/html.C:573:53:  [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).
      if (cmp_nocase((*i).first, name) == 0) return atoi((*i).second.c_str());
data/html2text-1.3.2a/html2text.C:300:63:  [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).
    if (!strcmp(arg, "-width"        )) { if (++i < argc) if (atoi(argv[i]) > 0) width = atoi(argv[i]); } else
data/html2text-1.3.2a/html2text.C:300:90:  [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).
    if (!strcmp(arg, "-width"        )) { if (++i < argc) if (atoi(argv[i]) > 0) width = atoi(argv[i]); } else
data/html2text-1.3.2a/html2text.C:421:38:  [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 (!ifs.rdbuf()->is_open()) ifs.open("/etc/html2textrc");
data/html2text-1.3.2a/html2text.C:443: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).
    ofs.open(output_file_name, std::ios::out);
data/html2text-1.3.2a/html2text.C:588: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 output_encoding[64];
data/html2text-1.3.2a/html2text.C:590:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(output_encoding, "//translit");
data/html2text-1.3.2a/libstd/string.C:77: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, x, n);
data/html2text-1.3.2a/libstd/string.C:254: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, s.p + pos, n);
data/html2text-1.3.2a/libstd/string.C:320: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(p + pos1, s.p + pos2, n2);
data/html2text-1.3.2a/libstd/string.C:326: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(p + pos1, s.p + pos2, n2);
data/html2text-1.3.2a/libstd/string.C:339:44:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (n2) { p = (char *) malloc(n2 + 1); memcpy(p, x, n2); p[n2] = '\0'; }
data/html2text-1.3.2a/libstd/string.C:344:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p + pos, x, n2);
data/html2text-1.3.2a/libstd/string.C:355: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(p + pos, x, n2);
data/html2text-1.3.2a/libstd/string.C:384: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(p + pos, x, len2);
data/html2text-1.3.2a/libstd/string.C:449: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[1024];
data/html2text-1.3.2a/libstd/string.C:500: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(res.p, s1.p, l1);
data/html2text-1.3.2a/libstd/string.C:501: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(res.p + l1, s2.p, l2);
data/html2text-1.3.2a/libstd/string.C:511: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(res.p, p1, l1);
data/html2text-1.3.2a/libstd/string.C:512: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(res.p + l1, s2.p, l2);
data/html2text-1.3.2a/libstd/string.C:523: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(res.p + 1, s.p, l);
data/html2text-1.3.2a/libstd/string.C:533: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(res.p, s1.p, l1);
data/html2text-1.3.2a/libstd/string.C:534: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(res.p + l1, p2, l2);
data/html2text-1.3.2a/libstd/string.C:544: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(res.p, s.p, l);
data/html2text-1.3.2a/sgml.C:62: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 name[8];
data/html2text-1.3.2a/sgml.C:321:1:  [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 ubuf[4];
data/html2text-1.3.2a/sgml.C:417: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 name[8];
data/html2text-1.3.2a/urlistream.C:81: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).
urlistream::open(
data/html2text-1.3.2a/urlistream.C:116: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).
urlistream::open(
data/html2text-1.3.2a/urlistream.C:121:3:  [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).
  open(url.c_str(), timeout);
data/html2text-1.3.2a/urlistream.C:140: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 host_name[100];
data/html2text-1.3.2a/urlistream.C:141: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 port_name[100];
data/html2text-1.3.2a/urlistream.C:142: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 node_name[1000];
data/html2text-1.3.2a/urlistream.C:164:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(port_name, "80");
data/html2text-1.3.2a/urlistream.C:208:34:  [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).
    soc_address.sin_port = htons(atoi(port_name));
data/html2text-1.3.2a/urlistream.C:326: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 command[4 + (sizeof(node_name) - 1) + 4 + 1];
data/html2text-1.3.2a/urlistream.C:348:48:  [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).
  fd_ = !strcmp(file_name, "-") ? ::dup(0) : ::open(file_name, O_RDONLY);
data/html2text-1.3.2a/urlistream.h:63:33:  [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).
  ) : open_error_(0), fd_(-1) { open(url, timeout); }
data/html2text-1.3.2a/urlistream.h:67:33:  [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).
  ) : open_error_(0), fd_(-1) { open(url, timeout); }
data/html2text-1.3.2a/urlistream.h:69:8:  [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/html2text-1.3.2a/urlistream.h:73:8:  [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/html2text-1.3.2a/Area.C:68: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).
  length_(strlen(p)),
data/html2text-1.3.2a/Area.C:159: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).
  enlarge(x + strlen(p));
data/html2text-1.3.2a/Area.C:193: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).
  enlarge(x + strlen(p));
data/html2text-1.3.2a/Area.C:236:10:  [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).
  width_(strlen(p)),
data/html2text-1.3.2a/HTMLParser.C:3038: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).
	      size += strlen(yytname[x]) + 15, count++;
data/html2text-1.3.2a/HTMLParser.C:3052:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(msg, "'");
data/html2text-1.3.2a/cmp_nocase.h:66:32:  [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).
      { return _cmp_nocase(s1, strlen(s1), s2.data(), s2.length()); }
data/html2text-1.3.2a/cmp_nocase.h:68:56:  [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).
      { return _cmp_nocase(s1.data(), s1.length(), s2, strlen(s2)); }
data/html2text-1.3.2a/cmp_nocase.h:70:32:  [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).
      { return _cmp_nocase(s1, strlen(s1), s2, strlen(s2)); }
data/html2text-1.3.2a/cmp_nocase.h:70:48:  [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).
      { return _cmp_nocase(s1, strlen(s1), s2, strlen(s2)); }
data/html2text-1.3.2a/libstd/string.C:176: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).
    size_t len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:192: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).
    size_t len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:193:35:  [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 *) realloc(p, len + strlen(x) + 1);
data/html2text-1.3.2a/libstd/string.C:214:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:234:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:271: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).
      size_type len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:287: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).
  size_type len = strlen(p);
data/html2text-1.3.2a/libstd/string.C:341:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len1 = strlen(p);
data/html2text-1.3.2a/libstd/string.C:370:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len1 = strlen(p);
data/html2text-1.3.2a/libstd/string.C:371:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len2 = strlen(x);
data/html2text-1.3.2a/libstd/string.C:403:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_type len1 = strlen(p);
data/html2text-1.3.2a/libstd/string.C:426:33:  [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).
string::length() const { return strlen(p); }
data/html2text-1.3.2a/libstd/string.C:429:31:  [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).
string::size() const { return strlen(p); }
data/html2text-1.3.2a/libstd/string.C:452: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).
    while (is.gcount() == strlen(buffer)) {   // Delimiter not read yet
data/html2text-1.3.2a/libstd/string.C:498: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).
  string::size_type l1 = strlen(s1.p), l2 = strlen(s2.p);
data/html2text-1.3.2a/libstd/string.C:498:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  string::size_type l1 = strlen(s1.p), l2 = strlen(s2.p);
data/html2text-1.3.2a/libstd/string.C:509: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).
  string::size_type l1 = strlen(p1), l2 = strlen(s2.p);
data/html2text-1.3.2a/libstd/string.C:509: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).
  string::size_type l1 = strlen(p1), l2 = strlen(s2.p);
data/html2text-1.3.2a/libstd/string.C:520: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).
  string::size_type l = strlen(s.p);
data/html2text-1.3.2a/libstd/string.C:531: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).
  string::size_type l1 = strlen(s1.p), l2 = strlen(p2);
data/html2text-1.3.2a/libstd/string.C:531:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  string::size_type l1 = strlen(s1.p), l2 = strlen(p2);
data/html2text-1.3.2a/libstd/string.C:542: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).
  string::size_type l = strlen(s.p);
data/html2text-1.3.2a/urlistream.C:172:7:  [1] (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). Risk is low because the source is a constant character.
      strcpy(node_name, "/");
data/html2text-1.3.2a/urlistream.C:328:28:  [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).
  ssize_t command_length = strlen(command);
data/html2text-1.3.2a/urlistream.C:366:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int ret = ::read(fd_, &ch, 1);

ANALYSIS SUMMARY:

Hits = 104
Lines analyzed = 13122 in approximately 0.57 seconds (22891 lines/second)
Physical Source Lines of Code (SLOC) = 9582
Hits@level = [0]  19 [1]  35 [2]  51 [3]   1 [4]  17 [5]   0
Hits@level+ = [0+] 123 [1+] 104 [2+]  69 [3+]  18 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 12.8366 [1+] 10.8537 [2+] 7.201 [3+] 1.87852 [4+] 1.77416 [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.