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/gkrellkam-2.0.0/gkrellkam2.c
Examining data/gkrellkam-2.0.0/gkrellkam.c

FINAL RESULTS:

data/gkrellkam-2.0.0/gkrellkam.c:717:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->cmd_pipe = popen (wget_str, "r");
data/gkrellkam-2.0.0/gkrellkam.c:746:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->cmd_pipe = popen (scriptname, "r");
data/gkrellkam-2.0.0/gkrellkam.c:1043: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.
        system (cmd);
data/gkrellkam-2.0.0/gkrellkam.c:1482:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (words[0], X_OK) == 0)
data/gkrellkam-2.0.0/gkrellkam.c:1629:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->listurl_pipe = popen (wget_str, "r");
data/gkrellkam-2.0.0/gkrellkam2.c:717:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->cmd_pipe = popen (wget_str, "r");
data/gkrellkam-2.0.0/gkrellkam2.c:746:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->cmd_pipe = popen (scriptname, "r");
data/gkrellkam-2.0.0/gkrellkam2.c:1043: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.
        system (cmd);
data/gkrellkam-2.0.0/gkrellkam2.c:1482:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (words[0], X_OK) == 0)
data/gkrellkam-2.0.0/gkrellkam2.c:1629:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  p->listurl_pipe = popen (wget_str, "r");
data/gkrellkam-2.0.0/gkrellkam.c:222:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  gboolean random;
data/gkrellkam-2.0.0/gkrellkam.c:874:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  times = p->random ? (rand () % (len - 1) + 1) : 1;
data/gkrellkam-2.0.0/gkrellkam.c:1202:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                        panels[i].random,
data/gkrellkam-2.0.0/gkrellkam.c:1322:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (time (NULL)); /* randomize from timer */
data/gkrellkam-2.0.0/gkrellkam.c:1782:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
             panels[i].random);
data/gkrellkam-2.0.0/gkrellkam.c:1815:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
              &(panels[which].random));
data/gkrellkam-2.0.0/gkrellkam.c:1823:61:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      panels[which].random = (gboolean)CLAMP (panels[which].random, 0, 1);
data/gkrellkam-2.0.0/gkrellkam2.c:222:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  gboolean random;
data/gkrellkam-2.0.0/gkrellkam2.c:874:14:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  times = p->random ? (rand () % (len - 1) + 1) : 1;
data/gkrellkam-2.0.0/gkrellkam2.c:1202:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                        panels[i].random,
data/gkrellkam-2.0.0/gkrellkam2.c:1322:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand (time (NULL)); /* randomize from timer */
data/gkrellkam-2.0.0/gkrellkam2.c:1782:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
             panels[i].random);
data/gkrellkam-2.0.0/gkrellkam2.c:1815:31:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
              &(panels[which].random));
