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/procmeter3-3.6/module.c
Examining data/procmeter3-3.6/procmeter.c
Examining data/procmeter3-3.6/procmeter.h
Examining data/procmeter3-3.6/procmeterp.h
Examining data/procmeter3-3.6/procmeterrc.c
Examining data/procmeter3-3.6/gtk1/menus.c
Examining data/procmeter3-3.6/gtk1/resources.c
Examining data/procmeter3-3.6/gtk1/run.c
Examining data/procmeter3-3.6/gtk1/window.c
Examining data/procmeter3-3.6/gtk1/window.h
Examining data/procmeter3-3.6/gtk1/widgets/PMBar.c
Examining data/procmeter3-3.6/gtk1/widgets/PMBar.h
Examining data/procmeter3-3.6/gtk1/widgets/PMGeneric.c
Examining data/procmeter3-3.6/gtk1/widgets/PMGeneric.h
Examining data/procmeter3-3.6/gtk1/widgets/PMGraph.c
Examining data/procmeter3-3.6/gtk1/widgets/PMGraph.h
Examining data/procmeter3-3.6/gtk1/widgets/PMText.c
Examining data/procmeter3-3.6/gtk1/widgets/PMText.h
Examining data/procmeter3-3.6/gtk2/menus.c
Examining data/procmeter3-3.6/gtk2/resources.c
Examining data/procmeter3-3.6/gtk2/run.c
Examining data/procmeter3-3.6/gtk2/window.c
Examining data/procmeter3-3.6/gtk2/window.h
Examining data/procmeter3-3.6/gtk2/widgets/PMBar.c
Examining data/procmeter3-3.6/gtk2/widgets/PMBar.h
Examining data/procmeter3-3.6/gtk2/widgets/PMGeneric.c
Examining data/procmeter3-3.6/gtk2/widgets/PMGeneric.h
Examining data/procmeter3-3.6/gtk2/widgets/PMGraph.c
Examining data/procmeter3-3.6/gtk2/widgets/PMGraph.h
Examining data/procmeter3-3.6/gtk2/widgets/PMText.c
Examining data/procmeter3-3.6/gtk2/widgets/PMText.h
Examining data/procmeter3-3.6/gtk3/menus.c
Examining data/procmeter3-3.6/gtk3/resources.c
Examining data/procmeter3-3.6/gtk3/run.c
Examining data/procmeter3-3.6/gtk3/window.c
Examining data/procmeter3-3.6/gtk3/window.h
Examining data/procmeter3-3.6/gtk3/widgets/PMBar.c
Examining data/procmeter3-3.6/gtk3/widgets/PMBar.h
Examining data/procmeter3-3.6/gtk3/widgets/PMGeneric.c
Examining data/procmeter3-3.6/gtk3/widgets/PMGeneric.h
Examining data/procmeter3-3.6/gtk3/widgets/PMGraph.c
Examining data/procmeter3-3.6/gtk3/widgets/PMGraph.h
Examining data/procmeter3-3.6/gtk3/widgets/PMText.c
Examining data/procmeter3-3.6/gtk3/widgets/PMText.h
Examining data/procmeter3-3.6/xaw/bitmap.c
Examining data/procmeter3-3.6/xaw/menus.c
Examining data/procmeter3-3.6/xaw/resources.c
Examining data/procmeter3-3.6/xaw/run.c
Examining data/procmeter3-3.6/xaw/window.c
Examining data/procmeter3-3.6/xaw/window.h
Examining data/procmeter3-3.6/xaw/widgets/PMBar.c
Examining data/procmeter3-3.6/xaw/widgets/PMBar.h
Examining data/procmeter3-3.6/xaw/widgets/PMBarP.h
Examining data/procmeter3-3.6/xaw/widgets/PMGeneric.c
Examining data/procmeter3-3.6/xaw/widgets/PMGeneric.h
Examining data/procmeter3-3.6/xaw/widgets/PMGenericP.h
Examining data/procmeter3-3.6/xaw/widgets/PMGraph.c
Examining data/procmeter3-3.6/xaw/widgets/PMGraph.h
Examining data/procmeter3-3.6/xaw/widgets/PMGraphP.h
Examining data/procmeter3-3.6/xaw/widgets/PMText.c
Examining data/procmeter3-3.6/xaw/widgets/PMText.h
Examining data/procmeter3-3.6/xaw/widgets/PMTextP.h
Examining data/procmeter3-3.6/xaw/widgets/SubMenus.c
Examining data/procmeter3-3.6/xaw/widgets/SubMenus.h
Examining data/procmeter3-3.6/no-x/menus.c
Examining data/procmeter3-3.6/no-x/run.c
Examining data/procmeter3-3.6/log/window.c
Examining data/procmeter3-3.6/lcd/window.c
Examining data/procmeter3-3.6/modules/acpi.c
Examining data/procmeter3-3.6/modules/acpi.h
Examining data/procmeter3-3.6/modules/apm.c
Examining data/procmeter3-3.6/modules/battery.c
Examining data/procmeter3-3.6/modules/biff.c
Examining data/procmeter3-3.6/modules/cpuinfo.c
Examining data/procmeter3-3.6/modules/datetime.c
Examining data/procmeter3-3.6/modules/df.c
Examining data/procmeter3-3.6/modules/libsensors-temp.c
Examining data/procmeter3-3.6/modules/libsensors-volt.c
Examining data/procmeter3-3.6/modules/loadavg.c
Examining data/procmeter3-3.6/modules/logfile.c
Examining data/procmeter3-3.6/modules/meminfo.c
Examining data/procmeter3-3.6/modules/netdev.c
Examining data/procmeter3-3.6/modules/procmeter.c
Examining data/procmeter3-3.6/modules/sensors.c
Examining data/procmeter3-3.6/modules/stat-cpu.c
Examining data/procmeter3-3.6/modules/stat-disk.c
Examining data/procmeter3-3.6/modules/stat-intr.c
Examining data/procmeter3-3.6/modules/stat.c
Examining data/procmeter3-3.6/modules/template.c
Examining data/procmeter3-3.6/modules/uname.c
Examining data/procmeter3-3.6/modules/vmstat.c
Examining data/procmeter3-3.6/modules/wireless.c
Examining data/procmeter3-3.6/modules/longrun.c
Examining data/procmeter3-3.6/modules/libsensors-fan.c

FINAL RESULTS:

