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/mrtg-2.17.7/src/rateup.c
Examining data/mrtg-2.17.7/src/strftime.c
Examining data/mrtg-2.17.7/src/strftime.h
Examining data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/util.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/parse0.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/html.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/parsen.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/parse.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/mrtgmk.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/txtro.h
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c
Examining data/mrtg-2.17.7/contrib/mrtgmk/src/txte.h
Examining data/mrtg-2.17.7/contrib/distrib/distrib.c
Examining data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c
Examining data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c
Examining data/mrtg-2.17.7/contrib/mrtglog/mrtglog.h

FINAL RESULTS:

data/mrtg-2.17.7/contrib/distrib/distrib.c:295:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if ( fscanf ( score, "%s", str ) == EOF ) break;
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:98:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(s,"%s%s.log",PFAD,log);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:21:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",alias);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:24: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(stderr,err[7],alias);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:27: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(aliasn[nalias],alias);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:28: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(aliasi[nalias],replace);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:31: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(aliasn[apos],alias);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:32: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(aliasi[apos],replace);}
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:42:1:  [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,err[11],buf);    
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:57: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,err[8],al);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:59: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+j,alias);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:62:1:  [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(str,buf);	
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:10:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
if(cfgdir[0]) sprintf(tmp,"%s/%s",cfgdir,file);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:11: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).
else strcpy(tmp,file);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:14: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(stderr,err[0],tmp);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:21: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(stderr,err[1],tmp);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:22:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(xtmp,"rm -f %s",tmp);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:23: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.
    system(xtmp);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:27:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp,"%s.ndx",extractfname(file));
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:86: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(stderr,err[2]);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:88:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",host,fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:90: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(stderr,err[6],host);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:92:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp,"%s.ndx",extractfname(fcfg));
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:107:19:  [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.
    if(cfgdir[0]) fprintf(stderr,err[3],port,cfgdir,fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:108:10:  [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.
    else fprintf(stderr,err[4],port,fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:115:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp,"%s/%s",cfgdir,fcfg);}
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:118: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(tmp,fcfg);}
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:122: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,err[5],tmp);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:128: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(target,host);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:150: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(target,xtarget);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:159:1:  [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(hostsn[nhosts],host);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:160:1:  [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(hostsi[nhosts],target);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:176:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(tmp,"mv %s%s%s %s%s%s",mrtgoutpath,xtarget,xtxt[i],mrtgoutpath,host,xtxt[i]);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:177:6:  [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(tmp);}
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:181:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(tmp,"mv %s%s%s %s%s%s",mrtgoutpath,host,xtxt[i],mrtgoutpath,xtarget,xtxt[i]);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:182:6:  [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(tmp);}
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:16:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",dst,src);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:18:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmp,"cp %s %s",src,dst);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:19: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.
    system(tmp);}
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:37:1:  [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(cfgdir,buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:59:1:  [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(body,buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:67:1:  [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(base,buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:75: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(buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:83:1:  [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(title,buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:88:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s %s",dir,host,path);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:91: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(stderr,err[9],host);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:96: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(stderr,err[10],dir);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:99:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/%s.html",path,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:103:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/%s-day.gif",path,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:104:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp2,"%s-day.gif",hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:107:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/%s-week.gif",path,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:108:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp2,"%s-week.gif",hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:111:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/%s-month.gif",path,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:112:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp2,"%s-month.gif",hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:115:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/%s-year.gif",path,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:116:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp2,"%s-year.gif",hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:120:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/mrtg-l.gif",path);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:123:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/mrtg-m.gif",path);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:126:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/mrtg-r.gif",path);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:129:1:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
sprintf(tmp1,"%s/mrtg-tl.gif",path);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:157:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",fcfg,fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:168:1:  [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(mkrn[i][0],fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:169:1:  [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(mkrn[i][4],fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:176:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",fcfg,fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:187:1:  [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(mkrn[i][1],fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:188:1:  [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(mkrn[i][5],fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:195:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",fcfg,fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:204:1:  [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(mkrn[nmkr[2]++][2],fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:207:1:  [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(mkrn[i][2],fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:208:1:  [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(mkrn[i][6],fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:215:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",fcfg,fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:226:1:  [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(mkrn[i][3],fcfg);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:227:1:  [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(mkrn[i][7],fhtml);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:237:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",link);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:251:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",host);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:254: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(stderr,err[9],host);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:269:1:  [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,err[12],buf);    
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:274:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",mrtgoutpath);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:279:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",mrtgoutpath);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:17:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",link);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:26:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",host);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:30:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
if(base[0]) sprintf(url,"http://%s/%s",base,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:31: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).
else strcpy(url,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:42:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",host);
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:45: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(stderr,err[9],host);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:8:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s %s",link,host);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:13:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if(base[0]) sprintf(url,"http://%s/%s",base,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:14:14:  [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).
        else strcpy(url,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:18:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if(base[0]) sprintf(url,"http://%s/%s",base,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:19:14:  [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).
        else strcpy(url,hosti);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:25:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if(base[0]) sprintf(url,"http://%s/%s",base,link);
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:26:14:  [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).
        else strcpy(url,link);
data/mrtg-2.17.7/contrib/mrtgmk/src/html.c:10:14:  [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.
if(title[0]) fprintf(fh,title);
data/mrtg-2.17.7/contrib/mrtgmk/src/html.c:11: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.
else fprintf(fh,btxt[0]);
data/mrtg-2.17.7/contrib/mrtgmk/src/parse.c:43: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("rm -f *.ndx");
data/mrtg-2.17.7/contrib/mrtgmk/src/parse0.c:16:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%s",cmd);
data/mrtg-2.17.7/contrib/mrtgmk/src/parsen.c:41:1:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
sscanf(buf,"%d %s",&ident,cmd);
data/mrtg-2.17.7/contrib/mrtgmk/src/util.c:15:1:  [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,tmp);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:515:4:  [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 (fig->text, str);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:668: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 (pcurrententry->str,figrec.text);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:704: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).
							strcpy (pcurrententry->str,figrec.text+4);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:722: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).
							strcpy (pcurrententry->str,s);
data/mrtg-2.17.7/src/rateup.c:1017:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf (ylab, "%6.1f %s", temp, short_si_out);
data/mrtg-2.17.7/src/rateup.c:1245:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (fscanf (fi, tempform, &lasttime, &last.in[0], &last.out[0]) != 3)
data/mrtg-2.17.7/src/rateup.c:1325:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "%s.log", router);
data/mrtg-2.17.7/src/rateup.c:1331:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (buf, "%s.old", router);
data/mrtg-2.17.7/src/rateup.c:1409:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "%s.tmp_%lu", router,(unsigned long)getpid());
data/mrtg-2.17.7/src/rateup.c:1410:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf1, "%s.log", router);
data/mrtg-2.17.7/src/rateup.c:1411:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf2, "%s.old", router);
data/mrtg-2.17.7/src/rateup.c:2207:4:  [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 (kMG, argv[argi + 1]);
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:107:20:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((optchar = getopt_long (argc, argv, "tup:rs:b:d:Vh", long_options, NULL)) != EOF)
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:112:13:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		case 'r': srand(0 /* may be an option */); randomb=1;		break;
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:40:18:  [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.
 ctmp = (char *) getenv("QUERY_STRING");
data/mrtg-2.17.7/contrib/distrib/distrib.c:268: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 str[4000];
data/mrtg-2.17.7/contrib/distrib/distrib.c:279:4:  [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 ( str, "%3u%%", j ); j-= 100/(nbaxesy-1);
data/mrtg-2.17.7/contrib/distrib/distrib.c:307:18:  [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).
				dist[j][0] = atoi(ptr); tin += dist[j][0];
data/mrtg-2.17.7/contrib/distrib/distrib.c:310:18:  [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).
				dist[j][1] = atoi(ptr); tout += dist[j][1];
data/mrtg-2.17.7/contrib/distrib/distrib.c:461: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 str[20];
data/mrtg-2.17.7/contrib/distrib/distrib.c:475:4:  [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 ( str, "%3u%%", j ); j-= 100/(AXESY-1);
data/mrtg-2.17.7/contrib/distrib/distrib.c:481:4:  [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 ( str, "%3u%%", j ); j+= (100/(AXESX-1));
data/mrtg-2.17.7/contrib/distrib/distrib.c:542:15:  [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).
						xsize = atoi (optarg);
data/mrtg-2.17.7/contrib/distrib/distrib.c:547:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						rate = atoi (optarg);
data/mrtg-2.17.7/contrib/distrib/distrib.c:552:19:  [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).
						distcount = atoi (optarg);
data/mrtg-2.17.7/contrib/distrib/distrib.c:557:15:  [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).
						ysize = atoi (optarg);
data/mrtg-2.17.7/contrib/distrib/distrib.c:586:9:  [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).
		gif = fopen ( sgif, "wb" );
data/mrtg-2.17.7/contrib/distrib/distrib.c:593:12:  [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).
		config = fopen ( sconfig, "r" );
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:40: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 	greet[MAXBLKSIZE], *ind;
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:113:25:  [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 's': blksize=abs(atoi(optarg));	break;
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:114:28:  [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 'b': setbufsize=abs(atoi(optarg));	break;
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:115:22:  [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 'd': dots=abs(atoi(optarg));	break;
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:116:22:  [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 'p': port=abs(atoi(optarg));	break;
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:147: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).
	nblocks = atoi(argv[optind+1]);
data/mrtg-2.17.7/contrib/mrtg-blast/tcpblast.c:186:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(host->h_addr, &sock_in.sin_addr, host->h_length);
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:25: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 s[128], *str, *ctmp, *start, *stop, *log,
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:99:6:  [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).
fp = fopen(s,"r");
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:20: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 alias[129],*replace;
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:46: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[257],al[129];
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:6: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 tmp[257],xtmp[257],*ptmp;
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:12:6:  [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).
fcfg=fopen(tmp,"rt");
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:28:6:  [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).
fndx=fopen(tmp,"wb");
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:78: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 host[129],fcfg[257],tmp[257],target[129],xtarget[129],*port;
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:93:4:  [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).
fi=fopen(tmp,"rt");
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:96:8:  [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).
    fi=fopen(tmp,"rt");
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:120:4:  [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).
fi=fopen(tmp,"rt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:14: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 dst[257],src[257],tmp[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:20:4:  [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).
fm=fopen(dst,"a+t");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:27:4:  [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).
fh=fopen(buf,"wt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:87: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 dir[257],host[65],path[257],*hosti,tmp1[257],tmp2[257],crtdir[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:154: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 fcfg[257],fhtml[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:163:7:  [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).
    f=fopen(fhtml,"wt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:173: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 fcfg[257],fhtml[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:182:7:  [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).
    f=fopen(fhtml,"wt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:192: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 fcfg[257],fhtml[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:201:7:  [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).
    f=fopen(fhtml,"wt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:212: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 fcfg[257],fhtml[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:221:7:  [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).
    f=fopen(fhtml,"wt");
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:231: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 link[129];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnct0.c:245: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 host[129],*hosti;
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:13: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 link[129];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:25: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 host[129],*text,*hosti,url[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/fnctn.c:38: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 host[129],*hosti;
data/mrtg-2.17.7/contrib/mrtgmk/src/gif.c:6: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 link[129],host[129],*hosti,url[257];
data/mrtg-2.17.7/contrib/mrtgmk/src/parse.c:16: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[513];
data/mrtg-2.17.7/contrib/mrtgmk/src/parse.c:18:3:  [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).
f=fopen(fcfg,"rt");
data/mrtg-2.17.7/contrib/mrtgmk/src/parse0.c:13: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 cmd[129],*ebuf;
data/mrtg-2.17.7/contrib/mrtgmk/src/parsen.c:38: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 cmd[129],*ebuf;
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:7: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 cfgdir[257]="";		//path of the cfg file
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:11: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 hostsn[N_HOSTS][65];	//host name
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:12: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 hostsi[N_HOSTS][33];	//host definition as interface
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:15: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 body[257]="";		//code appended to body tag
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:16: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 base[257]="";		//base for html files
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:20: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 aliasn[N_ALIAS][33];	//name of the aliases and their contents
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:21: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 aliasi[N_ALIAS][129];	//name of the interfaces and their resolv
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:27: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 title[65];			//title of the html page
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:34: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  mkrn[N_MK][8][257];	//0=name of the cfg procesed for mkd
data/mrtg-2.17.7/contrib/mrtgmk/src/vars.h:48: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 mrtgoutpath[256];		//used be convname2ip and convip2name
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:158:9:  [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).
	logf = fopen ( pentry->str, "r" );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:438: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	text[500];
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:452: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		buf[1000], str[1000], *s;
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:573:15:  [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).
					rounds = atoi (optarg);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:597:12:  [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).
		config = fopen ( sconfig, "r" );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:603:9:  [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).
		gif = fopen ( sgif, "wb" );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:611: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).
			map = fopen ( smap, "w" );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:651: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).
					i = atoi ( figrec.text+6 );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:669:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (pcurrententry->coords,figrec.coords,figrec.npoints * (sizeof (int)) * 2);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:684:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (pcurrententry->coords,figrec.coords,figrec.npoints * (sizeof (int)) * 2);
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:725: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).
							pcurrententry->maxrate = atoi ( figrec.text+6 );
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:738: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 (pcurrententry->coords,figrec.coords,figrec.npoints * (sizeof (int)) * 2);
data/mrtg-2.17.7/src/rateup.c:110: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 bufftime[32];
data/mrtg-2.17.7/src/rateup.c:172: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 in[MAXL], out[MAXL];
data/mrtg-2.17.7/src/rateup.c:277: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 file_tmp[10240];
data/mrtg-2.17.7/src/rateup.c:289: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 ylab[30];
data/mrtg-2.17.7/src/rateup.c:301: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 currdatetimestr[256];
data/mrtg-2.17.7/src/rateup.c:594: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 (tm, localtime (&history[n].time), sizeof (struct tm));
data/mrtg-2.17.7/src/rateup.c:615:5:  [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 (graph_label[x], "%i", tm->tm_hour);
data/mrtg-2.17.7/src/rateup.c:664: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 fmtbuf[10];
data/mrtg-2.17.7/src/rateup.c:665:5:  [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 (fmtbuf, "Week %%%c", weekformat);
data/mrtg-2.17.7/src/rateup.c:1027: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 (ylab, "% 6.1f%%", (float) (temp / (sca_max_q * ytics) * 100));
data/mrtg-2.17.7/src/rateup.c:1048:25:  [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.
			 ytr (-4), (unsigned char *) graph_label[x], i_grid);
data/mrtg-2.17.7/src/rateup.c:1121: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 ((fo = fopen (file_tmp, "wb")) == NULL)
data/mrtg-2.17.7/src/rateup.c:1162: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 res[MAXL], *a1, *b1, *r1;
data/mrtg-2.17.7/src/rateup.c:1236: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 buf[256], tempform[50];
data/mrtg-2.17.7/src/rateup.c:1242: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 (tempform, "%%ld %%%ds %%%ds\n", MAXL - 1, MAXL - 1);
data/mrtg-2.17.7/src/rateup.c:1243: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 ((fi = fopen (file, "r")) != NULL)
data/mrtg-2.17.7/src/rateup.c:1320: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 buf[128];
data/mrtg-2.17.7/src/rateup.c:1390: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 buf[128], buf1[128], buf2[128];
data/mrtg-2.17.7/src/rateup.c:1557: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 ((fo = fopen (buf, "w")) != NULL)
data/mrtg-2.17.7/src/rateup.c:1791: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 buff[LENGTH_OF_BUFF + 1];
data/mrtg-2.17.7/src/rateup.c:1801: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 (file, "r")) == NULL)
data/mrtg-2.17.7/src/rateup.c:1979:13:  [2] (integer) atol:
  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).
      NOW = atol (argv[3]);
data/mrtg-2.17.7/src/rateup.c:2090:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 4]),	/* xsize maxx */
data/mrtg-2.17.7/src/rateup.c:2091:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 5]),	/* ysize maxy */
data/mrtg-2.17.7/src/rateup.c:2094:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 8]),	/* growright */
data/mrtg-2.17.7/src/rateup.c:2095:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 9]),	/* step */
data/mrtg-2.17.7/src/rateup.c:2096:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 10]),	/* bits */
data/mrtg-2.17.7/src/rateup.c:2097:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 11]),	/* ytics */
data/mrtg-2.17.7/src/rateup.c:2099:24:  [2] (integer) atol:
  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).
		 0, argv[argi + 13], atol (argv[argi + 14]));
data/mrtg-2.17.7/src/rateup.c:2105:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 4]),	/* xsize maxx */
data/mrtg-2.17.7/src/rateup.c:2106:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 5]),	/* ysize maxy */
data/mrtg-2.17.7/src/rateup.c:2109:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 8]),	/* growright */
data/mrtg-2.17.7/src/rateup.c:2110:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 9]),	/* step */
data/mrtg-2.17.7/src/rateup.c:2111:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 10]),	/* bits */
data/mrtg-2.17.7/src/rateup.c:2112:4:  [2] (integer) atol:
  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).
		 atol (argv[argi + 11]),	/* ytics */
