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/gkrellm-radio-2.0.4/gkrellm_radio.c
Examining data/gkrellm-radio-2.0.4/gkrellm_radio.h
Examining data/gkrellm-radio-2.0.4/gkrellm_radio_lirc.c
Examining data/gkrellm-radio-2.0.4/gkrellm_radio_lirc.h
Examining data/gkrellm-radio-2.0.4/radio.c
Examining data/gkrellm-radio-2.0.4/radio.h
Examining data/gkrellm-radio-2.0.4/videodev.h

FINAL RESULTS:

data/gkrellm-radio-2.0.4/gkrellm_radio.c:91:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(freqname, "%3.2f", freq);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:375:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(fstr, "%.2f", freq);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:503: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 *f[3];
data/gkrellm-radio-2.0.4/gkrellm_radio.c:694: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).
    nstations = atoi(value);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:702:13:  [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).
    stnum = atoi(key+11);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:709:13:  [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).
    stnum = atoi(key+11);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:718:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    attempt_reopen = atoi(value);
data/gkrellm-radio-2.0.4/gkrellm_radio.c:720: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).
    close_atexit = atoi(value);
data/gkrellm-radio-2.0.4/radio.c:94:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (-1 == (radio_fd = open(DEVICE, O_RDONLY))) return -1;
data/gkrellm-radio-2.0.4/videodev.h:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/gkrellm-radio-2.0.4/videodev.h:18:8:  [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).
	int (*open)(struct video_device *, int mode);
data/gkrellm-radio-2.0.4/videodev.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/gkrellm-radio-2.0.4/videodev.h:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/gkrellm-radio-2.0.4/videodev.h:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/gkrellm-radio-2.0.4/videodev.h:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char    name[16];
data/gkrellm-radio-2.0.4/videodev.h:20:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	long (*read)(struct video_device *, char *, unsigned long, int noblock);

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 1331 in approximately 0.06 seconds (24009 lines/second)
Physical Source Lines of Code (SLOC) = 1035
Hits@level = [0]   8 [1]   1 [2]  15 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  24 [1+]  16 [2+]  15 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 23.1884 [1+] 15.4589 [2+] 14.4928 [3+]   0 [4+]   0 [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.