data/procmeter3-3.6/gtk1/menus.c:679:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(str,PROCMETER_UNITS_LEN+1,(*outputp)->output->graph_units,(*outputp)->output->graph_scale);
data/procmeter3-3.6/gtk1/menus.c:681: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(string,str+1);
data/procmeter3-3.6/gtk1/menus.c:683: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(string,str);
data/procmeter3-3.6/gtk1/run.c:126:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(displayenv,"DISPLAY=%s",displayname);
data/procmeter3-3.6/gtk1/run.c:137:11:  [4] (shell) execl:
  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.
          execl("/bin/sh","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk1/run.c:141:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk1/run.c:146:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(string,"( %s ) ; echo -n 'Press Return to exit' ; read x",run->command);
data/procmeter3-3.6/gtk1/run.c:147:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",string,NULL);
data/procmeter3-3.6/gtk1/widgets/PMBar.c:514: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk1/widgets/PMGeneric.c:514: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(pmw->label_string,label);
data/procmeter3-3.6/gtk1/widgets/PMGraph.c:600: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk1/widgets/PMText.c:366: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(pmw->text_string,text);
data/procmeter3-3.6/gtk1/window.c:313:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/gtk1/window.c:346:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/gtk2/menus.c:681:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(str,PROCMETER_UNITS_LEN+1,(*outputp)->output->graph_units,(*outputp)->output->graph_scale);
data/procmeter3-3.6/gtk2/menus.c:683: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(string,str+1);
data/procmeter3-3.6/gtk2/menus.c:685: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(string,str);
data/procmeter3-3.6/gtk2/run.c:126:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(displayenv,"DISPLAY=%s",displayname);
data/procmeter3-3.6/gtk2/run.c:137:11:  [4] (shell) execl:
  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.
          execl("/bin/sh","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk2/run.c:141:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk2/run.c:146:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(string,"( %s ) ; echo -n 'Press Return to exit' ; read x",run->command);
data/procmeter3-3.6/gtk2/run.c:147:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",string,NULL);
data/procmeter3-3.6/gtk2/widgets/PMBar.c:521: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk2/widgets/PMGeneric.c:524: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(pmw->label_string,label);
data/procmeter3-3.6/gtk2/widgets/PMGraph.c:611: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk2/widgets/PMText.c:370: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(pmw->text_string,text);
data/procmeter3-3.6/gtk2/window.c:317:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/gtk2/window.c:350:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/gtk3/menus.c:679:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(str,PROCMETER_UNITS_LEN+1,(*outputp)->output->graph_units,(*outputp)->output->graph_scale);
data/procmeter3-3.6/gtk3/menus.c:681: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(string,str+1);
data/procmeter3-3.6/gtk3/menus.c:683: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(string,str);
data/procmeter3-3.6/gtk3/run.c:124:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(displayenv,"DISPLAY=%s",displayname);
data/procmeter3-3.6/gtk3/run.c:135:11:  [4] (shell) execl:
  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.
          execl("/bin/sh","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk3/run.c:139:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/gtk3/run.c:144:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(string,"( %s ) ; echo -n 'Press Return to exit' ; read x",run->command);
data/procmeter3-3.6/gtk3/run.c:145:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",string,NULL);
data/procmeter3-3.6/gtk3/widgets/PMBar.c:559: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk3/widgets/PMGeneric.c:527: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(pmw->label_string,label);
data/procmeter3-3.6/gtk3/widgets/PMGraph.c:666: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(pmw->grid_units,units);
data/procmeter3-3.6/gtk3/widgets/PMText.c:460: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(pmw->text_string,text);
data/procmeter3-3.6/gtk3/window.c:312:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/gtk3/window.c:356:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/lcd/window.c:141: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(LCD_priority,string);
data/procmeter3-3.6/lcd/window.c:656:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
 len=vsprintf(buffer,format,ap);
data/procmeter3-3.6/module.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(lib,library);
data/procmeter3-3.6/module.c:81: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(libp,ent->d_name);
data/procmeter3-3.6/module.c:121:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(libp,l);
data/procmeter3-3.6/module.c:177: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(new->filename,filename);
data/procmeter3-3.6/modules/acpi.c:202:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(pathname,PROC_ACPI "/%s",itemname);
data/procmeter3-3.6/modules/acpi.c:224:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(infoarray[i], PROC_ACPI "/%s/%s/%s", itemname, devices[i],
data/procmeter3-3.6/modules/acpi.c:226:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(statusarray[i], PROC_ACPI "/%s/%s/%s", itemname, devices[i],
data/procmeter3-3.6/modules/acpi.c:651:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		 sprintf(batt_outputs[index].name, _batt_outputs[j].name, i + 1);
data/procmeter3-3.6/modules/acpi.c:653:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		 sprintf(batt_outputs[index].description,_batt_outputs[j].description,i + 1);
data/procmeter3-3.6/modules/acpi.c:663:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		 sprintf(thermal_outputs[index].name, _thermal_outputs[j].name, i + 1);
data/procmeter3-3.6/modules/acpi.c:665:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		 sprintf(thermal_outputs[index].description,_thermal_outputs[j].description,i + 1);
data/procmeter3-3.6/modules/acpi.c:668:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			 sprintf(thermal_outputs[index].graph_units,"%%d%s", use_celcius ? "C" : "F");
data/procmeter3-3.6/modules/acpi.c:739:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(batt_outputs[index + 2].text_value, "%s", status);
data/procmeter3-3.6/modules/acpi.c:818:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(thermal_outputs[index + 0].text_value," %.2f %s", temp, use_celcius ? "C" : "F");
data/procmeter3-3.6/modules/acpi.c:824:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(thermal_outputs[index + 1].text_value, "%s", state);
data/procmeter3-3.6/modules/apm.c:205:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(output->text_value,"%ld %s",remain,remainunits);
data/procmeter3-3.6/modules/battery.c:231: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).
        strcpy(r + (e-basedir) + 1, s);
data/procmeter3-3.6/modules/battery.c:284:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(out->output.name, PROCMETER_NAME_LEN, name, bat->name);
data/procmeter3-3.6/modules/biff.c:129:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(location,"/var/spool/mail/%s",pw->pw_name);
data/procmeter3-3.6/modules/biff.c:134:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(location,"/var/mail/%s",pw->pw_name);
data/procmeter3-3.6/modules/biff.c:138:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(location,"/var/spool/mail/%s",pw->pw_name);
data/procmeter3-3.6/modules/biff.c:147:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
 sprintf(module.description,str,filename);
data/procmeter3-3.6/modules/cpuinfo.c:149:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
       snprintf(outputs[i]->name,PROCMETER_NAME_LEN+1,_smp_output.name,i);
data/procmeter3-3.6/modules/cpuinfo.c:151:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(outputs[i]->description,_smp_output.description,i);
data/procmeter3-3.6/modules/df.c:216:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(outputs[j]->name,PROCMETER_NAME_LEN+1,_outputs[i].name,mnt);
data/procmeter3-3.6/modules/df.c:218:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(outputs[j]->description,_outputs[i].description,dev,mnt);
data/procmeter3-3.6/modules/df.c:225: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(disk[ndisks],mnt);
data/procmeter3-3.6/modules/libsensors-fan.c:178:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(description, template_output.description, name, label);
data/procmeter3-3.6/modules/logfile.c:190:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(outputs[j]->name, PROCMETER_NAME_LEN+1, _outputs[i].name, lastslash+1);
data/procmeter3-3.6/modules/logfile.c:192:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(outputs[j]->description,_outputs[i].description,fil);
data/procmeter3-3.6/modules/logfile.c:204: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(file[nfiles],fil);
data/procmeter3-3.6/modules/longrun.c:163: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(outputs[ndevices]->description,_outputs[i].description);
data/procmeter3-3.6/modules/netdev.c:195:66:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
                   (proc_net_dev_format==proc_net_dev_format1 && sscanf(&line[i],proc_net_dev_format,&rxp,&txp)==2) ||
data/procmeter3-3.6/modules/netdev.c:196:66:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
                   (proc_net_dev_format!=proc_net_dev_format1 && sscanf(&line[i],proc_net_dev_format,&rxb,&rxp,&txb,&txp)==4))
data/procmeter3-3.6/modules/netdev.c:280:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(outputs[ndevices]->name, PROCMETER_NAME_LEN+1, _outputs[i].name, dev);
data/procmeter3-3.6/modules/netdev.c:282:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(outputs[ndevices]->description,_outputs[i].description,dev);
data/procmeter3-3.6/modules/netdev.c:288: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(device[ndevices],dev);
data/procmeter3-3.6/modules/netdev.c:346:11:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
          sscanf(&line[i],proc_net_dev_format,&rxp,&txp);
data/procmeter3-3.6/modules/netdev.c:348:11:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
          sscanf(&line[i],proc_net_dev_format,&rxb,&rxp,&txb,&txp);
data/procmeter3-3.6/modules/sensors.c:163:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(dirname,"%s/%s/%s",dirstart,ent1->d_name,"device");
data/procmeter3-3.6/modules/sensors.c:167:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(dirname,"%s/%s",dirstart,ent1->d_name);
data/procmeter3-3.6/modules/sensors.c:213:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(filename,"%s/%s",dirname,ent2->d_name);
data/procmeter3-3.6/modules/sensors.c:278:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(temp_filename[ntemps],filename);
data/procmeter3-3.6/modules/sensors.c:282:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
          snprintf(temp_outputs[ntemps].name, PROCMETER_NAME_LEN+1, _temp_output.name, ntemps);
data/procmeter3-3.6/modules/sensors.c:284:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(temp_outputs[ntemps].description,_temp_output.description,ntemps,filename);
data/procmeter3-3.6/modules/sensors.c:322:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(fan_filename[nfans],filename);
data/procmeter3-3.6/modules/sensors.c:326:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
          snprintf(fan_outputs[nfans].name, PROCMETER_NAME_LEN, _fan_output.name, nfans);
data/procmeter3-3.6/modules/sensors.c:328:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(fan_outputs[nfans].description,_fan_output.description,nfans,filename);
data/procmeter3-3.6/modules/stat-cpu.c:351:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                   snprintf(smp_outputs[i+ncpu*n_outputs].name, PROCMETER_NAME_LEN+1, _smp_outputs[i].name, ncpu);
data/procmeter3-3.6/modules/stat-cpu.c:353:20:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                   sprintf(smp_outputs[i+ncpu*n_outputs].description,_smp_outputs[i].description,ncpu);
data/procmeter3-3.6/modules/stat-disk.c:267:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                      snprintf(disk_outputs[i+j*N_OUTPUTS].name, PROCMETER_NAME_LEN+1, _disk_outputs_pre_240[i].name, j);
data/procmeter3-3.6/modules/stat-disk.c:269:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                      sprintf(disk_outputs[i+j*N_OUTPUTS].description,_disk_outputs_pre_240[i].description,j);
data/procmeter3-3.6/modules/stat-disk.c:340:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                      sprintf(devname,"/dev/mapper/%s",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:351:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                      sprintf(devname,"/dev/discs/%s/disc",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:362:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                      sprintf(devname,"/dev/%s",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:424:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                  sprintf(devname,"/dev/mapper/%s",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:435:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                  sprintf(devname,"/dev/discs/%s/disc",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:446:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(devname,"/dev/%s",ent->d_name);
data/procmeter3-3.6/modules/stat-disk.c:588:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(disk_outputs[i+ndisks*N_OUTPUTS].name, PROCMETER_NAME_LEN, _disk_outputs[i].name, diskname);
data/procmeter3-3.6/modules/stat-disk.c:590:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(disk_outputs[i+ndisks*N_OUTPUTS].description,_disk_outputs[i].description,devname);
data/procmeter3-3.6/modules/stat-intr.c:163:31:  [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).
                         type=strcpy(malloc(strlen(line2+p2)+1),line2+p2);
data/procmeter3-3.6/modules/stat-intr.c:177:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(intr_outputs[nintr].name,_intr_output.name,nintr);
data/procmeter3-3.6/modules/stat-intr.c:179:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(intr_outputs[nintr].description,_intr_output.description,nintr,type?type:"unknown");
data/procmeter3-3.6/modules/template.c:119: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(output->text_value,result1);
data/procmeter3-3.6/modules/template.c:121: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(output->text_value,result2);
data/procmeter3-3.6/modules/uname.c:111:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
 sprintf(kernelversion_output.description,format,line);
data/procmeter3-3.6/modules/wireless.c:146:20:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
                if(sscanf(&line[i],proc_net_wireless_format,&link,&level,&noise)==3)
data/procmeter3-3.6/modules/wireless.c:217:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(outputs[ndevices]->name,_outputs[i].name,dev);
data/procmeter3-3.6/modules/wireless.c:219:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(outputs[ndevices]->description,_outputs[i].description,dev);
data/procmeter3-3.6/modules/wireless.c:221: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(device[ndevices],dev);
data/procmeter3-3.6/modules/wireless.c:273:8:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
       sscanf(&line[i],proc_net_wireless_format,&link,&level,&noise);
data/procmeter3-3.6/procmeter.c:396: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(string,*start);
data/procmeter3-3.6/procmeterrc.c:83: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(rcpath,home);
data/procmeter3-3.6/procmeterrc.c:124:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy((*next_section)->name=(char*)malloc(strlen(l)+1),l);
data/procmeter3-3.6/procmeterrc.c:142: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).
          strcat(prev_parameter->value,l);
data/procmeter3-3.6/procmeterrc.c:159:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy((*next_parameter)->name=(char*)malloc(strlen(l)+1),l);
data/procmeter3-3.6/procmeterrc.c:170: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).
             strcpy((*next_parameter)->value=(char*)malloc(strlen(equal)+1),equal);
data/procmeter3-3.6/procmeterrc.c:225:26:  [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(this_parameter->value=(char*)realloc((void*)this_parameter->value,strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:234:23:  [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(new_parameter->name=(char*)malloc(strlen(parameter)+1),parameter);
data/procmeter3-3.6/procmeterrc.c:236:26:  [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(new_parameter->value=(char*)malloc(strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:253:17:  [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(new_section->name=(char*)malloc(strlen(section)+1),section);
data/procmeter3-3.6/procmeterrc.c:256:17:  [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(new_section->first->name=(char*)malloc(strlen(parameter)+1),parameter);
data/procmeter3-3.6/procmeterrc.c:258:20:  [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(new_section->first->value=(char*)malloc(strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:328: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(section,module);
data/procmeter3-3.6/procmeterrc.c:330:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
 strcat(section,output);
data/procmeter3-3.6/xaw/menus.c:415:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
 sprintf(menuname,"%sMenu",module->module->name);
data/procmeter3-3.6/xaw/menus.c:525:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(string,"<Btn2Down>: OutputMenuStart(%s)",module->module->name);
data/procmeter3-3.6/xaw/menus.c:528:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(string,"<Btn1Down>: FunctionsMenuStart(%s)",module->module->name);
data/procmeter3-3.6/xaw/menus.c:807:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(str,PROCMETER_UNITS_LEN+1,(*outputp)->output->graph_units,(*outputp)->output->graph_scale);
data/procmeter3-3.6/xaw/menus.c:809: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(string,str+1);
data/procmeter3-3.6/xaw/menus.c:811: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(string,str);
data/procmeter3-3.6/xaw/run.c:127:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(displayenv,"DISPLAY=%s",displayname);
data/procmeter3-3.6/xaw/run.c:138:11:  [4] (shell) execl:
  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.
          execl("/bin/sh","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/xaw/run.c:142:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",run->command,NULL);
data/procmeter3-3.6/xaw/run.c:147:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(string,"( %s ) ; echo -n 'Press Return to exit' ; read x",run->command);
data/procmeter3-3.6/xaw/run.c:148:11:  [4] (shell) execlp:
  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.
          execlp("xterm","xterm","-title","ProcMeter3","-e","/bin/sh","-c",string,NULL);
data/procmeter3-3.6/xaw/window.c:350:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/xaw/window.c:397:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
       sprintf(str,output->output->graph_units,output->output->graph_scale);
data/procmeter3-3.6/procmeterrc.c:79:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    else if((home=getenv("HOME")))
data/procmeter3-3.6/gtk1/menus.c:602: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 string[24];
data/procmeter3-3.6/gtk1/menus.c:634:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(string," ...'");
data/procmeter3-3.6/gtk1/menus.c:671: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(string,"%d s",(*outputp)->output->interval);
data/procmeter3-3.6/gtk1/menus.c:673:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(string,"Never");
data/procmeter3-3.6/gtk1/menus.c:678: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 str[PROCMETER_UNITS_LEN+1];
data/procmeter3-3.6/gtk1/window.c:267: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 *string,str[PROCMETER_NAME_LEN+1];
data/procmeter3-3.6/gtk2/menus.c:608: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 string[24];
data/procmeter3-3.6/gtk2/menus.c:640:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(string," ...'");
data/procmeter3-3.6/gtk2/menus.c:673: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(string,"%d s",(*outputp)->output->interval);
data/procmeter3-3.6/gtk2/menus.c:675:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(string,"Never");
data/procmeter3-3.6/gtk2/menus.c:680: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 str[PROCMETER_UNITS_LEN+1];
data/procmeter3-3.6/gtk2/window.c:271: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 *string,str[PROCMETER_NAME_LEN+1];
data/procmeter3-3.6/gtk3/menus.c:606: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 string[24];
data/procmeter3-3.6/gtk3/menus.c:638:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(string," ...'");
data/procmeter3-3.6/gtk3/menus.c:671: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(string,"%d s",(*outputp)->output->interval);
data/procmeter3-3.6/gtk3/menus.c:673:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(string,"Never");
data/procmeter3-3.6/gtk3/menus.c:678: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 str[PROCMETER_UNITS_LEN+1];
data/procmeter3-3.6/gtk3/window.c:266: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 *string,str[PROCMETER_NAME_LEN+1];
data/procmeter3-3.6/lcd/window.c:108: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 reply[128],*p;
data/procmeter3-3.6/lcd/window.c:125: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).
    port=atoi(string);
data/procmeter3-3.6/lcd/window.c:134: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).
    LCD_duration=atoi(string);
data/procmeter3-3.6/lcd/window.c:163:2:  [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((char*)&sockaddr.sin_addr,(char*)hp->h_addr,sizeof(sockaddr.sin_addr));
data/procmeter3-3.6/lcd/window.c:197: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).
 LCD_screen_width=atoi(p+4);
data/procmeter3-3.6/lcd/window.c:204:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
 LCD_screen_height=atoi(p+4);
data/procmeter3-3.6/lcd/window.c:211:17:  [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).
 LCD_char_width=atoi(p+8);
data/procmeter3-3.6/lcd/window.c:218: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).
 LCD_char_height=atoi(p+8);
data/procmeter3-3.6/lcd/window.c:341:21:  [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).
    graph->grid_min=atoi(string);
data/procmeter3-3.6/lcd/window.c:429: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).
    bar->grid_min=atoi(string);
data/procmeter3-3.6/lcd/window.c:509: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 maxstr[5];
data/procmeter3-3.6/lcd/window.c:521: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(maxstr,"%3d",maxval);
data/procmeter3-3.6/lcd/window.c:523: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(maxstr,"%3dk",maxval/1000);
data/procmeter3-3.6/lcd/window.c:525: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(maxstr,"%3dM",maxval/1000000);
data/procmeter3-3.6/lcd/window.c:603: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 maxstr[5];
data/procmeter3-3.6/lcd/window.c:609: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(maxstr,"%3d",maxval);
data/procmeter3-3.6/lcd/window.c:611: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(maxstr,"%3dk",maxval/1000);
data/procmeter3-3.6/lcd/window.c:613: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(maxstr,"%3dM",maxval/1000000);
data/procmeter3-3.6/lcd/window.c:649:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char buffer[256];
data/procmeter3-3.6/module.c:43: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 lib[PATH_MAX+1],*libp;
data/procmeter3-3.6/module.c:295:31:  [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).
             output->interval=atoi(string);
data/procmeter3-3.6/module.c:299: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).
             output->graph_scale=atoi(string);
data/procmeter3-3.6/module.c:314:21:  [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 newstr[PROCMETER_NAME_LEN+1];
data/procmeter3-3.6/modules/acpi.c:42: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 acpi_batt_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char acpi_batt_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:49: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 acpi_ac_adapter_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:50: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 acpi_ac_adapter_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:96: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 acpi_thermal_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:97: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 acpi_thermal_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.c:105:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1024];
data/procmeter3-3.6/modules/acpi.c:106:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(file, O_RDONLY);
data/procmeter3-3.6/modules/acpi.c:130:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char ret[256];
data/procmeter3-3.6/modules/acpi.c:166:8:  [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).
		dcap=atoi(s);
data/procmeter3-3.6/modules/acpi.c:174:8:  [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).
		lcap=atoi(s);
data/procmeter3-3.6/modules/acpi.c:192:17:  [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.
int find_items (char *itemname, char infoarray[ACPI_MAXITEM][128],
data/procmeter3-3.6/modules/acpi.c:192: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.
int find_items (char *itemname, char infoarray[ACPI_MAXITEM][128],
data/procmeter3-3.6/modules/acpi.c:193:19:  [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 statusarray[ACPI_MAXITEM][128]) {
data/procmeter3-3.6/modules/acpi.c:200: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 pathname[128];
data/procmeter3-3.6/modules/acpi.c:298:8:  [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).
	num = atoi(version);
data/procmeter3-3.6/modules/acpi.c:744: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(batt_outputs[index + 3].text_value,"n/a");
data/procmeter3-3.6/modules/acpi.c:748: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(batt_outputs[index + 4].text_value,"%i:%02i", (int) timefull / 60, (int) timefull % 60);
data/procmeter3-3.6/modules/acpi.c:753: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(batt_outputs[index + 3].text_value,"%i:%02i", (int) timeleft / 60, (int) timeleft % 60);
data/procmeter3-3.6/modules/acpi.c:757: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(batt_outputs[index + 4].text_value,"n/a");
data/procmeter3-3.6/modules/acpi.c:782: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(batt_outputs[index + 3].text_value,"n/a");
data/procmeter3-3.6/modules/acpi.c:786: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(batt_outputs[index + 4].text_value,"n/a");
data/procmeter3-3.6/modules/acpi.c:791: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(batt_outputs[index + 0].text_value,"%.0f%%", percent);
data/procmeter3-3.6/modules/acpi.c:795: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(batt_outputs[index + 1].text_value,"%i mA", rate);
data/procmeter3-3.6/modules/acpi.c:822: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(thermal_outputs[index + 1].text_value, "unknown");
data/procmeter3-3.6/modules/acpi.h:30: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 acpi_batt_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.h:32: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 acpi_batt_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.h:37: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 acpi_ac_adapter_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.h:38: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 acpi_ac_adapter_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.h:42: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 acpi_thermal_info[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/acpi.h:43: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 acpi_thermal_status[ACPI_MAXITEM][128];
data/procmeter3-3.6/modules/apm.c:107: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).
 f=fopen("/proc/apm","r");
data/procmeter3-3.6/modules/apm.c:121: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.
       char remainunits[8];
data/procmeter3-3.6/modules/apm.c:158:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char remainunits[8];
data/procmeter3-3.6/modules/apm.c:166: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("/proc/apm","r");
data/procmeter3-3.6/modules/apm.c:181: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(output->text_value,"high");
data/procmeter3-3.6/modules/apm.c:183: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(output->text_value,"low");
data/procmeter3-3.6/modules/apm.c:185: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(output->text_value,"critical");
data/procmeter3-3.6/modules/apm.c:187: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(output->text_value,"unknown");
data/procmeter3-3.6/modules/apm.c:189:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(output->text_value," (chg)");
data/procmeter3-3.6/modules/apm.c:195:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(output->text_value,"unknown");
data/procmeter3-3.6/modules/apm.c:197: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(output->text_value,"%3ld%%",life);
data/procmeter3-3.6/modules/apm.c:203:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(output->text_value,"unknown");
data/procmeter3-3.6/modules/battery.c:150:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r, dir, dl);
data/procmeter3-3.6/modules/battery.c:152:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r + dl + 1, name, nl+1);
data/procmeter3-3.6/modules/battery.c:229:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r, basedir, e-basedir);
data/procmeter3-3.6/modules/battery.c:269:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char value[9];
data/procmeter3-3.6/modules/battery.c:289:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(out->output.text_value, "not available");
data/procmeter3-3.6/modules/battery.c:304:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(f->output.text_value, "??%");
data/procmeter3-3.6/modules/battery.c:305:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(f->output.graph_units, "(%d%)");
data/procmeter3-3.6/modules/battery.c:311:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(f->output.text_value, "??:??:??");
data/procmeter3-3.6/modules/battery.c:333:33:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                                strcpy(f->output.graph_units, "(%dmAh)");
data/procmeter3-3.6/modules/battery.c:338:33:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                                strcpy(f->output.graph_units, "(%dmA)");
data/procmeter3-3.6/modules/battery.c:344:33:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                                strcpy(f->output.graph_units, "(%dV)");
data/procmeter3-3.6/modules/battery.c:368:17:  [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 value[9];
data/procmeter3-3.6/modules/battery.c:377:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                fd = open(dirname, O_RDONLY|O_DIRECTORY);
data/procmeter3-3.6/modules/battery.c:473:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char value[9];
data/procmeter3-3.6/modules/battery.c:482:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                bat->fd = open(bat->directory, O_RDONLY|O_DIRECTORY);
data/procmeter3-3.6/modules/battery.c:505:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(f->output.text_value, "not available");
data/procmeter3-3.6/modules/battery.c:517:17:  [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[PROCMETER_TEXT_LEN + 3];
data/procmeter3-3.6/modules/battery.c:539:33:  [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(f->output.text_value, text, PROCMETER_TEXT_LEN);
data/procmeter3-3.6/modules/battery.c:577:41:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                                        strcpy(f->output.text_value, "no");
data/procmeter3-3.6/modules/battery.c:579:41:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                                        strcpy(f->output.text_value, "yes");
data/procmeter3-3.6/modules/battery.c:586:33:  [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(f->output.text_value, text, PROCMETER_TEXT_LEN);
data/procmeter3-3.6/modules/battery.c:599:25:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                        strcpy(f->output.text_value, "not available");
data/procmeter3-3.6/modules/battery.c:616:25:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                        strcpy(f->output.text_value, "not available");
data/procmeter3-3.6/modules/battery.c:623:25:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                        strcpy(f->output.text_value, "never");
data/procmeter3-3.6/modules/biff.c:123: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 location[40];
data/procmeter3-3.6/modules/biff.c:184:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          FILE *f=fopen(filename,"r");
data/procmeter3-3.6/modules/biff.c:212: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(output->text_value,"%d emails",count);
data/procmeter3-3.6/modules/biff.c:218: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(output->text_value,"%d KB",size/1024);
data/procmeter3-3.6/modules/cpuinfo.c:106: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).
 f=fopen("/proc/cpuinfo","r");
data/procmeter3-3.6/modules/cpuinfo.c:184: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("/proc/cpuinfo","r");
data/procmeter3-3.6/modules/cpuinfo.c:214: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(output->text_value,"%.1f MHz",value);
data/procmeter3-3.6/modules/datetime.c:167: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).
 f=fopen("/proc/uptime","r");
data/procmeter3-3.6/modules/datetime.c:207: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("/proc/uptime","r");
data/procmeter3-3.6/modules/datetime.c:220: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(output->text_value,"%dD %2dH %2dM",days,hours,mins);
data/procmeter3-3.6/modules/df.c:110: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).
 f=fopen("/proc/mounts","r");
data/procmeter3-3.6/modules/df.c:120: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.
          char device[65],mount[65];
data/procmeter3-3.6/modules/df.c:133: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).
 f=fopen("/etc/fstab","r");
data/procmeter3-3.6/modules/df.c:143: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.
          char device[65],mount[65];
data/procmeter3-3.6/modules/df.c:257: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("/proc/mounts","r");
data/procmeter3-3.6/modules/df.c:267:14:  [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 device[65],mount[65];
data/procmeter3-3.6/modules/df.c:291:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy(output->text_value,"not found");
data/procmeter3-3.6/modules/df.c:296:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy(output->text_value,"statfs error");
data/procmeter3-3.6/modules/df.c:303:14:  [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(output->text_value,"%.1f MB",avail/1024.0);
data/procmeter3-3.6/modules/df.c:310:14:  [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(output->text_value,"%.1f %%",frac);
data/procmeter3-3.6/modules/libsensors-fan.c:125: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).
	    input=fopen(options, "r");
data/procmeter3-3.6/modules/libsensors-fan.c:141:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/procmeter3-3.6/modules/libsensors-fan.c:145:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(name, "unknown");
data/procmeter3-3.6/modules/libsensors-fan.c:232: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(output->text_value, "%.0lf RPM", value);
data/procmeter3-3.6/modules/libsensors-fan.c:234: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(output->text_value, "%.1lf C", value);
data/procmeter3-3.6/modules/libsensors-fan.c:236: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(output->text_value, "%.3lf V", value);
data/procmeter3-3.6/modules/loadavg.c:105: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).
 f=fopen("/proc/loadavg","r");
data/procmeter3-3.6/modules/loadavg.c:168: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("/proc/loadavg","r");
data/procmeter3-3.6/modules/loadavg.c:192: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(output->text_value,"%.2f",l);
data/procmeter3-3.6/modules/loadavg.c:198: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(output->text_value,"%ld",n);
data/procmeter3-3.6/modules/loadavg.c:204: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(output->text_value,"%.1f",delta_p);
data/procmeter3-3.6/modules/logfile.c:244:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                FILE *f=fopen(file[i/4],"r");
data/procmeter3-3.6/modules/logfile.c:245:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[2048];
data/procmeter3-3.6/modules/logfile.c:275: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.
          sprintf(output->text_value,"%.1f KB",(double)size[i/4]/1024);
data/procmeter3-3.6/modules/logfile.c:279: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.
          sprintf(output->text_value,"%.2f KB/s",(double)grow[i/4]/1024);
data/procmeter3-3.6/modules/logfile.c:283: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.
          sprintf(output->text_value,"%.0f lines",(double)line[i/4]);
data/procmeter3-3.6/modules/logfile.c:287: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.
          sprintf(output->text_value,"%.0f lines/s",(double)rate[i/4]);
data/procmeter3-3.6/modules/longrun.c:116:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
 if ((cpuid_fd = open(CPUID_DEVICE, O_RDONLY)) < 0) {
data/procmeter3-3.6/modules/longrun.c:190:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
 sprintf(output->text_value,"%i %%",percent);
data/procmeter3-3.6/modules/meminfo.c:177: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).
 f=fopen("/proc/meminfo","r");
data/procmeter3-3.6/modules/meminfo.c:311: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("/proc/meminfo","r");
data/procmeter3-3.6/modules/meminfo.c:382: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(output->text_value,"%.3f MB",(double)mem_free/1024.0);
data/procmeter3-3.6/modules/meminfo.c:388: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(output->text_value,"%.3f MB",(double)mem_used/1024.0);
data/procmeter3-3.6/modules/meminfo.c:394: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(output->text_value,"%.3f MB",(double)mem_buff/1024.0);
data/procmeter3-3.6/modules/meminfo.c:400: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(output->text_value,"%.3f MB",(double)mem_cache/1024.0);
data/procmeter3-3.6/modules/meminfo.c:406: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(output->text_value,"%.3f MB",(double)mem_avail/1024.0);
data/procmeter3-3.6/modules/meminfo.c:412: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(output->text_value,"%.3f MB",(double)swap_free/1024.0);
data/procmeter3-3.6/modules/meminfo.c:418: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(output->text_value,"%.3f MB",(double)swap_used/1024.0);
data/procmeter3-3.6/modules/netdev.c:157: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).
 f=fopen("/proc/net/dev","r");
data/procmeter3-3.6/modules/netdev.c:331: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("/proc/net/dev","r");
data/procmeter3-3.6/modules/netdev.c:401: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.
          sprintf(output->text_value,"%.1f kB/s",value);
data/procmeter3-3.6/modules/netdev.c:403: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.
          sprintf(output->text_value,"%.0f /s",value);
data/procmeter3-3.6/modules/sensors.c:152: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 dirname[64];
data/procmeter3-3.6/modules/sensors.c:206: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.
          char filename[80];
data/procmeter3-3.6/modules/sensors.c:259: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).
 f=fopen(filename,"r");
data/procmeter3-3.6/modules/sensors.c:303: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).
 f=fopen(filename,"r");
data/procmeter3-3.6/modules/sensors.c:367: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).
       f=fopen(temp_filename[i],"r");
data/procmeter3-3.6/modules/sensors.c:386: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(output->text_value,"%.1f C",temp);
data/procmeter3-3.6/modules/sensors.c:407: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).
       f=fopen(fan_filename[i],"r");
data/procmeter3-3.6/modules/sensors.c:424: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(output->text_value,"%d rpm",fan);
data/procmeter3-3.6/modules/stat-cpu.c:309: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).
 f=fopen("/proc/stat","r");
data/procmeter3-3.6/modules/stat-cpu.c:423: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("/proc/stat","r");
data/procmeter3-3.6/modules/stat-cpu.c:488: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(output->text_value,"%.0f %%",value);
data/procmeter3-3.6/modules/stat-cpu.c:512: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(output->text_value,"%.0f %%",value);
data/procmeter3-3.6/modules/stat-disk.c:218: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).
 f=fopen("/proc/diskstats","r");
data/procmeter3-3.6/modules/stat-disk.c:223: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("/proc/stat","r");
data/procmeter3-3.6/modules/stat-disk.c:293:14:  [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 devname[PATH_MAX];
data/procmeter3-3.6/modules/stat-disk.c:398: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.
       char devname[PATH_MAX];
data/procmeter3-3.6/modules/stat-disk.c:631: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).
       f=fopen("/proc/diskstats","r");
data/procmeter3-3.6/modules/stat-disk.c:704: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).
       f=fopen("/proc/stat","r");
data/procmeter3-3.6/modules/stat-disk.c:799: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(output->text_value,"%.0f /s",value);
data/procmeter3-3.6/modules/stat-intr.c:115: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).
 f=fopen("/proc/stat","r");
data/procmeter3-3.6/modules/stat-intr.c:144: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).
                f2=fopen("/proc/interrupts","r");
data/procmeter3-3.6/modules/stat-intr.c:239: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("/proc/stat","r");
data/procmeter3-3.6/modules/stat-intr.c:270: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(output->text_value,"%.0f /s",value);
data/procmeter3-3.6/modules/stat.c:285: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).
 f=fopen("/proc/stat","r");
data/procmeter3-3.6/modules/stat.c:437: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("/proc/stat","r");
data/procmeter3-3.6/modules/stat.c:564: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.
          sprintf(output->text_value,"%.0f %%",value);
data/procmeter3-3.6/modules/stat.c:574: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.
          sprintf(output->text_value,"%.0f /s",value);
data/procmeter3-3.6/modules/uname.c:91: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 *format,line[128];
data/procmeter3-3.6/modules/uname.c:95:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
 strcpy(line,"unknown");
data/procmeter3-3.6/modules/uname.c:97: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).
 f=fopen("/proc/version","r");
data/procmeter3-3.6/modules/vmstat.c:160: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).
 f=fopen("/proc/vmstat","r");
data/procmeter3-3.6/modules/vmstat.c:235: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("/proc/vmstat","r");
data/procmeter3-3.6/modules/vmstat.c:278: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(output->text_value,"%.0f /s",value);
data/procmeter3-3.6/modules/wireless.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).
 f=fopen("/proc/net/wireless","r");
data/procmeter3-3.6/modules/wireless.c:258: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("/proc/net/wireless","r");
data/procmeter3-3.6/modules/wireless.c:307: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.
          sprintf(output->text_value,"%li",current[j]);
data/procmeter3-3.6/modules/wireless.c:311: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.
          sprintf(output->text_value,"%li dBm",current[j]);
data/procmeter3-3.6/procmeter.c:368:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char string[81];
data/procmeter3-3.6/procmeter.h:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char  name[PROCMETER_NAME_LEN+1];         /*+ The name of the output. +*/
data/procmeter3-3.6/procmeter.h:60: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_value[PROCMETER_TEXT_LEN+1];   /*+ The textual value (if applicable). +*/
data/procmeter3-3.6/procmeter.h:63: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  graph_units[PROCMETER_UNITS_LEN+1]; /*+ The units on the graph as a printf string (if applicable). +*/
data/procmeter3-3.6/procmeter.h:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 char name[PROCMETER_NAME_LEN+1];          /*+ The module's name. +*/
data/procmeter3-3.6/procmeterp.h:81: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 label[PROCMETER_NAME_LEN+1];/*+ The label for the output. +*/
data/procmeter3-3.6/procmeterrc.c:84:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(rcpath,"/.procmeterrc");
data/procmeter3-3.6/procmeterrc.c:97:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *rc=fopen(rcpath,"r");
data/procmeter3-3.6/procmeterrc.c:326: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 section[sizeof(m.name)+sizeof(o.name)+2];
data/procmeter3-3.6/xaw/menus.c:386: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 menuname[32];
data/procmeter3-3.6/xaw/menus.c:523: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 string[64];
data/procmeter3-3.6/xaw/menus.c:736: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 string[24];
data/procmeter3-3.6/xaw/menus.c:768:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
       strcat(string," ...'");
data/procmeter3-3.6/xaw/menus.c:799: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(string,"%d s",(*outputp)->output->interval);
data/procmeter3-3.6/xaw/menus.c:801:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(string,"Never");
data/procmeter3-3.6/xaw/menus.c:806: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 str[PROCMETER_UNITS_LEN+1];
data/procmeter3-3.6/xaw/window.c:270: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 *string,str[PROCMETER_NAME_LEN+1];
data/procmeter3-3.6/gtk1/menus.c:631:5:  [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.
    strncpy(string,"Run '",16);
data/procmeter3-3.6/gtk1/menus.c:632:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string+5,r,8);
data/procmeter3-3.6/gtk1/menus.c:633: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(r)>8)
data/procmeter3-3.6/gtk1/menus.c:636: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.
       strcat(string,"'");