data/mrtg-2.17.7/src/rateup.c:2114:24:  [2] (integer) atol:
  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).
		 1, argv[argi + 13], atol (argv[argi + 14]));
data/mrtg-2.17.7/src/rateup.c:2120:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      history[x].in = rand () % atoi (argv[argi + 1]);
data/mrtg-2.17.7/src/rateup.c:2121:35:  [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).
	      history[x].out = rand () % atoi (argv[argi + 2]);
data/mrtg-2.17.7/src/rateup.c:2198:10:  [2] (integer) atol:
  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).
	  NOW = atol (argv[argi + 1]);
data/mrtg-2.17.7/src/rateup.c:2202:11:  [2] (integer) atol:
  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).
	  kilo = atol (argv[argi + 1]);
data/mrtg-2.17.7/src/strftime.c:39: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 *tzname_[2] = {"CST", "CDT"};        /* Add your own defaults here */
data/mrtg-2.17.7/src/strftime.c:41: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[26];
data/mrtg-2.17.7/src/strftime.c:335: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 test[80];
data/mrtg-2.17.7/src/strftime.h:16: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 * tzname_[2];
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:44: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).
  y = strlen(ctmp) + 1;
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:47: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).
  for (i = 0; i < strlen(ctmp); i++)
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:61: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).
   snprintf (&str[strlen(str)], y-strlen(str),"%c",ch);
