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/bibclean-2.11.4.1/xstdlib.h
Examining data/bibclean-2.11.4.1/yesorno.h
Examining data/bibclean-2.11.4.1/strist.c
Examining data/bibclean-2.11.4.1/strtol.c
Examining data/bibclean-2.11.4.1/pattern.h
Examining data/bibclean-2.11.4.1/xctype.h
Examining data/bibclean-2.11.4.1/toklst.h
Examining data/bibclean-2.11.4.1/xstring.h
Examining data/bibclean-2.11.4.1/keybrd.h
Examining data/bibclean-2.11.4.1/config.h
Examining data/bibclean-2.11.4.1/xlimits.h
Examining data/bibclean-2.11.4.1/xtypes.h
Examining data/bibclean-2.11.4.1/xerrno.h
Examining data/bibclean-2.11.4.1/keybrd.c
Examining data/bibclean-2.11.4.1/ch.h
Examining data/bibclean-2.11.4.1/fix.c
Examining data/bibclean-2.11.4.1/vmswild.c
Examining data/bibclean-2.11.4.1/xstat.h
Examining data/bibclean-2.11.4.1/match.c
Examining data/bibclean-2.11.4.1/vaxvms.c
Examining data/bibclean-2.11.4.1/token.h
Examining data/bibclean-2.11.4.1/delete.h
Examining data/bibclean-2.11.4.1/match.h
Examining data/bibclean-2.11.4.1/xpwd.h
Examining data/bibclean-2.11.4.1/custom.h
Examining data/bibclean-2.11.4.1/romtol.c
Examining data/bibclean-2.11.4.1/save/config.h
Examining data/bibclean-2.11.4.1/xunistd.h
Examining data/bibclean-2.11.4.1/isbn.c
Examining data/bibclean-2.11.4.1/longflds.h
Examining data/bibclean-2.11.4.1/option.c
Examining data/bibclean-2.11.4.1/bibclean.c
Examining data/bibclean-2.11.4.1/fndfil.c
Examining data/bibclean-2.11.4.1/bibclean.h
Examining data/bibclean-2.11.4.1/do.c
Examining data/bibclean-2.11.4.1/chek.c

FINAL RESULTS:

data/bibclean-2.11.4.1/romtol.c:172:12:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    while (gets(s) != (char*)NULL)
data/bibclean-2.11.4.1/strtol.c:227:12:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    while (gets(s) != (char*)NULL)
data/bibclean-2.11.4.1/bibclean.c:843:9:  [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).
		(void)strcpy(&newmsg[n],current_entry_name);
data/bibclean-2.11.4.1/bibclean.c:851:9:  [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).
		(void)strcpy(&newmsg[n],current_field);
data/bibclean-2.11.4.1/bibclean.c:859:9:  [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).
		(void)strcpy(&newmsg[n],current_key);
data/bibclean-2.11.4.1/bibclean.c:867:9:  [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).
		(void)strcpy(&newmsg[n],current_value);
data/bibclean-2.11.4.1/bibclean.c:1471:25:  [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( (pager_pipe=popen(pager,"w")) != NULL )
data/bibclean-2.11.4.1/bibclean.c:1889:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return (strcpy(p,s));
data/bibclean-2.11.4.1/chek.c:140:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)sprintf(msg, fmt,
data/bibclean-2.11.4.1/chek.c:154:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)sprintf(msg, fmt, problem, isbn_length, isbn);
data/bibclean-2.11.4.1/chek.c:175:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)sprintf(msg, fmt, XISSN(1), XISSN(2), XISSN(3), XISSN(4),
data/bibclean-2.11.4.1/chek.c:687:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void)sprintf(msg, fmt, CODEN[1], CODEN[2], CODEN[3], CODEN[4], CODEN[5],
data/bibclean-2.11.4.1/chek.c:943: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(s,workbuf);
data/bibclean-2.11.4.1/chek.c:1055: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).
    (void)strcpy(&CODEN[1], UNKNOWN_CODEN);
data/bibclean-2.11.4.1/chek.c:1254: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).
    (void)strcpy(&ISSN[1],UNKNOWN_ISSN);
