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/lxpanel-0.10.0/src/conf.c
Examining data/lxpanel-0.10.0/src/plugin.h
Examining data/lxpanel-0.10.0/src/conf.h
Examining data/lxpanel-0.10.0/src/gtk-compat.h
Examining data/lxpanel-0.10.0/src/panel-plugin-move.c
Examining data/lxpanel-0.10.0/src/space.h
Examining data/lxpanel-0.10.0/src/icon-grid.c
Examining data/lxpanel-0.10.0/src/private.h
Examining data/lxpanel-0.10.0/src/configurator.c
Examining data/lxpanel-0.10.0/src/lxpanelctl.h
Examining data/lxpanel-0.10.0/src/ev.c
Examining data/lxpanel-0.10.0/src/input-button.c
Examining data/lxpanel-0.10.0/src/panel.h
Examining data/lxpanel-0.10.0/src/dbg.c
Examining data/lxpanel-0.10.0/src/panel.c
Examining data/lxpanel-0.10.0/src/misc.c
Examining data/lxpanel-0.10.0/src/icon-grid-old.h
Examining data/lxpanel-0.10.0/src/main.c
Examining data/lxpanel-0.10.0/src/icon-grid-old.c
Examining data/lxpanel-0.10.0/src/menu-policy.h
Examining data/lxpanel-0.10.0/src/plugin.c
Examining data/lxpanel-0.10.0/src/menu-policy.c
Examining data/lxpanel-0.10.0/src/space.c
Examining data/lxpanel-0.10.0/src/lxpanelctl.c
Examining data/lxpanel-0.10.0/src/bg.c
Examining data/lxpanel-0.10.0/src/icon-grid.h
Examining data/lxpanel-0.10.0/src/dbg.h
Examining data/lxpanel-0.10.0/src/gtk-run.c
Examining data/lxpanel-0.10.0/src/ev.h
Examining data/lxpanel-0.10.0/src/bg.h
Examining data/lxpanel-0.10.0/src/misc.h
Examining data/lxpanel-0.10.0/plugins/netstat/passwd_gui.c
Examining data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c
Examining data/lxpanel-0.10.0/plugins/netstat/statusicon.c
Examining data/lxpanel-0.10.0/plugins/netstat/nsconfig.h
Examining data/lxpanel-0.10.0/plugins/netstat/devproc.h
Examining data/lxpanel-0.10.0/plugins/netstat/wireless.c
Examining data/lxpanel-0.10.0/plugins/netstat/lxnm_client.h
Examining data/lxpanel-0.10.0/plugins/netstat/devproc.c
Examining data/lxpanel-0.10.0/plugins/netstat/statusicon.h
Examining data/lxpanel-0.10.0/plugins/netstat/passwd_gui.h
Examining data/lxpanel-0.10.0/plugins/netstat/netstat.h
Examining data/lxpanel-0.10.0/plugins/netstat/wireless.h
Examining data/lxpanel-0.10.0/plugins/netstat/netstat.c
Examining data/lxpanel-0.10.0/plugins/batt/batt_sys.h
Examining data/lxpanel-0.10.0/plugins/batt/batt_sys.c
Examining data/lxpanel-0.10.0/plugins/batt/batt.c
Examining data/lxpanel-0.10.0/plugins/separator.c
Examining data/lxpanel-0.10.0/plugins/cpu/cpu.c
Examining data/lxpanel-0.10.0/plugins/menu.c
Examining data/lxpanel-0.10.0/plugins/pager.c
Examining data/lxpanel-0.10.0/plugins/weather/location.c
Examining data/lxpanel-0.10.0/plugins/weather/logutil.h
Examining data/lxpanel-0.10.0/plugins/weather/yahooutil.c
Examining data/lxpanel-0.10.0/plugins/weather/providers.h
Examining data/lxpanel-0.10.0/plugins/weather/logutil.c
Examining data/lxpanel-0.10.0/plugins/weather/weather.c
Examining data/lxpanel-0.10.0/plugins/weather/openweathermap.h
Examining data/lxpanel-0.10.0/plugins/weather/yahooutil.h
Examining data/lxpanel-0.10.0/plugins/weather/httputil.h
Examining data/lxpanel-0.10.0/plugins/weather/openweathermap.c
Examining data/lxpanel-0.10.0/plugins/weather/forecast.h
Examining data/lxpanel-0.10.0/plugins/weather/weatherwidget.c
Examining data/lxpanel-0.10.0/plugins/weather/weatherwidget.h
Examining data/lxpanel-0.10.0/plugins/weather/httputil.c
Examining data/lxpanel-0.10.0/plugins/weather/forecast.c
Examining data/lxpanel-0.10.0/plugins/weather/location.h
Examining data/lxpanel-0.10.0/plugins/wincmd.c
Examining data/lxpanel-0.10.0/plugins/monitors/monitors.c
Examining data/lxpanel-0.10.0/plugins/volumealsa/volumealsa.c
Examining data/lxpanel-0.10.0/plugins/dclock.c
Examining data/lxpanel-0.10.0/plugins/tray.c
Examining data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c
Examining data/lxpanel-0.10.0/plugins/dirmenu.c
Examining data/lxpanel-0.10.0/plugins/launch-button.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-util.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-dialog.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-enums.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-enums.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-dialog.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-fallback-pixbuf.h
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-util.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-icon.c
Examining data/lxpanel-0.10.0/plugins/netstatus/netstatus-icon.h
Examining data/lxpanel-0.10.0/plugins/task-button.h
Examining data/lxpanel-0.10.0/plugins/thermal/thermal.c
Examining data/lxpanel-0.10.0/plugins/kbled/kbled.c
Examining data/lxpanel-0.10.0/plugins/xkb/xkb.c
Examining data/lxpanel-0.10.0/plugins/xkb/xkb.h
Examining data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c
Examining data/lxpanel-0.10.0/plugins/deskno/deskno.c
Examining data/lxpanel-0.10.0/plugins/task-button.c
Examining data/lxpanel-0.10.0/plugins/indicator/indicator.c
Examining data/lxpanel-0.10.0/plugins/launchtaskbar.c
Examining data/lxpanel-0.10.0/plugins/launch-button.h