data/mrtg-2.17.7/contrib/mrtglog/mrtglog.c:61:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   snprintf (&str[strlen(str)], y-strlen(str),"%c",ch);
data/mrtg-2.17.7/contrib/mrtgmk/src/alias.c:60: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).
	j+=strlen(alias)-1;}
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:130: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).
    j=strlen(buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/defhost.c:139:4:  [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(buf);
data/mrtg-2.17.7/contrib/mrtgmk/src/parse0.c:24: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).
	    ebuf=buf+strlen(parse0_ftbl[i].cmd)+1;
data/mrtg-2.17.7/contrib/mrtgmk/src/util.c:7: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).
cptmp=fname+strlen(fname)-1;
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:657:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ( (pcurrententry->str = malloc ( strlen(figrec.text) + 1 )) == NULL ) {
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:699:44:  [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 ( (pcurrententry->str = malloc ( strlen(figrec.text) + 1 )) == NULL ) {
data/mrtg-2.17.7/contrib/rdlog2/rdlog2.c:717:44:  [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 ( (pcurrententry->str = malloc ( strlen(s) + 1 )) == NULL ) {
data/mrtg-2.17.7/src/rateup.c:984: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).
		       ytr ((maxy - gdFontSmall->w * strlen (shortup)) / 2),
data/mrtg-2.17.7/src/rateup.c:990: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).
		       ytr ((maxy - gdFontSmall->w * strlen (longup)) / 2),
data/mrtg-2.17.7/src/rateup.c:1046:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 (xtr (x) - (strlen (graph_label[x]) *
data/mrtg-2.17.7/src/rateup.c:1101: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).
	    XSIZE - strlen (currdatetimestr) * gdFontSmall->w - 3;
data/mrtg-2.17.7/src/rateup.c:1111: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).
	    XSIZE - strlen (currdatetimestr) * gdFontSmall->w - 3;
data/mrtg-2.17.7/src/rateup.c:1175: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).
  a1 = &a[strlen (a) - 1];
data/mrtg-2.17.7/src/rateup.c:1176: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).
  m = max (strlen (a), strlen (b));
data/mrtg-2.17.7/src/rateup.c:1176:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  m = max (strlen (a), strlen (b));
data/mrtg-2.17.7/src/rateup.c:1180: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).
  b1 = &b[strlen (b) - 1];