data/procmeter3-3.6/gtk1/menus.c:653: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).
                 (*modulep)->module->description,strlen((*modulep)->module->description));
data/procmeter3-3.6/gtk1/menus.c:659: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).
                 (*outputp)->output->description,strlen((*outputp)->output->description));
data/procmeter3-3.6/gtk1/menus.c:684:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(string[strlen(string)-1]==')')
data/procmeter3-3.6/gtk1/menus.c:685: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).
       string[strlen(string)-1]=0;
data/procmeter3-3.6/gtk1/run.c:64: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).
 r=string+strlen(string)-1;
data/procmeter3-3.6/gtk1/run.c:96:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(run->command,l,r-l+1);
data/procmeter3-3.6/gtk1/run.c:125: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).
       displayenv=(char*)malloc(strlen(displayname)+10);
data/procmeter3-3.6/gtk1/run.c:145: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).
          string=(char*)malloc(strlen(run->command)+64);
data/procmeter3-3.6/gtk1/widgets/PMBar.c:513: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk1/widgets/PMGeneric.c:513:34:  [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).
 pmw->label_string=(char*)malloc(strlen(label)+1);
data/procmeter3-3.6/gtk1/widgets/PMGraph.c:599: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk1/widgets/PMText.c:365: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).
 pmw->text_string=(char*)malloc(strlen(text)+1);