data/bibclean-2.11.4.1/custom.h:94:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
extern int		access ARGS((const char *, int));
data/bibclean-2.11.4.1/do.c:434:8:  [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).
	(void)strcpy(&current_value[n_cv],s);
data/bibclean-2.11.4.1/do.c:438:8:  [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).
	(void)strcpy(current_value,s);
data/bibclean-2.11.4.1/do.c:606: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).
    (void)strcpy(current_value,get_simple_string());
data/bibclean-2.11.4.1/do.c:620:8:  [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).
	(void)strcpy(current_value,get_simple_string());
data/bibclean-2.11.4.1/do.c:759:12:  [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).
	    (void)strcpy(current_entry_name,entry_pair[n].new_name);
data/bibclean-2.11.4.1/do.c:876:12:  [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).
	    (void)strcpy(p,bibfilename);
data/bibclean-2.11.4.1/do.c:877:12:  [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).
	    (void)strcpy(strrchr(p,'.'),ext);
data/bibclean-2.11.4.1/do.c:954:9:  [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).
		(void)strcpy(current_field,field_pair[n].new_name);
data/bibclean-2.11.4.1/do.c:1602:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	(void)sprintf(msg, fmt, close_char, BYTE_VAL(close_char),
data/bibclean-2.11.4.1/do.c:1803: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).
    (void)strcpy(current_value,get_Scribe_string());
data/bibclean-2.11.4.1/do.c:2112:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return (strcpy(s,t));
data/bibclean-2.11.4.1/fix.c:114: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).
    (void)strcpy(current_value, s);
data/bibclean-2.11.4.1/fix.c:222: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).
    (void)strcpy(s,p);			/* s <- "J.K." */