data/mrtg-2.17.7/src/rateup.c:1565:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy (last.in, "0");
data/mrtg-2.17.7/src/rateup.c:1566:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy (last.out, "0");
data/mrtg-2.17.7/src/rateup.c:1570:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (last.in, in, MAXL); 
data/mrtg-2.17.7/src/rateup.c:1572:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy (last.out, out,MAXL);
data/mrtg-2.17.7/src/rateup.c:1854: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).
      l = b + strlen (b);
data/mrtg-2.17.7/src/rateup.c:1966: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(router) > 120)
data/mrtg-2.17.7/src/rateup.c:2206: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).
	  kMG = calloc (strlen (argv[argi + 1]) + 1, sizeof (char));
data/mrtg-2.17.7/src/rateup.c:2236:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (j = start; ((size_t) j < strlen (qstr)) && loop; j++)
data/mrtg-2.17.7/src/rateup.c:2255: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).
			    if (strlen (qstr + j) >= 2)
data/mrtg-2.17.7/src/rateup.c:2269: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).
			    if (strlen (qstr + j) >= 2)
data/mrtg-2.17.7/src/rateup.c:2281: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).
			k = strlen (longup);
data/mrtg-2.17.7/src/rateup.c:2293: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).
		k = strlen (longup);
data/mrtg-2.17.7/src/rateup.c:2305: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).
	  longup[max (0, (signed) strlen (longup) - 1)] = 0;