data/procmeter3-3.6/gtk2/menus.c:637:5:  [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.
    strncpy(string,"Run '",16);
data/procmeter3-3.6/gtk2/menus.c:638:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string+5,r,8);
data/procmeter3-3.6/gtk2/menus.c:639: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(r)>8)
data/procmeter3-3.6/gtk2/menus.c:642: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.
       strcat(string,"'");
data/procmeter3-3.6/gtk2/menus.c:657:59:  [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).
                          (*modulep)->module->description,strlen((*modulep)->module->description));
data/procmeter3-3.6/gtk2/menus.c:661:59:  [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).
                          (*modulep)->module->description,strlen((*modulep)->module->description));
data/procmeter3-3.6/gtk2/menus.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).
    if(string[strlen(string)-1]==')')
data/procmeter3-3.6/gtk2/menus.c:687: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).
       string[strlen(string)-1]=0;
data/procmeter3-3.6/gtk2/run.c:64: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).
 r=string+strlen(string)-1;
data/procmeter3-3.6/gtk2/run.c:96:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(run->command,l,r-l+1);
data/procmeter3-3.6/gtk2/run.c:125: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).
       displayenv=(char*)malloc(strlen(displayname)+10);
data/procmeter3-3.6/gtk2/run.c:145: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).
          string=(char*)malloc(strlen(run->command)+64);