FINAL RESULTS:

data/lxpanel-0.10.0/src/gtk-run.c:140:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        len = readlink( exec_path, target, sizeof(target) - 1);
data/lxpanel-0.10.0/plugins/batt/batt.c:112:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system(a->command) != 0)
data/lxpanel-0.10.0/plugins/launchtaskbar.c:198: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(proc_path, sizeof(proc_path),
data/lxpanel-0.10.0/plugins/launchtaskbar.c:211:13:  [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(proc_path, sizeof(proc_path),
data/lxpanel-0.10.0/plugins/netstat/devproc.c:317:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/devproc.c:336: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(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/devproc.c:374:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/devproc.c:384: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(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/devproc.c:395: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(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/devproc.c:405:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(ifr.ifr_name, devptr->info.ifname);
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:101: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(sa_un.sun_path, sizeof(sa_un.sun_path), LXNM_SOCKET);
data/lxpanel-0.10.0/plugins/netstat/netstat.c:51:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    RET(GINT_TO_POINTER(system((char *)arg)));
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:496:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (if_req.ifr_name, iface->priv->name);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-util.h:97:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf (stderr, __VA_ARGS__);                \
data/lxpanel-0.10.0/plugins/netstatus/netstatus-util.h:102:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf (stderr, args);                       \
data/lxpanel-0.10.0/plugins/weather/logutil.c:167:20:  [4] (format) vsnprintf:
  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.
          szBuf += vsnprintf(cBuf + szBuf, sizeof(cBuf) - szBuf, pczMsg, ap);
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1074:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        rc = system("setxkbmap -option"); // reset options
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1080:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    rc = system(p_gstring_syscmd->str); // set new map
data/lxpanel-0.10.0/src/dbg.h:38:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DBG(fmt, args...) fprintf(stderr, "%s:%s:%-5d: " fmt,  __FILE__,__FUNCTION__, __LINE__, ## args)
data/lxpanel-0.10.0/src/lxpanelctl.c:101:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf( usage );
data/lxpanel-0.10.0/src/lxpanelctl.c:115:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf( usage );
data/lxpanel-0.10.0/src/misc.c:276:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ret = vfprintf (fp, format, args);
data/lxpanel-0.10.0/src/configurator.c:1372:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if( getenv("_LXSESSION_PID") ) {
data/lxpanel-0.10.0/src/configurator.c:1421:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if( ! l_logout_cmd && getenv("_LXSESSION_PID") )
data/lxpanel-0.10.0/src/lxpanelctl.c:89:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *display_name = (char *)getenv("DISPLAY");
data/lxpanel-0.10.0/src/misc.c:916:33:  [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.
        g_strdup_printf("%s%s", getenv("HOME"), file+1)
data/lxpanel-0.10.0/plugins/batt/batt_sys.c:91: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).
        value = atoi(file_content) / 1000;
data/lxpanel-0.10.0/plugins/cpu/cpu.c:128:23:  [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 * stat = fopen("/proc/stat", "r");
data/lxpanel-0.10.0/plugins/cpu/cpu.c:145:13:  [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(&c->previous_cpu_stat, &cpu, sizeof(struct cpu_stat));
data/lxpanel-0.10.0/plugins/cpu/cpu.c:183:21:  [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(&new_stats_cpu[0],
data/lxpanel-0.10.0/plugins/cpu/cpu.c:185:21:  [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(&new_stats_cpu[new_pixmap_width - c->pixmap_width + c->ring_cursor],
data/lxpanel-0.10.0/plugins/cpu/cpu.c:192:21:  [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(&new_stats_cpu[0],
data/lxpanel-0.10.0/plugins/cpu/cpu.c:194:21:  [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(&new_stats_cpu[c->ring_cursor],
data/lxpanel-0.10.0/plugins/cpu/cpu.c:201:21:  [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(&new_stats_cpu[0],
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 100 ], sstmp [ 256 ];
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:71:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen( sstmp, "r")) != NULL) {
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 100 ], sstmp [ 256 ];
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:92:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen( sstmp, "r")) != NULL) {
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:96:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            cf->cur_freq = atoi(buf);
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:199:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cpu_path[100];
data/lxpanel-0.10.0/plugins/dclock.c:187: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 clock_value[64];
data/lxpanel-0.10.0/plugins/dclock.c:188: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 tooltip_value[64];
data/lxpanel-0.10.0/plugins/launchtaskbar.c:194: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 proc_path[64];
data/lxpanel-0.10.0/plugins/menu.c:839:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(name, "r"))) {
data/lxpanel-0.10.0/plugins/monitors/monitors.c:242:23:  [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 * stat = fopen("/proc/stat", "r");
data/lxpanel-0.10.0/plugins/monitors/monitors.c:260:13:  [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(&previous_cpu_stat, &cpu, sizeof(struct cpu_stat));
data/lxpanel-0.10.0/plugins/monitors/monitors.c:305:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[80];
data/lxpanel-0.10.0/plugins/monitors/monitors.c:316:15:  [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).
    meminfo = fopen("/proc/meminfo", "r");
data/lxpanel-0.10.0/plugins/monitors/monitors.c:439:21:  [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(new_stats,
data/lxpanel-0.10.0/plugins/monitors/monitors.c:442:21:  [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(new_stats + nvalues,
data/lxpanel-0.10.0/plugins/monitors/monitors.c:453:21:  [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(new_stats,
data/lxpanel-0.10.0/plugins/monitors/monitors.c:456:21:  [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(new_stats + m->ring_cursor,
data/lxpanel-0.10.0/plugins/monitors/monitors.c:466:21:  [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(new_stats,
data/lxpanel-0.10.0/plugins/monitors/monitors.c:577:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *default_colors[N_MONITORS] = {
data/lxpanel-0.10.0/plugins/monitors/monitors.c:591:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char *colors[N_MONITORS] = {
data/lxpanel-0.10.0/plugins/netstat/devproc.c:205:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen("/proc/net/dev", "r");
data/lxpanel-0.10.0/plugins/netstat/devproc.c:215: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 buffer[512];
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[3];
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:50:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(c, "%X", *src);
data/lxpanel-0.10.0/plugins/netstat/wireless.c:71: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.
	unsigned char wpa1_oui[3] = {0x00, 0x50, 0xf2};
data/lxpanel-0.10.0/plugins/netstat/wireless.c:72: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.
	unsigned char wpa2_oui[3] = {0x00, 0x0f, 0xac};
data/lxpanel-0.10.0/plugins/netstat/wireless.c:202:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/lxpanel-0.10.0/plugins/netstat/wireless.c:273: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 buffer[IW_SCAN_MAX_DATA];
data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.c:151: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).
  return retval = fopen ("/proc/net/dev", "r");
data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.c:162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  buf [512];
data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.c:284: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).
  return retval = fopen ("/proc/net/wireless", "r");
data/lxpanel-0.10.0/plugins/netstatus/netstatus-sysdeps.c:293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  buf [512];
data/lxpanel-0.10.0/plugins/task-button.c:376: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 label[128];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:73: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 *sensor_array[MAX_NUM_SENSORS];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:74: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 *sensor_name[MAX_NUM_SENSORS];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 256 ], sstmp [ 100 ];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:92: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).
    if (!(state = fopen( sstmp, "r"))) {
data/lxpanel-0.10.0/plugins/thermal/thermal.c:107:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(pstr);
data/lxpanel-0.10.0/plugins/thermal/thermal.c:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[ 256 ], sstmp [ 100 ];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:124: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).
    if (!(state = fopen( sstmp, "r"))) {
data/lxpanel-0.10.0/plugins/thermal/thermal.c:139:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(pstr);
data/lxpanel-0.10.0/plugins/thermal/thermal.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:152: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).
    if (!(state = fopen(path, "r"))) {
data/lxpanel-0.10.0/plugins/thermal/thermal.c:163:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(pstr)/1000;
data/lxpanel-0.10.0/plugins/thermal/thermal.c:172: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 sstmp [ 100 ];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:183: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 sstmp [ 100 ];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:195: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 sstmp [ 100 ];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:264: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 buffer [60];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:335: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 sensor_path[100];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:358: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 sensor_path[100], buf[256];
data/lxpanel-0.10.0/plugins/thermal/thermal.c:372:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(sensor_path, "r");
data/lxpanel-0.10.0/plugins/thermal/thermal.c:396: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 dir_path[100];
data/lxpanel-0.10.0/plugins/tray.c:394:13:  [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((msg->string + msg->length - msg->remaining_length), &xevent->data, length);
data/lxpanel-0.10.0/plugins/volumealsa/volumealsa.c:283:21:  [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).
    vol->mixer_fd = open ("/dev/mixer", O_RDWR, 0);
data/lxpanel-0.10.0/plugins/volumealsa/volumealsa.c:297: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 id[16];
data/lxpanel-0.10.0/plugins/volumealsa/volumealsa.c:1363: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 id[16];
data/lxpanel-0.10.0/plugins/weather/httputil.c:46:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&data->buff[data->alloc], buffer, todo);
data/lxpanel-0.10.0/plugins/weather/logutil.c:72: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).
          g_FD = open(pczPath, 
data/lxpanel-0.10.0/plugins/weather/logutil.c:158: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 cBuf[1024];
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:295:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char adjTime[16];
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:383:39:  [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).
                        gint degree = atoi(code);
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:559:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              if (number && *number && atoi(number) < 800) /* not clear */
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:820: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 userAgentHeader[256];
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:821: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 languageHeader[32];
data/lxpanel-0.10.0/plugins/weather/weather.c:316:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[16];
data/lxpanel-0.10.0/plugins/xkb/xkb.h:63: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     *group_names[XkbNumKbdGroups];   /* Group names as returned by Xkb */
data/lxpanel-0.10.0/plugins/xkb/xkb.h:64: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     *symbol_names[XkbNumKbdGroups];  /* Symbol names as returned by Xkb */
data/lxpanel-0.10.0/src/conf.c:162:15:  [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/lxpanel-0.10.0/src/conf.c:381:15:  [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, "w");
data/lxpanel-0.10.0/src/configurator.c:81: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 _c[8];\
data/lxpanel-0.10.0/src/configurator.c:1147: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 itext[4];
data/lxpanel-0.10.0/src/configurator.c:1794:15:  [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, "w" );
data/lxpanel-0.10.0/src/gtk-run.c:139: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 target[512]; /* FIXME: is this enough? */
data/lxpanel-0.10.0/src/input-button.c:134: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 buff[64];
data/lxpanel-0.10.0/src/input-button.c:258: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 digit[4];
data/lxpanel-0.10.0/src/misc.c:802:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/lxpanel-0.10.0/src/plugin.c:122: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 class_name[128];
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:79:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            buf[strlen(buf)-1] = '\0';
data/lxpanel-0.10.0/plugins/cpufreq/cpufreq.c:95:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            buf[strlen(buf)-1] = '\0';
data/lxpanel-0.10.0/plugins/indicator/indicator.c:572: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).
                                strlen(outputstring), /* length */
data/lxpanel-0.10.0/plugins/launchtaskbar.c:257:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(short_exec);
data/lxpanel-0.10.0/plugins/launchtaskbar.c:281: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).
        len = strlen(exec_bin);
data/lxpanel-0.10.0/plugins/launchtaskbar.c:503:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (guchar *)path_str, strlen(path_str));
data/lxpanel-0.10.0/plugins/netstat/devproc.c:253:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, name, strlen(name));
data/lxpanel-0.10.0/plugins/netstat/devproc.c:253: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).
		strncpy(ifr.ifr_name, name, strlen(name));
data/lxpanel-0.10.0/plugins/netstat/devproc.c:254: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).
		ifr.ifr_name[strlen(name)+1] = '\0';
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:46: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).
    buf = g_malloc(sizeof(char)+strlen(src)*2);
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:145:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (essid==NULL || strlen(essid)==0) {
data/lxpanel-0.10.0/plugins/netstat/lxnm_client.c:151:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (key==NULL || strlen(key)==0) {
data/lxpanel-0.10.0/plugins/netstat/wireless.c:218: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).
				|| strlen(event->u.essid.pointer)==0) {
data/lxpanel-0.10.0/plugins/netstat/wireless.c:276:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wrq.ifr_name, ifname, IFNAMSIZ);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:296: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 (name && strlen (name) >= IF_NAMESIZE)
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:714:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:725:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:735:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:741:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:747:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/netstatus/netstatus-iface.c:1047:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (if_req.ifr_name, iface->priv->name, IF_NAMESIZE - 1);
data/lxpanel-0.10.0/plugins/thermal/thermal.c:101:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pstr += strlen(PROC_TRIP_CRITICAL);
data/lxpanel-0.10.0/plugins/thermal/thermal.c:105: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).
        pstr[strlen(pstr)-3] = '\0';
data/lxpanel-0.10.0/plugins/thermal/thermal.c:137: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).
        pstr[strlen(pstr)-3] = '\0';
data/lxpanel-0.10.0/plugins/thermal/thermal.c:200: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).
    spl = strlen(sensor_path) - 6;
data/lxpanel-0.10.0/plugins/thermal/thermal.c:345: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).
            if (strncmp(sensor_name, subdir_prefix, strlen(subdir_prefix)) != 0)
data/lxpanel-0.10.0/plugins/weather/location.c:110: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).
  gsize aliasLength = (pczAlias)?strlen(pczAlias):0;
data/lxpanel-0.10.0/plugins/weather/location.c:165: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).
                                          (pSrc->pcAlias_)?strlen(pSrc->pcAlias_):0);
data/lxpanel-0.10.0/plugins/weather/location.c:168: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).
                                         (pSrc->pcCity_)?strlen(pSrc->pcCity_):0);
data/lxpanel-0.10.0/plugins/weather/location.c:171: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).
                                          (pSrc->pcState_)?strlen(pSrc->pcState_):0);
data/lxpanel-0.10.0/plugins/weather/location.c:174: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).
                                          (pSrc->pcCountry_)?strlen(pSrc->pcCountry_):0);
data/lxpanel-0.10.0/plugins/weather/location.c:177: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).
                                          (pSrc->pcWOEID_)?strlen(pSrc->pcWOEID_):0);
data/lxpanel-0.10.0/plugins/weather/location.h:31:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define LOCATIONINFO_GROUP_NAME_LENGTH strlen(LOCATIONINFO_GROUP_NAME)
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:118:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(pczInString),
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:132: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).
      pcConvertedString = g_strndup(pczInString, strlen(pczInString));
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:145:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen((const gchar *)pxEscapedString));
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:327: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).
  return setStringIfDifferent(pcStorage, setTime, setTime ? strlen(setTime) : 0);
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:368:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                setStringIfDifferent(&pEntry->units_.pcSpeed_, units, strlen(units));
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:387: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).
                nlen = (name)?strlen(name):0;
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:414: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).
                                 strlen(pResponse),
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:513: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).
              gsize ulen = (value)?strlen(value):0;
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:527: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).
              gsize vlen = (value)?strlen(value):0;
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:538:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              setStringIfDifferent(&pEntry->units_.pcDistance_, units, strlen(units));
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:550: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).
              gsize vlen = (value)?strlen(value):0;
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:557: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).
                                  strlen(pcImageURL));
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:633: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).
                        strlen(localeTranslation[0])) == 0)
