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/pommed-1.39~dfsg/client-common/dbus-client.c
Examining data/pommed-1.39~dfsg/client-common/dbus-client.h
Examining data/pommed-1.39~dfsg/client-common/video-client.c
Examining data/pommed-1.39~dfsg/client-common/video-client.h
Examining data/pommed-1.39~dfsg/gpomme/conffile.h
Examining data/pommed-1.39~dfsg/gpomme/gpomme.h
Examining data/pommed-1.39~dfsg/gpomme/theme.c
Examining data/pommed-1.39~dfsg/gpomme/theme.h
Examining data/pommed-1.39~dfsg/gpomme/conffile.c
Examining data/pommed-1.39~dfsg/gpomme/gpomme.c
Examining data/pommed-1.39~dfsg/pommed/ambient.h
Examining data/pommed-1.39~dfsg/pommed/audio.c
Examining data/pommed-1.39~dfsg/pommed/audio.h
Examining data/pommed-1.39~dfsg/pommed/beep.c
Examining data/pommed-1.39~dfsg/pommed/beep.h
Examining data/pommed-1.39~dfsg/pommed/cd_eject.c
Examining data/pommed-1.39~dfsg/pommed/cd_eject.h
Examining data/pommed-1.39~dfsg/pommed/conffile.c
Examining data/pommed-1.39~dfsg/pommed/conffile.h
Examining data/pommed-1.39~dfsg/pommed/dbus.c
Examining data/pommed-1.39~dfsg/pommed/dbus.h
Examining data/pommed-1.39~dfsg/pommed/evloop.c
Examining data/pommed-1.39~dfsg/pommed/evloop.h
Examining data/pommed-1.39~dfsg/pommed/kbd_auto.c
Examining data/pommed-1.39~dfsg/pommed/lcd_backlight.h
Examining data/pommed-1.39~dfsg/pommed/mactel/acpi.c
Examining data/pommed-1.39~dfsg/pommed/mactel/ambient.c
Examining data/pommed-1.39~dfsg/pommed/mactel/gma950_backlight.c
Examining data/pommed-1.39~dfsg/pommed/mactel/kbd_backlight.c
Examining data/pommed-1.39~dfsg/pommed/mactel/nv8600mgt_backlight.c
Examining data/pommed-1.39~dfsg/pommed/mactel/x1600_backlight.c
Examining data/pommed-1.39~dfsg/pommed/pmac/ambient.c
Examining data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_api.h
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.h
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.h
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_standard.c
Examining data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_standard.h
Examining data/pommed-1.39~dfsg/pommed/pmac/pmu.c
Examining data/pommed-1.39~dfsg/pommed/power.c
Examining data/pommed-1.39~dfsg/pommed/power.h
Examining data/pommed-1.39~dfsg/pommed/timerfd-syscalls.h
Examining data/pommed-1.39~dfsg/pommed/video.c
Examining data/pommed-1.39~dfsg/pommed/video.h
Examining data/pommed-1.39~dfsg/pommed/kbd_backlight.h
Examining data/pommed-1.39~dfsg/pommed/pommed.c
Examining data/pommed-1.39~dfsg/pommed/pommed.h
Examining data/pommed-1.39~dfsg/pommed/sysfs_backlight.c
Examining data/pommed-1.39~dfsg/pommed/evdev.c
Examining data/pommed-1.39~dfsg/pommed/evdev.h
Examining data/pommed-1.39~dfsg/wmpomme/timerfd-syscalls.h
Examining data/pommed-1.39~dfsg/wmpomme/wmgeneral.c
Examining data/pommed-1.39~dfsg/wmpomme/wmgeneral.h
Examining data/pommed-1.39~dfsg/wmpomme/wmpomme.c

FINAL RESULTS:

data/pommed-1.39~dfsg/client-common/video-client.c:143: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(vsw_user, R_OK | X_OK) == 0)
data/pommed-1.39~dfsg/client-common/video-client.c:147:12:  [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.
  else if (access(VIDEO_SWITCH_SYSTEM, R_OK | X_OK) == 0)
data/pommed-1.39~dfsg/client-common/video-client.c:160:7:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execl(vsw, "videoswitch", NULL);
data/pommed-1.39~dfsg/pommed/beep.c:131: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(dv.name, BEEP_DEVICE_NAME);
data/pommed-1.39~dfsg/pommed/beep.c:299: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(beep_cfg.beepfile, R_OK) != 0)
data/pommed-1.39~dfsg/pommed/beep.c:303:11:  [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(BEEP_DEFAULT_FILE, R_OK) == 0)
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:112:10:  [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.
	  ret = snprintf(devpath, sizeof(devpath), HWMON_SYSFS_BASE "/%s/device/name", pdevent->d_name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:40:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(strcat(buf, node->full_path), name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:40:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(strcat(buf, node->full_path), name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:57:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(strcat(buf, node->full_path), name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:57:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(strcat(buf, node->full_path), name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:131:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s", p);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:348:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(strcpy(fullpath, "/"), tmp->d_name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:350:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(strcat(strcpy(fullpath, path), "/"),
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:350:19:  [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).
				strcat(strcat(strcpy(fullpath, path), "/"),
data/pommed-1.39~dfsg/pommed/pommed.c:448:7:  [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.
      vfprintf(where, fmt, ap);
data/pommed-1.39~dfsg/pommed/pommed.c:467:5:  [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.
    vfprintf(stderr, fmt, ap);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:354: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(brightness[driver], W_OK) != 0)
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:360: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(actual_brightness[driver], R_OK) != 0)
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:366: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(max_brightness[driver], R_OK) != 0)
data/pommed-1.39~dfsg/gpomme/gpomme.c:599:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "cv")) != -1)
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:140:18:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	      smcpath = realpath(devpath, NULL);
data/pommed-1.39~dfsg/pommed/pommed.c:847:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "fdv")) != -1)
data/pommed-1.39~dfsg/gpomme/conffile.c:197:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(conffile, "w");
data/pommed-1.39~dfsg/gpomme/theme.c:43:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file[PATH_MAX];
data/pommed-1.39~dfsg/gpomme/theme.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char file[PATH_MAX];
data/pommed-1.39~dfsg/pommed/ambient.h:21: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 i2cdev[16];       /* i2c bus device */
data/pommed-1.39~dfsg/pommed/beep.c:100: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 *uinput_dev[3] =
data/pommed-1.39~dfsg/pommed/beep.c:116:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(uinput_dev[i], O_RDWR, 0);
data/pommed-1.39~dfsg/pommed/cd_eject.c:46: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 *eject_argv[3] = { "eject", eject_cfg.device, NULL };
data/pommed-1.39~dfsg/pommed/cd_eject.c:47: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 *eject_envp[1] = { NULL };
data/pommed-1.39~dfsg/pommed/cd_eject.c:55: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).
  fd = open(eject_cfg.device, O_RDONLY | O_NONBLOCK);
data/pommed-1.39~dfsg/pommed/evdev.c:242: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 evdev[32];
data/pommed-1.39~dfsg/pommed/evdev.c:315:13:  [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).
      efd = open(evdev, O_RDWR);
data/pommed-1.39~dfsg/pommed/evdev.c:1051: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 devname[256];
data/pommed-1.39~dfsg/pommed/evdev.c:1177: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 evdev[32];
data/pommed-1.39~dfsg/pommed/evdev.c:1192:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(evdev, O_RDWR);
data/pommed-1.39~dfsg/pommed/mactel/acpi.c:39: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/pommed-1.39~dfsg/pommed/mactel/acpi.c:42:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(PROC_ACPI_AC_STATE, "r");
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:48: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[16];
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:54: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).
  fd = open(smcpath, O_RDONLY);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:69:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *r = atoi(p);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:72:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *l = atoi(p);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:93: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 devpath[PATH_MAX];
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:94: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 devname[9];
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:119:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  fd = open(devpath, O_RDONLY);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:153:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(smcpath, "/light");
data/pommed-1.39~dfsg/pommed/mactel/gma950_backlight.c:75: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 sysfs_resource[64];
data/pommed-1.39~dfsg/pommed/mactel/gma950_backlight.c:130: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).
  fd = open(sysfs_resource, O_RDWR);
data/pommed-1.39~dfsg/pommed/mactel/kbd_backlight.c:60:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(kbdbck_node[i], flags);
data/pommed-1.39~dfsg/pommed/mactel/kbd_backlight.c:80: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[8];
data/pommed-1.39~dfsg/pommed/mactel/kbd_backlight.c:95:9:  [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).
  ret = atoi(buf);