data/procmeter3-3.6/gtk2/widgets/PMBar.c:520: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk2/widgets/PMGeneric.c:523:34:  [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).
 pmw->label_string=(char*)malloc(strlen(label)+1);
data/procmeter3-3.6/gtk2/widgets/PMGraph.c:610: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk2/widgets/PMText.c:369: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).
 pmw->text_string=(char*)malloc(strlen(text)+1);
data/procmeter3-3.6/gtk3/menus.c:635:5:  [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.
    strncpy(string,"Run '",16);
data/procmeter3-3.6/gtk3/menus.c:636:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string+5,r,8);
data/procmeter3-3.6/gtk3/menus.c:637: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(r)>8)
data/procmeter3-3.6/gtk3/menus.c:640: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.
       strcat(string,"'");
data/procmeter3-3.6/gtk3/menus.c:655:59:  [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).
                          (*modulep)->module->description,strlen((*modulep)->module->description));
data/procmeter3-3.6/gtk3/menus.c:659:59:  [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).
                          (*modulep)->module->description,strlen((*modulep)->module->description));
data/procmeter3-3.6/gtk3/menus.c:684:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(string[strlen(string)-1]==')')
data/procmeter3-3.6/gtk3/menus.c:685: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).
       string[strlen(string)-1]=0;