data/lxpanel-0.10.0/plugins/weather/openweathermap.c:742: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).
    xmlDocPtr pDoc = xmlReadMemory(pResponse, strlen(pResponse), "", NULL, 0);
data/lxpanel-0.10.0/plugins/weather/weather.c:166: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).
      pLocation->pcAlias_ = g_strndup(pczDummy, (pczDummy) ? strlen(pczDummy) : 0);
data/lxpanel-0.10.0/plugins/weather/weather.c:179: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).
      pLocation->pcCity_ = g_strndup(pczDummy, (pczDummy) ? strlen(pczDummy) : 0);
data/lxpanel-0.10.0/plugins/weather/weather.c:188: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).
      pLocation->pcState_ = g_strndup(pczDummy, (pczDummy) ? strlen(pczDummy) : 0);
data/lxpanel-0.10.0/plugins/weather/weather.c:197: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).
      pLocation->pcCountry_ = g_strndup(pczDummy, (pczDummy) ? strlen(pczDummy) : 0);
data/lxpanel-0.10.0/plugins/weather/weather.c:222: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).
      pLocation->pcWOEID_ = g_strndup(pczDummy, (pczDummy) ? strlen(pczDummy) : 0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:89: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).
  return strlen(FORECAST_URL) + 
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:90:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen(WOEID_QUERY) + 
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:91:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen(pczLocation) + 7;
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:105: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).
  return strlen(FORECAST_URL) + 
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:106:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen(FORECAST_QUERY_P1) + 
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:107:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen(pczWOEID) + 14 +
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:108:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen(FORECAST_QUERY_P2);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:181:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(pczInString),
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:195: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).
      pcConvertedString = g_strndup(pczInString, strlen(pczInString));
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:208:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                    strlen((const gchar *)pxEscapedString));
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:384: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).
          gsize contentLength = ((pczContent)?strlen(pczContent):0); // 1 is null char
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:447: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).
              gsize dateLength = ((pczDate)?strlen(pczDate):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:448: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).
              gsize textLength = ((pczText)?strlen(pczText):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:483:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      strlen(pcImageURL));
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:497: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).
              gsize dayLength = ((pczDay)?strlen(pczDay):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:498:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              gsize textLength = ((pczText)?strlen(pczText):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:611: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).
              gsize distanceLength = ((pczDistance)?strlen(pczDistance):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:620: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).
              gsize pressureLength = ((pczPressure)?strlen(pczPressure):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:629: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).
              gsize speedLength = ((pczSpeed)?strlen(pczSpeed):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:638: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).
              gsize temperatureLength = ((pczTemperature)?strlen(pczTemperature):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:660:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              setStringIfDifferent(&pEntry->pcWindDirection_, pczDir, strlen(pczDir));
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:709:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              gsize sunriseLength = ((pczSunrise)?strlen(pczSunrise):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:718: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).
              gsize sunsetLength = ((pczSunset)?strlen(pczSunset):0);
data/lxpanel-0.10.0/plugins/weather/yahooutil.c:780: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).
                                 strlen(pResponse),
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:696:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(p_xkb->p_gstring_change_opt_partial->str))
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:810: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).
        if(!strlen(p_xkb->p_gstring_change_opt_partial->str))
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1067: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( (p_xkb->kbd_advanced_options != NULL) && strlen(p_xkb->kbd_advanced_options) )
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1101: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(p_xkb->p_gstring_layouts_partial->str))
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1126:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(!strlen(p_xkb->p_gstring_variants_partial->str))
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1185: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(p_xkb->kbd_layouts) && strlen(p_xkb->kbd_variants))
data/lxpanel-0.10.0/plugins/xkb/xkb-plugin.c:1185:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(p_xkb->kbd_layouts) && strlen(p_xkb->kbd_variants))
data/lxpanel-0.10.0/src/gtk-run.c:76: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).
    path_len = strlen(exec_path);
data/lxpanel-0.10.0/src/gtk-run.c:77: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).
    exec_len = strlen(exec);
data/lxpanel-0.10.0/src/misc.c:539: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).
        for (i = 0, s = val; (int)i < *count; i++, s = s +  strlen (s) + 1) {
data/lxpanel-0.10.0/src/plugin.c:171: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).
                char * type = g_strndup(file, strlen(file) - 3);

ANALYSIS SUMMARY:

Hits = 199
Lines analyzed = 43585 in approximately 1.08 seconds (40318 lines/second)
Physical Source Lines of Code (SLOC) = 31263
Hits@level = [0]  75 [1]  87 [2]  86 [3]   4 [4]  21 [5]   1
Hits@level+ = [0+] 274 [1+] 199 [2+] 112 [3+]  26 [4+]  22 [5+]   1
Hits/KSLOC@level+ = [0+] 8.76435 [1+] 6.36535 [2+] 3.58251 [3+] 0.831654 [4+] 0.703707 [5+] 0.0319867
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.