data/pommed-1.39~dfsg/pommed/mactel/x1600_backlight.c:51: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 sysfs_resource[64];
data/pommed-1.39~dfsg/pommed/mactel/x1600_backlight.c:94: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).
  fd = open(sysfs_resource, O_RDWR);
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:53: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[4];
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:55: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).
  fd = open(lmu_info.i2cdev, O_RDONLY);
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:114: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[ADB_BUFFER_SIZE];
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:116: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).
  fd = open(ADB_DEVICE, O_RDWR);
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:69: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[3];
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:115: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).
  fd = open(lmu_info.i2cdev, O_RDWR);
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:167: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[ADB_BUFFER_SIZE];
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:211: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).
  fd = open(ADB_DEVICE, O_RDWR);
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:388: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[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:406:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen(buf, "r");
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:494: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 buffer[4];
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:504: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).
  fd = open(lmu_info.i2cdev, O_RDWR);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX]={0};
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX]={0};
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:68:12:  [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 ((fd = open(buf, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:43:12:  [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 ((fd = open(buf, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:80:12:  [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 ((fd = open(buf, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:109:12:  [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 ((fd = open(buf, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:164:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:179:12:  [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 ((fd = open(path, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:270:12:  [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 ((fd = open(path, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:296:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:307:12:  [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 ((fd = open(path, O_RDONLY)) < 0)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:329: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 *directories[8192] = { NULL };
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:330: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 fullpath[PATH_MAX];
data/pommed-1.39~dfsg/pommed/pmac/pmu.c:39: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/pommed-1.39~dfsg/pommed/pmac/pmu.c:43:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(PROC_PMU_AC_STATE_FILE, "r");
data/pommed-1.39~dfsg/pommed/pommed.c:492:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen(fnmode_node[i], "a");
data/pommed-1.39~dfsg/pommed/pommed.c:522: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 buffer[128];
data/pommed-1.39~dfsg/pommed/pommed.c:525: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).
  fd = open("/proc/device-tree/copyright", O_RDONLY);
data/pommed-1.39~dfsg/pommed/pommed.c:553: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).
  fd = open("/proc/device-tree/model", O_RDONLY);
data/pommed-1.39~dfsg/pommed/pommed.c:654: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[32];
data/pommed-1.39~dfsg/pommed/pommed.c:668:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open(vendor_node[i], O_RDONLY);
data/pommed-1.39~dfsg/pommed/pommed.c:705: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).
  fd = open("/sys/class/dmi/id/product_name", O_RDONLY);
data/pommed-1.39~dfsg/pommed/pommed.c:1001:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  pidfile = fopen(PIDFILE, "w");
data/pommed-1.39~dfsg/pommed/power.c:50:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(SYSFS_POWER_AC_STATE, "r");
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:125: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 buffer[8];
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:130: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).
  fd = open(actual_brightness[bck_driver], O_RDONLY);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:149:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(buffer);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:157: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 buffer[8];
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:162: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).
  fd = open(max_brightness[bck_driver], O_RDONLY);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:181:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(buffer);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:193:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(brightness[bck_driver], "a");
data/pommed-1.39~dfsg/pommed/video.c:51: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[16];
data/pommed-1.39~dfsg/pommed/video.c:61: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).
  fd = open(buf, O_RDWR);
data/pommed-1.39~dfsg/pommed/video.c:64:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(buf, O_RDONLY);
data/pommed-1.39~dfsg/pommed/video.c:67:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(buf, O_WRONLY);
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:113: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	temp[128];
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:118:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:148: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	temp[128];
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:154:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:94:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char wmmbp_mask_bits[64*64];
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:921: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[1024];
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:923: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(buf, "%03i", num);
data/pommed-1.39~dfsg/client-common/video-client.c:131: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).
      vsw_user = (char *) malloc(strlen(pw->pw_dir) + strlen(VIDEO_SWITCH_USER) + 1);
data/pommed-1.39~dfsg/client-common/video-client.c:131:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      vsw_user = (char *) malloc(strlen(pw->pw_dir) + strlen(VIDEO_SWITCH_USER) + 1);
data/pommed-1.39~dfsg/client-common/video-client.c:139:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(vsw_user, pw->pw_dir, strlen(pw->pw_dir) + 1);
data/pommed-1.39~dfsg/client-common/video-client.c:139: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).
      strncpy(vsw_user, pw->pw_dir, strlen(pw->pw_dir) + 1);
data/pommed-1.39~dfsg/client-common/video-client.c:140:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(vsw_user, VIDEO_SWITCH_USER, strlen(VIDEO_SWITCH_USER));
data/pommed-1.39~dfsg/client-common/video-client.c:140:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncat(vsw_user, VIDEO_SWITCH_USER, strlen(VIDEO_SWITCH_USER));
data/pommed-1.39~dfsg/gpomme/conffile.c:94:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(value) == 0)
data/pommed-1.39~dfsg/gpomme/conffile.c:121: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).
      conffile = (char *) malloc(strlen(pw->pw_dir) + strlen(CONFFILE) + 1);
data/pommed-1.39~dfsg/gpomme/conffile.c:121:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      conffile = (char *) malloc(strlen(pw->pw_dir) + strlen(CONFFILE) + 1);
data/pommed-1.39~dfsg/gpomme/conffile.c:129:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(conffile, pw->pw_dir, strlen(pw->pw_dir) + 1);
data/pommed-1.39~dfsg/gpomme/conffile.c:129: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).
      strncpy(conffile, pw->pw_dir, strlen(pw->pw_dir) + 1);
data/pommed-1.39~dfsg/gpomme/conffile.c:130:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat(conffile, CONFFILE, strlen(CONFFILE));
data/pommed-1.39~dfsg/gpomme/conffile.c:130: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).
      strncat(conffile, CONFFILE, strlen(CONFFILE));
data/pommed-1.39~dfsg/pommed/beep.c:223:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, &ev, sizeof(struct input_event));
data/pommed-1.39~dfsg/pommed/conffile.c:182:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(value) == 0)
data/pommed-1.39~dfsg/pommed/evdev.c:93:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, &ev, sizeof(struct input_event));
data/pommed-1.39~dfsg/pommed/evdev.c:274:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, all_ie, qsize);
data/pommed-1.39~dfsg/pommed/evloop.c:141:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read(fd, &ticks, sizeof(ticks));
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:58:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, 16);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:65:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf[strlen(buf)] = '\0';
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:127:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  ret = read(fd, devname, sizeof(devname) - 1);
data/pommed-1.39~dfsg/pommed/mactel/ambient.c:149: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).
	      smcpath = realloc(smcpath, strlen(smcpath) + 1 + 6);
data/pommed-1.39~dfsg/pommed/mactel/kbd_backlight.c:88:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, 8);
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:84:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, 4);
data/pommed-1.39~dfsg/pommed/pmac/ambient.c:147:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, ADB_BUFFER_SIZE);
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:182:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read(fd, buf, ADB_BUFFER_SIZE);
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:433: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).
      if (ret < strlen(I2C_ADAPTER_NAME))
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:436:42:  [1] (buffer) strlen:
  Does not handle 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(buf, I2C_ADAPTER_NAME, strlen(I2C_ADAPTER_NAME)) == 0)
data/pommed-1.39~dfsg/pommed/pmac/kbd_backlight.c:521:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buffer, 4);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:24: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).
	len = strlen(path);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:71:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((*plen = read(fd, property, size)) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_externals.c:139: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).
	if((!node->path) || (!node) || (strlen(node->path)==1))
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:58:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, tmp, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:87:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, node->type, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:115:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, node->linux_phandle.data, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:127:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(OF_ROOT);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:182:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:227: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).
	size_t slen = strlen(path);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:233:6:  [1] (buffer) strlen:
  Does not handle 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(path)) {
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:273:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, props.data, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:310:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, size) != size)
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:348:12:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
				strcat(strcpy(fullpath, "/"), tmp->d_name);
