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/docbook-to-man-2.0.0/Instant/allVersion.c
Examining data/docbook-to-man-2.0.0/Instant/hyper.c
Examining data/docbook-to-man-2.0.0/Instant/masterVersion.c
Examining data/docbook-to-man-2.0.0/Instant/tables.c
Examining data/docbook-to-man-2.0.0/Instant/traninit.c
Examining data/docbook-to-man-2.0.0/Instant/translate.c
Examining data/docbook-to-man-2.0.0/Instant/translate.h
Examining data/docbook-to-man-2.0.0/Instant/tranvar.c
Examining data/docbook-to-man-2.0.0/Instant/util.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/regerror.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/regmagic.h
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/regsub.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/strerror.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/tptregexp.h
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/try.c
Examining data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c
Examining data/docbook-to-man-2.0.0/Instant/general.h
Examining data/docbook-to-man-2.0.0/Instant/main.c
Examining data/docbook-to-man-2.0.0/Instant/browse.c
Examining data/docbook-to-man-2.0.0/Instant/info.c

FINAL RESULTS:

data/docbook-to-man-2.0.0/Instant/general.h:324:19:  [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).
#define strdup(s)	strcpy((char *)malloc(strlen(s)+1), s)
data/docbook-to-man-2.0.0/Instant/info.c:94:2:  [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(outfp, hfmt, "Element", "Att", "Data", "Chd", "Dep", "Parent");
data/docbook-to-man-2.0.0/Instant/info.c:100: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(outfp, fmt, e->gi, e->natts, dsize, n, e->depth,
data/docbook-to-man-2.0.0/Instant/main.c:252: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(buf, var);
data/docbook-to-man-2.0.0/Instant/main.c:698: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(dst,pch);
data/docbook-to-man-2.0.0/Instant/main.c:703: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(dst,sdata);
data/docbook-to-man-2.0.0/Instant/main.c:727:11:  [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(dst,CharMap[i].sval);
data/docbook-to-man-2.0.0/Instant/tables.c:575:6:  [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, ncolchk, "ALIGN", TheTab.align, TheTab.nc);
data/docbook-to-man-2.0.0/Instant/tables.c:593:6:  [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, ncolchk, "COLWIDTH", TheTab.colwidth, TheTab.nc);
data/docbook-to-man-2.0.0/Instant/tables.c:609:6:  [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, ncolchk, "COLSEP", TheTab.colsep, TheTab.nc);
data/docbook-to-man-2.0.0/Instant/tables.c:762:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "\\\\multicolumn{%d}{%sc%s}", n,
data/docbook-to-man-2.0.0/Instant/tables.c:1259: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(tfp->colwidth[i], TblGetWidth(i, ep, TRUE, source));
data/docbook-to-man-2.0.0/Instant/tables.c:1260: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(tfp->colpwidth[i], TblGetWidth(i, ep, FALSE, source));
data/docbook-to-man-2.0.0/Instant/tables.c:1288: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(tfp->font[i], TblGetFont(i, ep, source));
data/docbook-to-man-2.0.0/Instant/tables.c:1372: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(colWidth, tcsp->colwidth);
data/docbook-to-man-2.0.0/Instant/tables.c:1375: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(colWidth, tcsp->colwidth);
data/docbook-to-man-2.0.0/Instant/tables.c:1869: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(tcsp->name, cp);
data/docbook-to-man-2.0.0/Instant/tables.c:1894: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(tcsp->colwidth, cp);
data/docbook-to-man-2.0.0/Instant/tables.c:1896: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(tcsp->colwidth, ( pcsp ) ? pcsp->colwidth : "");
data/docbook-to-man-2.0.0/Instant/tables.c:1932:47:  [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).
	if ( cp = FindAttValByName(ep, "SPANNAME") ) strcpy(tssp->name, cp);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1177:10:  [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).
		(void) strcat(buf, p);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:104:2:  [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, s1, s2);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:180:2:  [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, s1, s2);
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:106:2:  [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, s1, s2);
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:235:2:  [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, s1, s2);
data/docbook-to-man-2.0.0/Instant/traninit.c:103:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(buf,"Can not open translation spec '%s'", transfile);
data/docbook-to-man-2.0.0/Instant/traninit.c:364:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(buf,"Can not open character mapping file file '%s': ",
data/docbook-to-man-2.0.0/Instant/traninit.c:423:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(buf,"Can not open SDATA file '%s': ", filename);
data/docbook-to-man-2.0.0/Instant/translate.c:688: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(&buf[1], pi);
data/docbook-to-man-2.0.0/Instant/tranvar.c:113:16:  [4] (shell) popen:
  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.
	if ((infile = popen(name, "r"))) {
data/docbook-to-man-2.0.0/Instant/tranvar.c:146:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "Can not open included file '%s'", name);
data/docbook-to-man-2.0.0/Instant/tranvar.c:173:2:  [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(buf, e->gi);
data/docbook-to-man-2.0.0/Instant/tranvar.c:485: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(buf, e->infile);
data/docbook-to-man-2.0.0/Instant/tranvar.c:723:2:  [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(DS.action, av[3]);
data/docbook-to-man-2.0.0/Instant/tranvar.c:730:2:  [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(DS.action, av[4]);
data/docbook-to-man-2.0.0/Instant/tranvar.c:736:2:  [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(DS.action, av[3]);
data/docbook-to-man-2.0.0/Instant/tranvar.c:743:2:  [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(DS.action, av[4]);
data/docbook-to-man-2.0.0/Instant/util.c:335:16:  [4] (shell) popen:
  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.
	    if ((pp = popen(s, "r"))) {		/* run cmd, read its output */
data/docbook-to-man-2.0.0/Instant/util.c:354:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "Could not start program '%s'", s);
data/docbook-to-man-2.0.0/Instant/util.c:379: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(buf, s);
data/docbook-to-man-2.0.0/Instant/util.c:424:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s/%s", libdirs[i], filename);
data/docbook-to-man-2.0.0/Instant/util.c:458:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cp, "%s(%d) ", ep->gi, e_path[i]);
data/docbook-to-man-2.0.0/Instant/util.c:461:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cp, "%s", e->gi);
data/docbook-to-man-2.0.0/Instant/util.c:813:2:  [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(s, ep->gi);
data/docbook-to-man-2.0.0/Instant/main.c:196:19:  [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 (!(tpt_lib=getenv(TPT_LIB))) tpt_lib = DEF_TPT_LIB;
data/docbook-to-man-2.0.0/Instant/main.c:208:41:  [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.
    SetMappingNV(Variables, "user", (cp=getenv("USER")) ? cp : "UnknownUser" );
data/docbook-to-man-2.0.0/Instant/main.c:293:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c=getopt(ac, av, "df:t:vc:s:o:huSxIl:bHVWi:D:Z")) != EOF) {
data/docbook-to-man-2.0.0/Instant/tranvar.c:501:24:  [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 (ntok > 1 && (cp = getenv(tok[1]))) {
data/docbook-to-man-2.0.0/Instant/browse.c:112: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	buf[256], *cmd, **av, **sv, *cmapfile, *sdatafile;
data/docbook-to-man-2.0.0/Instant/browse.c:161: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).
		    n = atoi(av[i]);
data/docbook-to-man-2.0.0/Instant/browse.c:173:7:  [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).
		n = atoi(av[1]);
data/docbook-to-man-2.0.0/Instant/browse.c:251: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).
		if (!(fp = fopen(av[2], "w"))) {
data/docbook-to-man-2.0.0/Instant/browse.c:299: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 buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/browse.c:392: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 buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/info.c:136: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 buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/main.c:192: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	*cp, buf[100];
data/docbook-to-man-2.0.0/Instant/main.c:213:36:  [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.
    if (gethostname(buf, 100) < 0) strcpy(buf, "unknown-host");
data/docbook-to-man-2.0.0/Instant/main.c:228: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).
	if (!(outfp = fopen(out_file, "w"))) {
data/docbook-to-man-2.0.0/Instant/main.c:248: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	*cp, buf[100], **tok;
data/docbook-to-man-2.0.0/Instant/main.c:264:47:  [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(tok[0], "verbose"))		verbose   = atoi(tok[1]);
data/docbook-to-man-2.0.0/Instant/main.c:265:52:  [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).
	else if (!strcmp(tok[0], "warnings"))	warnings  = atoi(tok[1]);
data/docbook-to-man-2.0.0/Instant/main.c:266:52:  [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).
	else if (!strcmp(tok[0], "foldcase"))	fold_case = atoi(tok[1]);
data/docbook-to-man-2.0.0/Instant/main.c:267:59:  [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).
       else if (!strcmp(tok[0], "xmlmode"))    xml_mode = atoi(tok[1]);
data/docbook-to-man-2.0.0/Instant/main.c:308:33:  [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).
	    case 'f': BOFTTextThresh	= atoi(optarg);	break;
data/docbook-to-man-2.0.0/Instant/main.c:421: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	buf[LINESIZE+1];
data/docbook-to-man-2.0.0/Instant/main.c:461: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(e->atts, a, na*sizeof(Mapping_t));
data/docbook-to-man-2.0.0/Instant/main.c:509: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).
		last_lineno = e->lineno = atoi(buf);
data/docbook-to-man-2.0.0/Instant/main.c:887:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp=fopen(filename, "r")) == NULL) {
data/docbook-to-man-2.0.0/Instant/tables.c:118: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		name[NAMELEN];	/* colspec's name */
data/docbook-to-man-2.0.0/Instant/tables.c:125: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		colwidth[10];	/* width for column */
data/docbook-to-man-2.0.0/Instant/tables.c:126: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		colpwidth[10];	/* proportional widths for column */
data/docbook-to-man-2.0.0/Instant/tables.c:136: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		name[NAMELEN];	/* spanspec's name */
data/docbook-to-man-2.0.0/Instant/tables.c:155: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	colformat[TBLMAXCOL];	/* per-column formats */
data/docbook-to-man-2.0.0/Instant/tables.c:156: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	colwidth[TBLMAXCOL][10]; /* per-column widths */
data/docbook-to-man-2.0.0/Instant/tables.c:157: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	colpwidth[TBLMAXCOL][10]; /* per-column proportional widths */
data/docbook-to-man-2.0.0/Instant/tables.c:158: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	font[TBLMAXCOL][3];	/* column fonts (headers) */
data/docbook-to-man-2.0.0/Instant/tables.c:211:8:  [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	basemodel[128];	/* model for table (in formatting language) */
data/docbook-to-man-2.0.0/Instant/tables.c:458: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 ((at = FindAttValByName(e, "ROWSEP")))	rowsep = atoi(at);
data/docbook-to-man-2.0.0/Instant/tables.c:486:26:  [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 (t->cols) t->nc = atoi(t->cols);
data/docbook-to-man-2.0.0/Instant/tables.c:696: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	*cp, wbuf[1500], **widths=0, **widths_v=0;
data/docbook-to-man-2.0.0/Instant/tables.c:755: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	buf[50], *at;
data/docbook-to-man-2.0.0/Instant/tables.c:968: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).
    	tblcols = atoi(FindAttValByName(ep, "COLS"));
data/docbook-to-man-2.0.0/Instant/tables.c:1269:8:  [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(tfp->colwidth[j],"%fi",
data/docbook-to-man-2.0.0/Instant/tables.c:1274:8:  [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(tfp->colpwidth[j],"%fi",
data/docbook-to-man-2.0.0/Instant/tables.c:1304:8:  [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(tfp->colwidth[i], "%fi",
data/docbook-to-man-2.0.0/Instant/tables.c:1361: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.
	static char colWidth[10];
data/docbook-to-man-2.0.0/Instant/tables.c:1470:10:  [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(cp);
data/docbook-to-man-2.0.0/Instant/tables.c:1622: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.
	static char buf[3] = "\000\000";
data/docbook-to-man-2.0.0/Instant/tables.c:1889: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).
		tcsp->aligncharoff = atoi(cp);
data/docbook-to-man-2.0.0/Instant/tables.c:1937: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).
		     (tcsp = TblFindColNum(atoi(cp), source)) )	{
data/docbook-to-man-2.0.0/Instant/tables.c:1951: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).
		     (tcsp = TblFindColNum(atoi(cp), source)) )	{
data/docbook-to-man-2.0.0/Instant/tables.c:1981: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).
		tssp->aligncharoff = atoi(cp);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1107: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.
	static char buf[50];
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1151: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(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1163: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(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:54: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 dummy[512];
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:61: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).
		ncomp = atoi(argv[1]);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:62: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).
		nexec = atoi(argv[2]);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:63:10:  [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).
		nsub = atoi(argv[3]);
data/docbook-to-man-2.0.0/Instant/tptregexp/timer.c:130: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 dbuf[BUFSIZ];
data/docbook-to-man-2.0.0/Instant/tptregexp/tptregexp.h:9: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 *startp[NSUBEXP];
data/docbook-to-man-2.0.0/Instant/tptregexp/tptregexp.h:10: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 *endp[NSUBEXP];
data/docbook-to-man-2.0.0/Instant/tptregexp/tptregexp.h:15: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 program[1];	/* Unwarranted chumminess with compiler. */
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:44: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 buf[BUFSIZ];
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:118: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 rbuf[BUFSIZ];
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:119: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 *field[5];
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:193: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 dbuf[BUFSIZ];
data/docbook-to-man-2.0.0/Instant/traninit.c:98: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	buf[LINESIZE], *cp, *fn, *cp2;
data/docbook-to-man-2.0.0/Instant/traninit.c:192:55:  [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).
	else if (!strncmp("SpecID:",      fn, 7))  T.my_id	= atoi(cp);
data/docbook-to-man-2.0.0/Instant/traninit.c:193:56:  [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).
	else if (!strncmp("Action:",      fn, 7))  T.use_id	= atoi(cp);
data/docbook-to-man-2.0.0/Instant/traninit.c:231:59:  [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).
	else if (!strncmp("NthChild:",    fn, 9))  T.nth_child	= atoi(cp);
data/docbook-to-man-2.0.0/Instant/traninit.c:255: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 buf[1000];
data/docbook-to-man-2.0.0/Instant/traninit.c:359: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	buf[LINESIZE], *name, *val;
data/docbook-to-man-2.0.0/Instant/traninit.c:419: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	buf[LINESIZE], *name, *val;
data/docbook-to-man-2.0.0/Instant/translate.c:199: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	vbuf[500];
data/docbook-to-man-2.0.0/Instant/translate.c:245:16:  [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, ContData(e,i), j);
data/docbook-to-man-2.0.0/Instant/translate.c:326: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	obuf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/translate.c:327: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	vbuf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/translate.c:328: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	*dest, vname[LINESIZE], *cp;
data/docbook-to-man-2.0.0/Instant/translate.c:400: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	context[LINESIZE], buf[LINESIZE], *cp, **vec, *atval;
data/docbook-to-man-2.0.0/Instant/translate.c:627: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	*cp, buf[LINESIZE], *dp, *sub, prev;
data/docbook-to-man-2.0.0/Instant/translate.c:683: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	buf[250], **tok;
data/docbook-to-man-2.0.0/Instant/translate.c:724: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	*cp, buf[50];
data/docbook-to-man-2.0.0/Instant/translate.c:725: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	ebuf[500];
data/docbook-to-man-2.0.0/Instant/translate.c:743: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).
		    n = atoi(cp);
data/docbook-to-man-2.0.0/Instant/translate.c:744:51:  [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 (m[i].sval && isdigit(*m[i].sval)) inc = atoi(m[i].sval);
data/docbook-to-man-2.0.0/Instant/translate.c:746: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(buf, "%d", (n + inc));
data/docbook-to-man-2.0.0/Instant/translate.c:922: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).
    n = atoi(strn);
data/docbook-to-man-2.0.0/Instant/tranvar.c:102: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	buf[LINESIZE], *cp, *atval;
data/docbook-to-man-2.0.0/Instant/tranvar.c:230:2:  [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(buf, "%d", n);
data/docbook-to-man-2.0.0/Instant/tranvar.c:238:6:  [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(buf, "%d", e->econt[0]->necont);
data/docbook-to-man-2.0.0/Instant/tranvar.c:251:12:  [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).
	actioni = atoi(tok[2]);
data/docbook-to-man-2.0.0/Instant/tranvar.c:415:12:  [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).
	actioni = atoi(tok[2]);
data/docbook-to-man-2.0.0/Instant/tranvar.c:639: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	action[10];
data/docbook-to-man-2.0.0/Instant/util.c:129: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.
    static char	*local_tokens[100];
data/docbook-to-man-2.0.0/Instant/util.c:289: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	buf[LINESIZE], *cp, *s;
data/docbook-to-man-2.0.0/Instant/util.c:295:50:  [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(name, "verbose"))  { verbose   = atoi(value); return; }
data/docbook-to-man-2.0.0/Instant/util.c:296:50:  [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(name, "warnings")) { warnings  = atoi(value); return; }
data/docbook-to-man-2.0.0/Instant/util.c:297:50:  [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(name, "foldcase")) { fold_case = atoi(value); return; }
data/docbook-to-man-2.0.0/Instant/util.c:372: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	buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/util.c:404: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	buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/util.c:409: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).
    if ((fp=fopen(filename, "r"))) return fp;
data/docbook-to-man-2.0.0/Instant/util.c:425:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp=fopen(buf, "r"))) return fp;
data/docbook-to-man-2.0.0/Instant/util.c:479: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, buf[LINESIZE];
data/docbook-to-man-2.0.0/Instant/util.c:1042: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 buf[100];
data/docbook-to-man-2.0.0/Instant/util.c:1044: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(buf, "error number %d\n", number);
data/docbook-to-man-2.0.0/Instant/browse.c:344: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).
	    if (strlen(e->dcont[i]) < 40) 
data/docbook-to-man-2.0.0/Instant/general.h:324: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).
#define strdup(s)	strcpy((char *)malloc(strlen(s)+1), s)
data/docbook-to-man-2.0.0/Instant/info.c:99: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).
	if (IsContElem(e,i)) dsize += strlen(e->cont[i].ch.data);
data/docbook-to-man-2.0.0/Instant/info.c:214: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).
    for (i=0; i<e->ndcont; i++) (*tot_data) += strlen(e->dcont[i]);
data/docbook-to-man-2.0.0/Instant/info.c:237:40:  [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 (IsContData(e,i)) (*nchars) += strlen(ContData(e,i));
data/docbook-to-man-2.0.0/Instant/main.c:448:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((c = getc(fp)) == EOF) break;
data/docbook-to-man-2.0.0/Instant/main.c:607:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((c = getc(fp)) == EOF) break;
data/docbook-to-man-2.0.0/Instant/main.c:699: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).
				  dst += strlen(pch);
data/docbook-to-man-2.0.0/Instant/main.c:704: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).
				  dst += strlen(sdata);
data/docbook-to-man-2.0.0/Instant/main.c:728: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).
			       dst += strlen(CharMap[i].sval)-1;
data/docbook-to-man-2.0.0/Instant/main.c:799:30:  [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).
			memmove(&buf[1], &buf[2], strlen(buf)-1);
data/docbook-to-man-2.0.0/Instant/tables.c:1806: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).
			count += strlen(ep->cont[i].ch.data);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:256: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).
				if (OP(scan) == EXACTLY && strlen(OPERAND(scan)) >= len) {
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:258: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).
					len = strlen(OPERAND(scan));
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:840: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(opnd);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:998: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).
		count = strlen(scan);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1109:9:  [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.
	(void) strcpy(buf, ":");
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1151: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).
		sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/docbook-to-man-2.0.0/Instant/tptregexp/regexp.c:1163: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).
		sprintf(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/docbook-to-man-2.0.0/Instant/tptregexp/regsub.c:45:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	extern char *strncpy();
data/docbook-to-man-2.0.0/Instant/tptregexp/regsub.c:72:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			(void) strncpy(dst, prog->startp[no], len);
data/docbook-to-man-2.0.0/Instant/tptregexp/try.c:128:8:  [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).
		rbuf[strlen(rbuf)-1] = '\0';	/* Dispense with \n. */
data/docbook-to-man-2.0.0/Instant/traninit.c:130:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    c = getc(fp);		/* 1st char of next line */
data/docbook-to-man-2.0.0/Instant/traninit.c:133:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getc(fp);
data/docbook-to-man-2.0.0/Instant/traninit.c:134:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (IsWhite(c)) c = getc(fp);
data/docbook-to-man-2.0.0/Instant/traninit.c:136:7:  [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).
		i = strlen(buf);
data/docbook-to-man-2.0.0/Instant/translate.c:244:20:  [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).
	    	    	    j = strlen(ContData(e,i));
data/docbook-to-man-2.0.0/Instant/translate.c:923: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).
    if ( strn[strlen(strn)-1] != 't' )	{
data/docbook-to-man-2.0.0/Instant/util.c:339: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).
		    i += strlen(cp);
data/docbook-to-man-2.0.0/Instant/util.c:459:8:  [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).
	cp += strlen(cp);
data/docbook-to-man-2.0.0/Instant/util.c:814:7:  [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).
	s += strlen(s);

ANALYSIS SUMMARY:

Hits = 177
Lines analyzed = 9351 in approximately 0.35 seconds (26553 lines/second)
Physical Source Lines of Code (SLOC) = 5830
Hits@level = [0] 163 [1]  31 [2]  98 [3]   4 [4]  44 [5]   0
Hits@level+ = [0+] 340 [1+] 177 [2+] 146 [3+]  48 [4+]  44 [5+]   0
Hits/KSLOC@level+ = [0+] 58.319 [1+] 30.3602 [2+] 25.0429 [3+] 8.23328 [4+] 7.54717 [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.