data/procmeter3-3.6/gtk3/run.c:62: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).
 r=string+strlen(string)-1;
data/procmeter3-3.6/gtk3/run.c:94:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(run->command,l,r-l+1);
data/procmeter3-3.6/gtk3/run.c:123: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).
       displayenv=(char*)malloc(strlen(displayname)+10);
data/procmeter3-3.6/gtk3/run.c:143: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).
          string=(char*)malloc(strlen(run->command)+64);
data/procmeter3-3.6/gtk3/widgets/PMBar.c:558: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk3/widgets/PMGeneric.c:526:34:  [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).
 pmw->label_string=(char*)malloc(strlen(label)+1);
data/procmeter3-3.6/gtk3/widgets/PMGraph.c:665: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).
 pmw->grid_units=(char*)malloc(strlen(units)+1);
data/procmeter3-3.6/gtk3/widgets/PMText.c:459: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).
 pmw->text_string=(char*)malloc(strlen(text)+1);
data/procmeter3-3.6/lcd/window.c:140: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).
    LCD_priority=(char*)malloc(strlen(string)+1);
data/procmeter3-3.6/lcd/window.c:186:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 replylen=read(server,reply,128);
data/procmeter3-3.6/lcd/window.c:559: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).
 int len=strlen(value);
data/procmeter3-3.6/lcd/window.c:674:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
 usleep(100);
data/procmeter3-3.6/lcd/window.c:685:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 len=read(server,buffer,255);
data/procmeter3-3.6/module.c:60: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).
 libp=lib+strlen(lib)-1;
data/procmeter3-3.6/module.c:79: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).
    if(!strcmp(ent->d_name+strlen(ent->d_name)-3,".so"))
data/procmeter3-3.6/module.c:99: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).
    libp=lib+strlen(lib)-1;
data/procmeter3-3.6/module.c:176: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).
 new->filename=(char*)malloc(strlen(filename)+1);
data/procmeter3-3.6/module.c:325:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(new->outputs[noutputs]->label,string,PROCMETER_NAME_LEN+1);
data/procmeter3-3.6/module.c:428: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 s=strlen(buf);
data/procmeter3-3.6/modules/acpi.c:108:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	end = read(fd, buf, sizeof(buf));
data/procmeter3-3.6/modules/acpi.c:120: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).
		if (sscanf(ptr + strlen(key), "%d", &ret) == 1)
data/procmeter3-3.6/modules/acpi.c:133:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(ptr + strlen(key), "%255s", ret) == 1)
data/procmeter3-3.6/modules/acpi.c:133: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).
		if (sscanf(ptr + strlen(key), "%255s", ret) == 1)
data/procmeter3-3.6/modules/acpi.c:652: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).
		 batt_outputs[index].description=(char*)malloc(strlen(_batt_outputs[j].description)+8);
data/procmeter3-3.6/modules/acpi.c:664:53:  [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).
		 thermal_outputs[index].description=(char*)malloc(strlen(_thermal_outputs[j].description)+8);
data/procmeter3-3.6/modules/apm.c:123:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
       if(sscanf(line,"%*s %*f %*x %*x %*x %lx %ld%% %ld %7s",&status,&life,&remain,remainunits)==4)
data/procmeter3-3.6/modules/apm.c:170:8:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(fscanf(f,"%*s %*f %*x %*x %*x %lx %ld%% %ld %7s",&status,&life,&remain,remainunits)!=4)
data/procmeter3-3.6/modules/battery.c:141: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).
        dl = strlen(dir);
data/procmeter3-3.6/modules/battery.c:142: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).
        nl = strlen(name);
data/procmeter3-3.6/modules/battery.c:190: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).
        e = basedir + strlen(basedir);
data/procmeter3-3.6/modules/battery.c:223:34:  [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).
        r = malloc((e-basedir) + strlen(s) + 2);
data/procmeter3-3.6/modules/battery.c:251:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        got = read(fd, buffer, buflen-1);
data/procmeter3-3.6/modules/biff.c:146: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).
 module.description=(char*)malloc(strlen(str)+strlen(filename)+1);
data/procmeter3-3.6/modules/biff.c:146: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).
 module.description=(char*)malloc(strlen(str)+strlen(filename)+1);
data/procmeter3-3.6/modules/cpuinfo.c:150:46:  [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).
       outputs[i]->description=(char*)malloc(strlen(_smp_output.description)+8);
data/procmeter3-3.6/modules/df.c:122:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
          if(sscanf(line,"%64s %64s",device,mount)==2)