data/pommed-1.39~dfsg/pommed/pmac/ofapi/of_internals.c:350:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(strcat(strcpy(fullpath, path), "/"),
data/pommed-1.39~dfsg/pommed/pommed.c:533:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, buffer, sizeof(buffer) - 1);
data/pommed-1.39~dfsg/pommed/pommed.c:561:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, buffer, sizeof(buffer) - 1);
data/pommed-1.39~dfsg/pommed/pommed.c:684:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, sizeof(buf) - 1);
data/pommed-1.39~dfsg/pommed/pommed.c:715:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read(fd, buf, sizeof(buf) - 1);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:139:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, buffer, sizeof(buffer) - 1);
data/pommed-1.39~dfsg/pommed/sysfs_backlight.c:171:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  n = read(fd, buffer, sizeof(buffer) - 1);
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:127:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    p += strlen(keys[key].label);
data/pommed-1.39~dfsg/wmpomme/wmgeneral.c:160:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    p += strlen(keys[key].label);
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:694:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(ProgName) >= 5)
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:695:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ProgName += (strlen(ProgName) - 5);
data/pommed-1.39~dfsg/wmpomme/wmpomme.c:814:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      read(fds[1].fd, &ticks, sizeof(ticks));

ANALYSIS SUMMARY:

Hits = 166
Lines analyzed = 13713 in approximately 0.34 seconds (40511 lines/second)
Physical Source Lines of Code (SLOC) = 9239
Hits@level = [0] 168 [1]  54 [2]  89 [3]   3 [4]  20 [5]   0
Hits@level+ = [0+] 334 [1+] 166 [2+] 112 [3+]  23 [4+]  20 [5+]   0
Hits/KSLOC@level+ = [0+] 36.1511 [1+] 17.9673 [2+] 12.1225 [3+] 2.48945 [4+] 2.16474 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.