data/mrtg-2.17.7/src/rateup.c:2331:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (j = start; ((size_t) j < strlen (qstr)) && loop; j++)
data/mrtg-2.17.7/src/rateup.c:2350: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).
			    if (strlen (qstr + j) >= 2)
data/mrtg-2.17.7/src/rateup.c:2364: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).
			    if (strlen (qstr + j) >= 2)
data/mrtg-2.17.7/src/rateup.c:2376: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).
			k = strlen (pngtitle);
data/mrtg-2.17.7/src/rateup.c:2388: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).
		k = strlen (pngtitle);
data/mrtg-2.17.7/src/rateup.c:2400: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).
	  pngtitle[max (0, (signed) strlen (pngtitle) - 1)] = 0;

ANALYSIS SUMMARY:

Hits = 272
Lines analyzed = 5765 in approximately 0.24 seconds (24274 lines/second)
Physical Source Lines of Code (SLOC) = 4547
Hits@level = [0] 271 [1]  40 [2] 119 [3]   3 [4] 110 [5]   0
Hits@level+ = [0+] 543 [1+] 272 [2+] 232 [3+] 113 [4+] 110 [5+]   0
Hits/KSLOC@level+ = [0+] 119.419 [1+] 59.8197 [2+] 51.0227 [3+] 24.8516 [4+] 24.1918 [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.