data/procmeter3-3.6/modules/df.c:148:14:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
          if(sscanf(line,"%64s %64s",device,mount)==2)
data/procmeter3-3.6/modules/df.c:217:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    outputs[j]->description=(char*)malloc(strlen(dev)+strlen(mnt)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/df.c:217:55:  [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).
    outputs[j]->description=(char*)malloc(strlen(dev)+strlen(mnt)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/df.c:217:67:  [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).
    outputs[j]->description=(char*)malloc(strlen(dev)+strlen(mnt)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/df.c:224:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 disk[ndisks]=(char*)malloc(strlen(mnt)+1);
data/procmeter3-3.6/modules/df.c:269:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
             if(sscanf(line,"%64s %64s",device,mount)==2)
data/procmeter3-3.6/modules/libsensors-fan.c:177:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    char *description=malloc(strlen(template_output.description)+strlen(name)+strlen(label));
data/procmeter3-3.6/modules/libsensors-fan.c:177:67:  [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).
	    char *description=malloc(strlen(template_output.description)+strlen(name)+strlen(label));
data/procmeter3-3.6/modules/libsensors-fan.c:177:80:  [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).
	    char *description=malloc(strlen(template_output.description)+strlen(name)+strlen(label));
data/procmeter3-3.6/modules/logfile.c:191:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    outputs[j]->description=(char*)malloc(strlen(fil)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/logfile.c:191:55:  [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).
    outputs[j]->description=(char*)malloc(strlen(fil)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/logfile.c:203:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 file[nfiles]=(char*)malloc(strlen(fil)+1);
data/procmeter3-3.6/modules/longrun.c:162: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).
    outputs[ndevices]->description=(char*)malloc(strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/longrun.c:165:5:  [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(device[ndevices],"0");
data/procmeter3-3.6/modules/netdev.c:193: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).
                for(i=strlen(line);i>6 && line[i]!=':';i--); line[i++]=0;
data/procmeter3-3.6/modules/netdev.c:277:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    device[ndevices]=(char*)malloc(strlen(dev)+1);
data/procmeter3-3.6/modules/netdev.c:281: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).
    outputs[ndevices]->description=(char*)malloc(strlen(dev)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/netdev.c:281:62:  [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).
    outputs[ndevices]->description=(char*)malloc(strlen(dev)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/netdev.c:344: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).
       for(i=strlen(line);i>6 && line[i]!=':';i--); line[i++]=0;
data/procmeter3-3.6/modules/sensors.c:277: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).
          temp_filename[ntemps]=(char*)malloc(strlen(filename)+1);
data/procmeter3-3.6/modules/sensors.c:283:58:  [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).
          temp_outputs[ntemps].description=(char*)malloc(strlen(_temp_output.description)+8+strlen(filename));
data/procmeter3-3.6/modules/sensors.c:283:93:  [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).
          temp_outputs[ntemps].description=(char*)malloc(strlen(_temp_output.description)+8+strlen(filename));
data/procmeter3-3.6/modules/sensors.c:321:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fan_filename[nfans]=(char*)malloc(strlen(filename)+1);
data/procmeter3-3.6/modules/sensors.c:327:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fan_outputs[nfans].description=(char*)malloc(strlen(_fan_output.description)+8+strlen(filename));
data/procmeter3-3.6/modules/sensors.c:327:90:  [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).
          fan_outputs[nfans].description=(char*)malloc(strlen(_fan_output.description)+8+strlen(filename));
data/procmeter3-3.6/modules/stat-cpu.c:352:76:  [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).
                   smp_outputs[i+ncpu*n_outputs].description=(char*)malloc(strlen(_smp_outputs[i].description)+8);
data/procmeter3-3.6/modules/stat-disk.c:268:77:  [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).
                      disk_outputs[i+j*N_OUTPUTS].description=(char*)malloc(strlen(_disk_outputs_pre_240[i].description)+8);
data/procmeter3-3.6/modules/stat-disk.c:535: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).
 char *diskname=devname+strlen(devname);
data/procmeter3-3.6/modules/stat-disk.c:589:64:  [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).
    disk_outputs[i+ndisks*N_OUTPUTS].description=(char*)malloc(strlen(_disk_outputs[i].description)+strlen(devname));
data/procmeter3-3.6/modules/stat-disk.c:589:101:  [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).
    disk_outputs[i+ndisks*N_OUTPUTS].description=(char*)malloc(strlen(_disk_outputs[i].description)+strlen(devname));
data/procmeter3-3.6/modules/stat-intr.c:158: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).
                         line2[strlen(line2)-1]=0;
data/procmeter3-3.6/modules/stat-intr.c:163:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         type=strcpy(malloc(strlen(line2+p2)+1),line2+p2);
data/procmeter3-3.6/modules/stat-intr.c:178:63:  [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).
                intr_outputs[nintr].description=(char*)malloc(strlen(_intr_output.description)+8+strlen(type?type:"unknown"));
data/procmeter3-3.6/modules/stat-intr.c:178:98:  [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).
                intr_outputs[nintr].description=(char*)malloc(strlen(_intr_output.description)+8+strlen(type?type:"unknown"));
data/procmeter3-3.6/modules/uname.c:105: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).
       line[strlen(line)-1]=0;
data/procmeter3-3.6/modules/uname.c:110:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
 kernelversion_output.description=(char*)malloc(strlen(format)+strlen(line));
data/procmeter3-3.6/modules/uname.c:110:64:  [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).
 kernelversion_output.description=(char*)malloc(strlen(format)+strlen(line));
data/procmeter3-3.6/modules/wireless.c:145: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).
                for(i=strlen(line);i>6 && line[i]!=':';i--); line[i++]=0;
data/procmeter3-3.6/modules/wireless.c:214:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    device[ndevices]=(char*)malloc(strlen(dev)+1);
data/procmeter3-3.6/modules/wireless.c:218: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).
    outputs[ndevices]->description=(char*)malloc(strlen(dev)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/wireless.c:218:62:  [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).
    outputs[ndevices]->description=(char*)malloc(strlen(dev)+strlen(_outputs[i].description)+4);
data/procmeter3-3.6/modules/wireless.c:272: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).
       for(i=strlen(line);i>6 && line[i]!=':';i--); line[i++]=0;
data/procmeter3-3.6/procmeter.c:145:88:  [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).
       printf("\n\n%s\n%s\n\n",(*modulep)->module->name,&underline[sizeof(underline)-1-strlen((*modulep)->module->name)]);
data/procmeter3-3.6/procmeter.c:275: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).
          if(!strncmp((*modulep)->module->name,s,strlen((*modulep)->module->name)) &&
data/procmeter3-3.6/procmeter.c:276: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).
             s[strlen((*modulep)->module->name)]=='.')
data/procmeter3-3.6/procmeter.c:279:57:  [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((*outputp)->output->name,&s[strlen((*modulep)->module->name)+1],strlen((*outputp)->output->name)) &&
data/procmeter3-3.6/procmeter.c:279:93:  [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((*outputp)->output->name,&s[strlen((*modulep)->module->name)+1],strlen((*outputp)->output->name)) &&
data/procmeter3-3.6/procmeter.c:280: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).
                   (s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]=='-' ||
data/procmeter3-3.6/procmeter.c:280:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   (s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]=='-' ||
data/procmeter3-3.6/procmeter.c:281: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).
                    s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==' ' ||
data/procmeter3-3.6/procmeter.c:281:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==' ' ||
data/procmeter3-3.6/procmeter.c:282: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).
                    s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0))