data/bibclean-2.11.4.1/fix.c:228:8:  [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(s,author);		/* s <- "J.K. {Smith, Jr.}" */
data/bibclean-2.11.4.1/fix.c:232:8:  [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(s,author);		/* s <- "J.K. Smith" */
data/bibclean-2.11.4.1/fix.c:234:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return (strcpy(author,s));
data/bibclean-2.11.4.1/fix.c:267:13:  [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(s,month_pair[k].new_name);
data/bibclean-2.11.4.1/fix.c:284:8:  [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).
	(void)strcpy(current_value,&s[5]); /* discard initial empty string */
data/bibclean-2.11.4.1/fix.c:286:8:  [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).
	(void)strcpy(current_value,s);
data/bibclean-2.11.4.1/fix.c:316:12:  [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(namelist,fix_periods(fix_author(&current_value[m])));
data/bibclean-2.11.4.1/fix.c:325:12:  [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(namelist,fix_periods(fix_author(&current_value[m])));
data/bibclean-2.11.4.1/fix.c:331:11:  [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(namelist,fix_periods(fix_author(&current_value[m])));
data/bibclean-2.11.4.1/fix.c:334: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).
    (void)strcpy(current_value,namelist);
data/bibclean-2.11.4.1/fix.c:377: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).
    (void)strcpy(current_value,new_value);
data/bibclean-2.11.4.1/fix.c:516: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).
    (void)strcpy(current_value,s);
data/bibclean-2.11.4.1/fndfil.c:157:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define FILE_IS_READABLE(n) ((int)access((char*)n,R_OK) == 0)
data/bibclean-2.11.4.1/fndfil.c:259:12:  [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).
	    (void)strcpy(r,pw->pw_dir);	/* replace name by login directory */
data/bibclean-2.11.4.1/fndfil.c:263:8:  [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(tmpfname,p);	/* copy rest of filename */
data/bibclean-2.11.4.1/fndfil.c:266:8:  [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).
	(void)strcpy(tmpfname,filename);	/* copy of filename */
data/bibclean-2.11.4.1/fndfil.c:268: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).
    (void)strcpy(tmpfname,filename);	/* copy of filename */
data/bibclean-2.11.4.1/fndfil.c:381:12:  [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).
	    (void)strcpy(fullname,(const char*)he->hash_data);
data/bibclean-2.11.4.1/fndfil.c:398:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    (void)sprintf(message,BADCACHEFMT,fullname);
data/bibclean-2.11.4.1/fndfil.c:436:9:  [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).
		(void)strcpy(fullpath,p);
data/bibclean-2.11.4.1/fndfil.c:474:12:  [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).
	    (void)strcpy(fullname,logname);
data/bibclean-2.11.4.1/fndfil.c:479:13:  [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).
		    (void)strcpy(&fullname[n-1],&name[1]); /* [dir.sub]name */
data/bibclean-2.11.4.1/fndfil.c:483:13:  [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).
		    (void)strcpy(&fullname[n-1],&name[0]); /* [dir]name */
data/bibclean-2.11.4.1/fndfil.c:491:13:  [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).
		    (void)strcpy(&fullname[n],&name[1]); /* [dir.sub]name */
data/bibclean-2.11.4.1/fndfil.c:494:13:  [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).
		    (void)strcpy(&fullname[n],&name[0]); /* [dir]name */
data/bibclean-2.11.4.1/fndfil.c:500:9:  [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).
		(void)strcpy(&fullname[n],&name[0]); /* logname:name */
data/bibclean-2.11.4.1/fndfil.c:550:9:  [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).
		(void)strcpy(filename,p);
data/bibclean-2.11.4.1/isbn.c:1272:12:  [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(t,r);
data/bibclean-2.11.4.1/isbn.c:1285:11:  [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(t,start);
data/bibclean-2.11.4.1/isbn.c:1286: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).
    (void)strcpy(s,t);
data/bibclean-2.11.4.1/keybrd.c:616:5:  [4] (shell) system:
  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.
int	system(const char *s_);
data/bibclean-2.11.4.1/option.c:184:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void)sprintf(msg, "%s%.*s", MSG_PREFIX, MAX_OPTION_LENGTH,
data/bibclean-2.11.4.1/option.c:448: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(link->fieldname, next_option);
data/bibclean-2.11.4.1/vaxvms.c:224:5:  [4] (shell) system:
  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.
int	system(const char *s_);
data/bibclean-2.11.4.1/vaxvms.c:713:1:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
getlogin(VOID)
data/bibclean-2.11.4.1/vaxvms.c:722:1:  [4] (shell) system:
  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.
system(
data/bibclean-2.11.4.1/vaxvms.c:726:1:  [4] (shell) system:
  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.
system(s)
data/bibclean-2.11.4.1/vaxvms.c:843:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ftime,"%02d-%3s-19%02d %02d:%02d:%02d",
data/bibclean-2.11.4.1/vmswild.c:633:8:  [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).
	(void)strcpy(q,logname);
data/bibclean-2.11.4.1/vmswild.c:634:8:  [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(q,p+1);
data/bibclean-2.11.4.1/vmswild.c:637:6:  [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).
	q = strcpy(emalloc(strlen(filename)),filename);
data/bibclean-2.11.4.1/vmswild.c:644:8:  [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).
	(void)strcpy(p+1,p+3);
data/bibclean-2.11.4.1/vmswild.c:711: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).
    (void)strcpy(file,p);
data/bibclean-2.11.4.1/vmswild.c:728:8:  [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).
	(void)strcpy(file,&file[lencwd]);
data/bibclean-2.11.4.1/vmswild.c:732:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return( strcpy( emalloc((unsigned)fildsc.leng+1), file )  );
data/bibclean-2.11.4.1/vmswild.c:773: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).
	cp = strcpy(  emalloc( strlen(line)+1 ),  line	);
data/bibclean-2.11.4.1/bibclean.c:310:4:  [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.
	((getenv(envname) != (char *)NULL) ? getenv(envname) : default)
data/bibclean-2.11.4.1/bibclean.c:310:39:  [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.
	((getenv(envname) != (char *)NULL) ? getenv(envname) : default)
data/bibclean-2.11.4.1/bibclean.c:1190:14:  [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.
	do_initfile(getenv(SYSPATH),initfile);
data/bibclean-2.11.4.1/bibclean.c:1195:14:  [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.
	do_initfile(getenv(USERPATH),initfile);
data/bibclean-2.11.4.1/bibclean.c:1465:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *pager = getenv("PAGER");
data/bibclean-2.11.4.1/do.c:29:4:  [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.
	((getenv(envname) != (char *)NULL) ? getenv(envname) : default)
data/bibclean-2.11.4.1/do.c:29:39:  [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.
	((getenv(envname) != (char *)NULL) ? getenv(envname) : default)
data/bibclean-2.11.4.1/fndfil.c:281:26:  [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.
		for (s = (const char *)getenv(r); (s != (char*)NULL) && *s;)
data/bibclean-2.11.4.1/fndfil.c:288:26:  [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.
		for (s = (const char *)getenv(r); (s != (char*)NULL) && *s;)
data/bibclean-2.11.4.1/keybrd.c:576:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (((p = getenv("ROWS")) != (char*)NULL) ||
data/bibclean-2.11.4.1/keybrd.c:577:8:  [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.
	((p = getenv("LINES")) != (char*)NULL))
data/bibclean-2.11.4.1/vaxvms.c:640:11:  [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.
	result = getenv(ucname);
data/bibclean-2.11.4.1/vaxvms.c:643:11:  [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.
	result = getenv(ucname);
data/bibclean-2.11.4.1/vaxvms.c:647:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    result = getenv(ucname);
data/bibclean-2.11.4.1/vaxvms.c:715:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return ((char *)getenv("USER")); /* use equivalent VMS routine */
data/bibclean-2.11.4.1/vmswild.c:555: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.
    p = getenv(logname);
data/bibclean-2.11.4.1/bibclean.c:303:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define FOPEN(a,b) fopen((char*)(a),(char*)(b))
data/bibclean-2.11.4.1/bibclean.c:306:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define FOPEN(a,b) fopen((a),(b))
data/bibclean-2.11.4.1/bibclean.c:512: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	buf[MAX_BUFFER+1];		/* 1 extra slot for trailing NUL */
data/bibclean-2.11.4.1/bibclean.c:516: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		current_entry_name[MAX_TOKEN_SIZE]; /* entry name */
data/bibclean-2.11.4.1/bibclean.c:517: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		current_field[MAX_TOKEN_SIZE];	/* field name */
data/bibclean-2.11.4.1/bibclean.c:518: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		current_key[MAX_TOKEN_SIZE]; 	/* citation key */
data/bibclean-2.11.4.1/bibclean.c:519: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		current_value[MAX_TOKEN_SIZE];	/* string value */
data/bibclean-2.11.4.1/bibclean.c:592: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		shared_string[MAX_TOKEN_SIZE];
data/bibclean-2.11.4.1/bibclean.c:826: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 newmsg[MAX_TOKEN_SIZE];	/* static because we return it */
data/bibclean-2.11.4.1/bibclean.c:1109:33:  [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.
	pattern_names[k].name = (const char *)Strdup(pattern_names[k].name);
data/bibclean-2.11.4.1/bibclean.c:1503: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 number[22];			/* ceil(log10(2^64-1))+1, big enough */
data/bibclean-2.11.4.1/bibclean.c:1505:11:  [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.
    (void)sprintf(number,"%ld",n);
data/bibclean-2.11.4.1/bibclean.c:1521: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[sizeof(
data/bibclean-2.11.4.1/bibclean.c:1525:11:  [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.
    (void)sprintf(s," input byte=%ld line=%ld column=%2ld",
data/bibclean-2.11.4.1/bibclean.c:1531:11:  [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.
    (void)sprintf(s, " output byte=%ld line=%ld column=%2ld\n",
data/bibclean-2.11.4.1/bibclean.c:1698: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 octal[4 + 1];
data/bibclean-2.11.4.1/bibclean.c:1758:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		(void)sprintf(octal,"\\%03o",BYTE_VAL(*token));
data/bibclean-2.11.4.1/bibclean.c:2121: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	expbuf[MAX_TOKEN_SIZE];
data/bibclean-2.11.4.1/chek.c:94:29:  [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 void	bad_CODEN ARGS((char CODEN_[6]));
data/bibclean-2.11.4.1/chek.c:97:28:  [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 void	bad_ISSN ARGS((char ISSN_[9]));
data/bibclean-2.11.4.1/chek.c:100:36:  [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 void	incomplete_CODEN ARGS((char CODEN_[6]));
data/bibclean-2.11.4.1/chek.c:127:11:  [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.
bad_CODEN(char CODEN[7])
data/bibclean-2.11.4.1/chek.c:131: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 CODEN[7];
data/bibclean-2.11.4.1/chek.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 msg[sizeof(fmt)];
data/bibclean-2.11.4.1/chek.c:151: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 msg[100] ;
data/bibclean-2.11.4.1/chek.c:162: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.
bad_ISSN(char ISSN[9])
data/bibclean-2.11.4.1/chek.c:166: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 ISSN[9];
data/bibclean-2.11.4.1/chek.c:171: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 msg[sizeof(fmt)];
data/bibclean-2.11.4.1/chek.c:676: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.
incomplete_CODEN(char CODEN[7])
data/bibclean-2.11.4.1/chek.c:680: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 CODEN[7];
data/bibclean-2.11.4.1/chek.c:685: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 msg[sizeof(fmt)];
data/bibclean-2.11.4.1/chek.c:896: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 workbuf[MAX_TOKEN_SIZE] ;
data/bibclean-2.11.4.1/chek.c:926:15:  [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(filler,pd.token,pd.token_length);
data/bibclean-2.11.4.1/chek.c:1013: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 CODEN[1 + MAX_CODEN + 1];	/* saved CODEN for error messages */
data/bibclean-2.11.4.1/chek.c:1090: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 c, digits[20];
data/bibclean-2.11.4.1/chek.c:1215:19:  [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(dest+k,src_last,n);
data/bibclean-2.11.4.1/chek.c:1225:11:  [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(dest,src_first,n);
data/bibclean-2.11.4.1/chek.c:1234: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 ISSN[1 + MAX_ISSN + 1];	/* saved ISSN for error messages */
data/bibclean-2.11.4.1/do.c:1521: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[3+1];			/* to hold "end" */
data/bibclean-2.11.4.1/do.c:1582: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 msg[sizeof(fmt)];
data/bibclean-2.11.4.1/do.c:1764: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 msg[2];
data/bibclean-2.11.4.1/do.c:1820: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 *temp_argv[4];			/* "program" "-option" "value" NULL */
data/bibclean-2.11.4.1/do.c:1958: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 t[MAX_TOKEN_SIZE];	/* working area for braced string */
data/bibclean-2.11.4.1/do.c:2225: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 line[MAX_LINE];
data/bibclean-2.11.4.1/fix.c:27: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.
extern char	shared_string[MAX_TOKEN_SIZE];
data/bibclean-2.11.4.1/fix.c:131: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 s[MAX_TOKEN_SIZE]; /* returned to caller */
data/bibclean-2.11.4.1/fix.c:260:13:  [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.
		    (void)strcpy(s,"\" # ");
data/bibclean-2.11.4.1/fix.c:268:13:  [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.
		    (void)strcat(s," # \"");
data/bibclean-2.11.4.1/fix.c:295: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 namelist[MAX_TOKEN_SIZE];	/* working copy of current_value[] */
data/bibclean-2.11.4.1/fix.c:317:12:  [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.
	    (void)strcat(namelist," and ");
data/bibclean-2.11.4.1/fix.c:326:12:  [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.
	    (void)strcat(namelist," and ");
data/bibclean-2.11.4.1/fix.c:343: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 new_value[MAX_TOKEN_SIZE]; /* working copy of new_value[] */
data/bibclean-2.11.4.1/fndfil.c:238: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			altname[MAXPATHLEN+1]; /* result storage */
data/bibclean-2.11.4.1/fndfil.c:242: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			tmpfname[MAXPATHLEN+1];
data/bibclean-2.11.4.1/fndfil.c:262:12:  [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.
	    (void)strcat(tmpfname,"${HOME}"); /* change to ${HOME}/name */
data/bibclean-2.11.4.1/fndfil.c:363: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			fullname[MAXPATHLEN+1];
data/bibclean-2.11.4.1/fndfil.c:364: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			fullpath[MAXPATHLEN+1];
data/bibclean-2.11.4.1/fndfil.c:371: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			message[MAXPATHLEN+1+sizeof(BADCACHEFMT)];
data/bibclean-2.11.4.1/fndfil.c:576: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			pathlist[MAXPATHLEN+1];
data/bibclean-2.11.4.1/fndfil.c:577: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			name[MAXPATHLEN+1];
data/bibclean-2.11.4.1/isbn.c:95: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[MAX_BUF];
data/bibclean-2.11.4.1/isbn.c:96: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 buf2[MAX_BUF];
data/bibclean-2.11.4.1/isbn.c:1187: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 new_ISBN[MAX_ISBN];
data/bibclean-2.11.4.1/isbn.c:1304: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 begin_prefix[MAX_ISBN];
data/bibclean-2.11.4.1/isbn.c:1305: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 end_prefix[MAX_ISBN];
data/bibclean-2.11.4.1/isbn.c:1306: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 ISBN_prefix[MAX_ISBN];
data/bibclean-2.11.4.1/keybrd.c:177: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 search_string[80] = ""; /* preserved across calls */
data/bibclean-2.11.4.1/keybrd.c:579: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 = (int)atoi(p);
data/bibclean-2.11.4.1/longflds.h:3: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 fieldname[0];
data/bibclean-2.11.4.1/match.c:426: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 line[MAXLINE];
data/bibclean-2.11.4.1/option.c:116: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 msg[sizeof(MSG_PREFIX) + MAX_OPTION_LENGTH + 1];
data/bibclean-2.11.4.1/romtol.c:168: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[25];
data/bibclean-2.11.4.1/strtol.c:217: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[25];
data/bibclean-2.11.4.1/vaxvms.c:465:1:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
memcpy(
data/bibclean-2.11.4.1/vaxvms.c:471:1:  [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(t,s,n)
data/bibclean-2.11.4.1/vaxvms.c:628: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 ucname[256];
data/bibclean-2.11.4.1/vaxvms.c:689: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 buffer[256];		/* space for up to 255-char results */
data/bibclean-2.11.4.1/vaxvms.c:815: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  *path,
data/bibclean-2.11.4.1/vmswild.c:665: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 file[FNAMSIZ];		/* Buffer to hold expanded file name. */
data/bibclean-2.11.4.1/vmswild.c:767: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 **midv, line[4096], *ap, *cp, c;
data/bibclean-2.11.4.1/bibclean.c:279: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).
#define fputs(s,fp) fwrite(s,1,strlen(s),fp)
data/bibclean-2.11.4.1/bibclean.c:625: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_t n = strlen(option);	/* all chars of option[] will be examined */
data/bibclean-2.11.4.1/bibclean.c:700: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).
	buf_length = (int)strlen(&buf[k+1]);
data/bibclean-2.11.4.1/bibclean.c:829:27:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
#define ORIGINAL_MESSAGE (strncpy(newmsg,msg,MAX_TOKEN_SIZE), \
data/bibclean-2.11.4.1/bibclean.c:840:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(current_entry_name);
data/bibclean-2.11.4.1/bibclean.c:848:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(current_field);
data/bibclean-2.11.4.1/bibclean.c:856:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(current_key);
data/bibclean-2.11.4.1/bibclean.c:864:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(current_value);
data/bibclean-2.11.4.1/bibclean.c:975:61:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c =  (n_pushback > 0) ? pushback_buffer[--n_pushback] : getc(fpin);
data/bibclean-2.11.4.1/bibclean.c:1886: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).
    p = (char*)malloc(strlen(s)+1);
data/bibclean-2.11.4.1/chek.c:152: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 (isbn_length > 100-strlen(problem) - sizeof(fmt))
data/bibclean-2.11.4.1/chek.c:187: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_t n = strlen(current_value) - 1;
data/bibclean-2.11.4.1/chek.c:309:47:  [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 (strnicmp(&last_name[n+1],juniors[k],strlen(juniors[k]))
data/bibclean-2.11.4.1/chek.c:366: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_t n = strlen(current_value);
data/bibclean-2.11.4.1/chek.c:395: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_t n = strlen(current_value) - 1;
data/bibclean-2.11.4.1/chek.c:450: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_t n = strlen(current_value) - 1;
data/bibclean-2.11.4.1/chek.c:554: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_t n = strlen(current_value) - 1;
data/bibclean-2.11.4.1/chek.c:596: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).
    for (k = 1, n = strlen(current_value) - 1; k < n; ++k)
data/bibclean-2.11.4.1/chek.c:1073: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(&CODEN[1]) == (MAX_CODEN - 1))
data/bibclean-2.11.4.1/chek.c:1078: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).
    else if ((strlen(&CODEN[1]) != MAX_CODEN) || (nleft > 0))
data/bibclean-2.11.4.1/chek.c:1203: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).
        k = strlen(dest);
data/bibclean-2.11.4.1/chek.c:1268: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(&ISSN[1]) != MAX_ISSN) || (nleft > 0))
data/bibclean-2.11.4.1/do.c:430: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_t n_cv = strlen(current_value);
data/bibclean-2.11.4.1/do.c:431: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 n_s = strlen(s);
data/bibclean-2.11.4.1/do.c:873: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 ((p = (char*)malloc(strlen(bibfilename) + strlen(ext) + 1))
data/bibclean-2.11.4.1/do.c:873:47:  [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 ((p = (char*)malloc(strlen(bibfilename) + strlen(ext) + 1))
data/bibclean-2.11.4.1/do.c:960:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	    (void)strncpy(current_field,"OPT",3);
data/bibclean-2.11.4.1/do.c:1362: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).
	    n = strlen(s);
data/bibclean-2.11.4.1/do.c:2748: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).
	    check_length(strlen(s));
data/bibclean-2.11.4.1/do.c:2753: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).
	check_length(strlen(s));
data/bibclean-2.11.4.1/do.c:2760: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).
	check_length(strlen(s));
data/bibclean-2.11.4.1/do.c:2876: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).
	    (strlen(current_field) > (size_t)3) &&
data/bibclean-2.11.4.1/do.c:2877: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).
	    (strlen(current_value) > (size_t)2)) /* 2, not 0: quotes are included! */
data/bibclean-2.11.4.1/do.c:2881: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_t)(strlen(current_field)-3+1));
data/bibclean-2.11.4.1/do.c:2950: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_t n = strlen(current_value);
data/bibclean-2.11.4.1/do.c:2958:6:  [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).
	n = strlen(current_value);
data/bibclean-2.11.4.1/fix.c:223:11:  [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.
    (void)strcat(s," ");		/* s <- "J.K. " */
data/bibclean-2.11.4.1/fix.c:227:8:  [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.
	(void)strcat(s,"{");
data/bibclean-2.11.4.1/fix.c:229:8:  [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.
	(void)strcat(s,"}");
data/bibclean-2.11.4.1/fix.c:257: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).
		if ((strlen(month_pair[k].old_name) == token_length) &&
data/bibclean-2.11.4.1/fix.c:274:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void)strncpy(s,token,token_length); /* no definition, just copy */
data/bibclean-2.11.4.1/fix.c:303: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).
    n = strlen(current_value) - 1;	/* namelist = "\"...\"" */
data/bibclean-2.11.4.1/fix.c:309:11:  [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(namelist,"\"");/* supply initial quotation mark */
data/bibclean-2.11.4.1/fix.c:333:11:  [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.
    (void)strcat(namelist,"\"");	/* supply final quotation mark */
data/bibclean-2.11.4.1/fndfil.c:251:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(tmpfname,filename,(size_t)(p - filename));
data/bibclean-2.11.4.1/fndfil.c:331: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).
  int i = strlen(magic) ;
data/bibclean-2.11.4.1/fndfil.c:336: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).
  pc += strlen(SEP_PATH) ;
data/bibclean-2.11.4.1/fndfil.c:382: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).
	    k = (int)strlen(fullname);
data/bibclean-2.11.4.1/fndfil.c:385:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    (void)strncpy(&fullname[k],name,(size_t)(MAXPATHLEN-k));
data/bibclean-2.11.4.1/fndfil.c:428:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(fullpath,pathlist,sizeof(fullpath));
data/bibclean-2.11.4.1/fndfil.c:443:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(fullname,name,MAXPATHLEN);
data/bibclean-2.11.4.1/fndfil.c:451:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(fullname,p,(size_t)len); /* set directory name */
data/bibclean-2.11.4.1/fndfil.c:455:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(&fullname[k],name,(size_t)(MAXPATHLEN-k));
data/bibclean-2.11.4.1/fndfil.c:475: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).
	    n = strlen(fullname);
data/bibclean-2.11.4.1/isbn.c:1264: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).
	if ((strlen(t) + (size_t)(p-start)) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1266:8:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	(void)strncat(t,start,(size_t)(p-start));
data/bibclean-2.11.4.1/isbn.c:1270: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).
	    if ((strlen(t) + strlen(r)) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1270: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).
	    if ((strlen(t) + strlen(r)) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1277: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).
	    if ((strlen(t) + 1) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1279:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	    (void)strncat(t,p,1);
data/bibclean-2.11.4.1/isbn.c:1283: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(t) + strlen(start)) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1283: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).
    if ((strlen(t) + strlen(start)) >= maxs)
data/bibclean-2.11.4.1/isbn.c:1311:42:  [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 (strncmp(ISBN_prefix,begin_prefix,strlen(begin_prefix)) < 0)
data/bibclean-2.11.4.1/isbn.c:1315: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 (strncmp(end_prefix,ISBN_prefix,strlen(end_prefix)) < 0)
data/bibclean-2.11.4.1/keybrd.c:252: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).
    for (k = (int)(strlen("Search backward: ") + strlen(search_string));
data/bibclean-2.11.4.1/keybrd.c:252:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (k = (int)(strlen("Search backward: ") + strlen(search_string));
data/bibclean-2.11.4.1/keybrd.c:438:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return (getc(fptty));
data/bibclean-2.11.4.1/keybrd.c:688:13:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (getchar());
data/bibclean-2.11.4.1/option.c:445: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).
                  strlen(next_option) + 1);
data/bibclean-2.11.4.1/strist.c:33: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).
    length = (size_t)strlen(sub);
data/bibclean-2.11.4.1/vaxvms.c:290:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      (void)fgetc(fp);	/* force refill of buffer */
data/bibclean-2.11.4.1/vaxvms.c:343:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = fgetc(fp);
data/bibclean-2.11.4.1/vaxvms.c:575:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ngot = read(file_desc,buffer,(left > 65024 ? 65024 : left));
data/bibclean-2.11.4.1/vaxvms.c:733: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).
    t.dsc$w_length = strlen(s);
data/bibclean-2.11.4.1/vaxvms.c:857: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).
    fab1.fab$b_fns = strlen(path);
data/bibclean-2.11.4.1/vaxvms.c:873: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).
    time_desc.dsc$w_length = strlen(ftime);
data/bibclean-2.11.4.1/vmswild.c:272:5:  [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).
  { strlen(str), dsc$k_dtype_t, dsc$k_class_s, str }
data/bibclean-2.11.4.1/vmswild.c:494: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).
	itemrec.buflen	= strlen(value);
data/bibclean-2.11.4.1/vmswild.c:632: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).
	q = emalloc(strlen(p+1) + strlen(logname) + 1);
data/bibclean-2.11.4.1/vmswild.c:632: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).
	q = emalloc(strlen(p+1) + strlen(logname) + 1);
data/bibclean-2.11.4.1/vmswild.c:637: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).
	q = strcpy(emalloc(strlen(filename)),filename);
data/bibclean-2.11.4.1/vmswild.c:680:38:  [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).
	lencwd = (cwd == (char*)NULL) ? 0 : strlen(cwd);
data/bibclean-2.11.4.1/vmswild.c:686: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).
	    lencwd = strlen(cwd);
data/bibclean-2.11.4.1/vmswild.c:723: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).
    fildsc.leng = strlen(file);
data/bibclean-2.11.4.1/vmswild.c:773: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).
	cp = strcpy(  emalloc( strlen(line)+1 ),  line	);
data/bibclean-2.11.4.1/vmswild.c:867:6:  [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).
	lnm[strlen(lnm)] = ':';		/* Restore trailing colon. */

ANALYSIS SUMMARY:

Hits = 257
Lines analyzed = 14355 in approximately 0.46 seconds (31494 lines/second)
Physical Source Lines of Code (SLOC) = 10461
Hits@level = [0]  38 [1]  86 [2]  80 [3]  16 [4]  73 [5]   2
Hits@level+ = [0+] 295 [1+] 257 [2+] 171 [3+]  91 [4+]  75 [5+]   2
Hits/KSLOC@level+ = [0+] 28.2 [1+] 24.5674 [2+] 16.3464 [3+] 8.69898 [4+] 7.16949 [5+] 0.191186
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.