data/gkrellkam-2.0.0/gkrellkam2.c:1823:61:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      panels[which].random = (gboolean)CLAMP (panels[which].random, 0, 1);
data/gkrellkam-2.0.0/gkrellkam.c:698:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  char tmpfile[] = TEMPTEMPLATE "XXXXXX";
data/gkrellkam-2.0.0/gkrellkam.c:704:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam.c:704:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam.c:714:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                              wget_opts, tmpfile,
data/gkrellkam-2.0.0/gkrellkam.c:721:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink (tmpfile);
data/gkrellkam-2.0.0/gkrellkam.c:726:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  panel_cursource (p)->tfile = g_strdup (tmpfile);
data/gkrellkam-2.0.0/gkrellkam.c:806: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[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam.c:1452: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.
  unsigned char buf[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam.c:1493: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 ((test = fopen (words[0], "r")) != NULL)
data/gkrellkam-2.0.0/gkrellkam.c:1539: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[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam.c:1549: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 ((listfile = fopen (listname, "r")) == NULL)
data/gkrellkam-2.0.0/gkrellkam.c:1569:32:  [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).
          ks->seconds = CLAMP (atoi (nextword (&buf[1])), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam.c:1571:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          ks->tlife = CLAMP (atoi (nextword (&buf[1])), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam.c:1611:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  char tmpfile[] = TEMPTEMPLATE "-urllistXXXXXX";
data/gkrellkam-2.0.0/gkrellkam.c:1617:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam.c:1617:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam.c:1627:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                              wget_opts, tmpfile, source);
data/gkrellkam-2.0.0/gkrellkam.c:1633:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink (tmpfile);
data/gkrellkam-2.0.0/gkrellkam.c:1639:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  p->listurl_file = g_strdup (tmpfile);
data/gkrellkam-2.0.0/gkrellkam.c:1794:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  which = atoi (config_item);
data/gkrellkam-2.0.0/gkrellkam.c:1842: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).
    popup_errors = atoi (value);
data/gkrellkam-2.0.0/gkrellkam.c:1846:27:  [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).
    newnumpanels = CLAMP (atoi (value), MIN_NUMPANELS, MAX_NUMPANELS);
data/gkrellkam-2.0.0/gkrellkam.c:1853:37:  [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).
      panels[which].height = CLAMP (atoi (value), 10, 100);
data/gkrellkam-2.0.0/gkrellkam.c:1858:45:  [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).
      panels[which].default_period = CLAMP (atoi (value), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam.c:1863:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      panels[which].maintain_aspect = (gboolean)CLAMP (atoi (value), 0, 1);
data/gkrellkam-2.0.0/gkrellkam.c:1868: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).
      panels[which].boundary = CLAMP (atoi (value), 0, 20);
data/gkrellkam-2.0.0/gkrellkam.c:1874:43:  [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).
      panels[which].default_period = MAX (atoi (value) * 60, 1);
data/gkrellkam-2.0.0/gkrellkam2.c:698:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  char tmpfile[] = TEMPTEMPLATE "XXXXXX";
data/gkrellkam-2.0.0/gkrellkam2.c:704:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam2.c:704:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam2.c:714:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                              wget_opts, tmpfile,
data/gkrellkam-2.0.0/gkrellkam2.c:721:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink (tmpfile);
data/gkrellkam-2.0.0/gkrellkam2.c:726:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  panel_cursource (p)->tfile = g_strdup (tmpfile);
data/gkrellkam-2.0.0/gkrellkam2.c:806: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[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam2.c:1452: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.
  unsigned char buf[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam2.c:1493: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 ((test = fopen (words[0], "r")) != NULL)
data/gkrellkam-2.0.0/gkrellkam2.c:1539: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[BUFLEN];
data/gkrellkam-2.0.0/gkrellkam2.c:1549: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 ((listfile = fopen (listname, "r")) == NULL)
data/gkrellkam-2.0.0/gkrellkam2.c:1569:32:  [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).
          ks->seconds = CLAMP (atoi (nextword (&buf[1])), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam2.c:1571:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          ks->tlife = CLAMP (atoi (nextword (&buf[1])), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam2.c:1611:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  char tmpfile[] = TEMPTEMPLATE "-urllistXXXXXX";
data/gkrellkam-2.0.0/gkrellkam2.c:1617:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam2.c:1617:20:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  tmpfd = mkstemp (tmpfile); /* this will create the file, perm 0600 */
data/gkrellkam-2.0.0/gkrellkam2.c:1627:42:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                              wget_opts, tmpfile, source);
data/gkrellkam-2.0.0/gkrellkam2.c:1633:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink (tmpfile);
data/gkrellkam-2.0.0/gkrellkam2.c:1639:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  p->listurl_file = g_strdup (tmpfile);
data/gkrellkam-2.0.0/gkrellkam2.c:1794:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  which = atoi (config_item);
data/gkrellkam-2.0.0/gkrellkam2.c:1842: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).
    popup_errors = atoi (value);
data/gkrellkam-2.0.0/gkrellkam2.c:1846:27:  [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).
    newnumpanels = CLAMP (atoi (value), MIN_NUMPANELS, MAX_NUMPANELS);
data/gkrellkam-2.0.0/gkrellkam2.c:1853:37:  [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).
      panels[which].height = CLAMP (atoi (value), 10, 100);
data/gkrellkam-2.0.0/gkrellkam2.c:1858:45:  [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).
      panels[which].default_period = CLAMP (atoi (value), 1, MAX_SECONDS);
data/gkrellkam-2.0.0/gkrellkam2.c:1863:56:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      panels[which].maintain_aspect = (gboolean)CLAMP (atoi (value), 0, 1);
data/gkrellkam-2.0.0/gkrellkam2.c:1868: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).
      panels[which].boundary = CLAMP (atoi (value), 0, 20);
data/gkrellkam-2.0.0/gkrellkam2.c:1874:43:  [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).
      panels[which].default_period = MAX (atoi (value) * 60, 1);
data/gkrellkam-2.0.0/gkrellkam.c:1421: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).
  if ((len = strlen (str)) < (lenend = strlen (endstr)))
data/gkrellkam-2.0.0/gkrellkam.c:1421:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((len = strlen (str)) < (lenend = strlen (endstr)))
data/gkrellkam-2.0.0/gkrellkam2.c:1421: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).
  if ((len = strlen (str)) < (lenend = strlen (endstr)))
data/gkrellkam-2.0.0/gkrellkam2.c:1421:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((len = strlen (str)) < (lenend = strlen (endstr)))

ANALYSIS SUMMARY:

Hits = 82
Lines analyzed = 4146 in approximately 0.11 seconds (38805 lines/second)
Physical Source Lines of Code (SLOC) = 2944
Hits@level = [0]  22 [1]   4 [2]  54 [3]  14 [4]  10 [5]   0
Hits@level+ = [0+] 104 [1+]  82 [2+]  78 [3+]  24 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 35.3261 [1+] 27.8533 [2+] 26.4946 [3+] 8.15217 [4+] 3.39674 [5+]   0
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.