data/procmeter3-3.6/procmeter.c:282:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0))
data/procmeter3-3.6/procmeter.c:284:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   if((s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==' ' ||
data/procmeter3-3.6/procmeter.c:284:59:  [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((s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==' ' ||
data/procmeter3-3.6/procmeter.c:285:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0) &&
data/procmeter3-3.6/procmeter.c:285:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0) &&
data/procmeter3-3.6/procmeter.c:288: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).
                   else if(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='g' &&
data/procmeter3-3.6/procmeter.c:288:63:  [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(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='g' &&
data/procmeter3-3.6/procmeter.c:292: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).
                   else if(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='t' &&
data/procmeter3-3.6/procmeter.c:292:63:  [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(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='t' &&
data/procmeter3-3.6/procmeter.c:296: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).
                   else if(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='b' &&
data/procmeter3-3.6/procmeter.c:296:63:  [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(s[strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='b' &&
data/procmeter3-3.6/procmeter.c:320:55:  [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((*modulep)->module->name,argv[arg],strlen((*modulep)->module->name)) &&
data/procmeter3-3.6/procmeter.c:321: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).
          argv[arg][strlen((*modulep)->module->name)]=='.')
data/procmeter3-3.6/procmeter.c:324:62:  [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((*outputp)->output->name,&argv[arg][strlen((*modulep)->module->name)+1],strlen((*outputp)->output->name)) &&
data/procmeter3-3.6/procmeter.c:324:98:  [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((*outputp)->output->name,&argv[arg][strlen((*modulep)->module->name)+1],strlen((*outputp)->output->name)) &&
data/procmeter3-3.6/procmeter.c:325: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).
                (argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]=='-' ||
data/procmeter3-3.6/procmeter.c:325:61:  [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).
                (argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]=='-' ||
data/procmeter3-3.6/procmeter.c:326: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).
                 argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0))
data/procmeter3-3.6/procmeter.c:326:61:  [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).
                 argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1]==0))
data/procmeter3-3.6/procmeter.c:328:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if(!argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1] &&
data/procmeter3-3.6/procmeter.c:328:64:  [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(!argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+1] &&
data/procmeter3-3.6/procmeter.c:331: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).
                else if(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='g' &&
data/procmeter3-3.6/procmeter.c:331:68:  [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(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='g' &&
data/procmeter3-3.6/procmeter.c:335: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).
                else if(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='t' &&
data/procmeter3-3.6/procmeter.c:335:68:  [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(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='t' &&
data/procmeter3-3.6/procmeter.c:339: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).
                else if(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='b' &&
data/procmeter3-3.6/procmeter.c:339:68:  [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(argv[arg][strlen((*modulep)->module->name)+strlen((*outputp)->output->name)+2]=='b' &&
data/procmeter3-3.6/procmeter.c:370: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).
 if(strlen(*start)>length)
data/procmeter3-3.6/procmeter.c:384:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string,*start,(p-*start));
data/procmeter3-3.6/procmeterrc.c:81:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       rcpath=(char*)malloc(strlen(home)+16);
data/procmeter3-3.6/procmeterrc.c:110:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       char *l=line,*r=line+strlen(line)-1;
data/procmeter3-3.6/procmeterrc.c:124:54:  [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).
          strcpy((*next_section)->name=(char*)malloc(strlen(l)+1),l);
data/procmeter3-3.6/procmeterrc.c:135: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).
          if(l[strlen(l)-1]=='\\')
data/procmeter3-3.6/procmeterrc.c:138: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).
             l[strlen(l)-1]=0;
data/procmeter3-3.6/procmeterrc.c:141:77:  [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).
          prev_parameter->value=(char*)realloc((void*)prev_parameter->value,strlen(l)+strlen(prev_parameter->value)+1);
data/procmeter3-3.6/procmeterrc.c:141:87:  [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).
          prev_parameter->value=(char*)realloc((void*)prev_parameter->value,strlen(l)+strlen(prev_parameter->value)+1);
data/procmeter3-3.6/procmeterrc.c:147:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
          if(equal)
data/procmeter3-3.6/procmeterrc.c:159:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strcpy((*next_parameter)->name=(char*)malloc(strlen(l)+1),l);
data/procmeter3-3.6/procmeterrc.c:163:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
          if(equal)
data/procmeter3-3.6/procmeterrc.c:165:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
             if(equal[strlen(equal)-1]=='\\')
data/procmeter3-3.6/procmeterrc.c:165: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(equal[strlen(equal)-1]=='\\')
data/procmeter3-3.6/procmeterrc.c:165:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
             if(equal[strlen(equal)-1]=='\\')
data/procmeter3-3.6/procmeterrc.c:168:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                equal[strlen(equal)-1]=0;
data/procmeter3-3.6/procmeterrc.c:168: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).
                equal[strlen(equal)-1]=0;
data/procmeter3-3.6/procmeterrc.c:168:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                equal[strlen(equal)-1]=0;
data/procmeter3-3.6/procmeterrc.c:170:60:  [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).
             strcpy((*next_parameter)->value=(char*)malloc(strlen(equal)+1),equal);
data/procmeter3-3.6/procmeterrc.c:170:67:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
             strcpy((*next_parameter)->value=(char*)malloc(strlen(equal)+1),equal);
data/procmeter3-3.6/procmeterrc.c:170:77:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
             strcpy((*next_parameter)->value=(char*)malloc(strlen(equal)+1),equal);
data/procmeter3-3.6/procmeterrc.c:192:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
       if(equal)
data/procmeter3-3.6/procmeterrc.c:225:99:  [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).
                         strcpy(this_parameter->value=(char*)realloc((void*)this_parameter->value,strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:234:64:  [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).
                      strcpy(new_parameter->name=(char*)malloc(strlen(parameter)+1),parameter);
data/procmeter3-3.6/procmeterrc.c:236:68:  [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).
                         strcpy(new_parameter->value=(char*)malloc(strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:253:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                strcpy(new_section->name=(char*)malloc(strlen(section)+1),section);
data/procmeter3-3.6/procmeterrc.c:256:63:  [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).
                strcpy(new_section->first->name=(char*)malloc(strlen(parameter)+1),parameter);
data/procmeter3-3.6/procmeterrc.c:258:67:  [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).
                   strcpy(new_section->first->value=(char*)malloc(strlen(value)+1),value);
data/procmeter3-3.6/procmeterrc.c:329:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
 strcat(section,".");
data/procmeter3-3.6/xaw/menus.c:765:5:  [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.
    strncpy(string,"Run '",16);
data/procmeter3-3.6/xaw/menus.c:766:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string+5,r,8);
data/procmeter3-3.6/xaw/menus.c:767: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(r)>8)
data/procmeter3-3.6/xaw/menus.c:770: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.
       strcat(string,"'");
data/procmeter3-3.6/xaw/menus.c:812:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(string[strlen(string)-1]==')')
data/procmeter3-3.6/xaw/menus.c:813: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).
       string[strlen(string)-1]=0;
data/procmeter3-3.6/xaw/run.c:65: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).
 r=string+strlen(string)-1;
data/procmeter3-3.6/xaw/run.c:97:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
 strncpy(run->command,l,r-l+1);
data/procmeter3-3.6/xaw/run.c:126: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).
       displayenv=(char*)malloc(strlen(displayname)+10);
data/procmeter3-3.6/xaw/run.c:146: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).
          string=(char*)malloc(strlen(run->command)+64);
data/procmeter3-3.6/xaw/widgets/PMBar.c:303:130:  [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).
 pmw->procmeter_bar.grid_units_x=pmw->core.width-XTextWidth(pmw->procmeter_generic.label_font,pmw->procmeter_bar.grid_units,(int)strlen(pmw->procmeter_bar.grid_units));
data/procmeter3-3.6/xaw/widgets/PMBar.c:343:58:  [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).
                      pmw->procmeter_bar.grid_units,(int)strlen(pmw->procmeter_bar.grid_units));
data/procmeter3-3.6/xaw/widgets/PMGeneric.c:277:139:  [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).
    pmw->procmeter_generic.label_x=(pmw->core.width-XTextWidth(pmw->procmeter_generic.label_font,pmw->procmeter_generic.label_string,(int)strlen(pmw->procmeter_generic.label_string)))/2;
data/procmeter3-3.6/xaw/widgets/PMGeneric.c:317:61:  [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).
                   pmw->procmeter_generic.label_string,(int)strlen(pmw->procmeter_generic.label_string));
data/procmeter3-3.6/xaw/widgets/PMGraph.c:343:134:  [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).
 pmw->procmeter_graph.grid_units_x=pmw->core.width-XTextWidth(pmw->procmeter_generic.label_font,pmw->procmeter_graph.grid_units,(int)strlen(pmw->procmeter_graph.grid_units));
data/procmeter3-3.6/xaw/widgets/PMGraph.c:383:60:  [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).
                      pmw->procmeter_graph.grid_units,(int)strlen(pmw->procmeter_graph.grid_units));
data/procmeter3-3.6/xaw/widgets/PMText.c:213:91:  [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).
 text_width=XTextWidth(pmw->procmeter_text.text_font,pmw->procmeter_text.text_string,(int)strlen(pmw->procmeter_text.text_string));
data/procmeter3-3.6/xaw/widgets/PMText.c:258:54:  [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).
                pmw->procmeter_text.text_string,(int)strlen(pmw->procmeter_text.text_string));
data/procmeter3-3.6/xaw/widgets/PMText.c:278:124:  [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).
 pmw->procmeter_text.text_x=(pmw->core.width-XTextWidth(pmw->procmeter_text.text_font,pmw->procmeter_text.text_string,(int)strlen(pmw->procmeter_text.text_string)))/2;

ANALYSIS SUMMARY:

Hits = 560
Lines analyzed = 27773 in approximately 0.80 seconds (34820 lines/second)
Physical Source Lines of Code (SLOC) = 16613
Hits@level = [0] 266 [1] 203 [2] 214 [3]   1 [4] 142 [5]   0
Hits@level+ = [0+] 826 [1+] 560 [2+] 357 [3+] 143 [4+] 142 [5+]   0
Hits/KSLOC@level+ = [0+] 49.7201 [1+] 33.7085 [2+] 21.4892 [3+] 8.60772 [4+] 8.54752 [5+]   0
Symlinks skipped = 4 (--allowlink overrides but see doc for security issue)
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.