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/weston-9.0.0/clients/calibrator.c
Examining data/weston-9.0.0/clients/clickdot.c
Examining data/weston-9.0.0/clients/cliptest.c
Examining data/weston-9.0.0/clients/confine.c
Examining data/weston-9.0.0/clients/content_protection.c
Examining data/weston-9.0.0/clients/desktop-shell.c
Examining data/weston-9.0.0/clients/dnd.c
Examining data/weston-9.0.0/clients/editor.c
Examining data/weston-9.0.0/clients/eventdemo.c
Examining data/weston-9.0.0/clients/flower.c
Examining data/weston-9.0.0/clients/fullscreen.c
Examining data/weston-9.0.0/clients/gears.c
Examining data/weston-9.0.0/clients/image.c
Examining data/weston-9.0.0/clients/ivi-shell-user-interface.c
Examining data/weston-9.0.0/clients/keyboard.c
Examining data/weston-9.0.0/clients/multi-resource.c
Examining data/weston-9.0.0/clients/nested-client.c
Examining data/weston-9.0.0/clients/nested.c
Examining data/weston-9.0.0/clients/presentation-shm.c
Examining data/weston-9.0.0/clients/resizor.c
Examining data/weston-9.0.0/clients/scaler.c
Examining data/weston-9.0.0/clients/screenshot.c
Examining data/weston-9.0.0/clients/simple-damage.c
Examining data/weston-9.0.0/clients/simple-dmabuf-egl.c
Examining data/weston-9.0.0/clients/simple-dmabuf-v4l.c
Examining data/weston-9.0.0/clients/simple-egl.c
Examining data/weston-9.0.0/clients/simple-im.c
Examining data/weston-9.0.0/clients/simple-shm.c
Examining data/weston-9.0.0/clients/simple-touch.c
Examining data/weston-9.0.0/clients/smoke.c
Examining data/weston-9.0.0/clients/stacking.c
Examining data/weston-9.0.0/clients/subsurfaces.c
Examining data/weston-9.0.0/clients/terminal.c
Examining data/weston-9.0.0/clients/touch-calibrator.c
Examining data/weston-9.0.0/clients/transformed.c
Examining data/weston-9.0.0/clients/weston-debug.c
Examining data/weston-9.0.0/clients/weston-info.c
Examining data/weston-9.0.0/clients/window.c
Examining data/weston-9.0.0/clients/window.h
Examining data/weston-9.0.0/compositor/cms-colord.c
Examining data/weston-9.0.0/compositor/cms-helper.c
Examining data/weston-9.0.0/compositor/cms-helper.h
Examining data/weston-9.0.0/compositor/cms-static.c
Examining data/weston-9.0.0/compositor/executable.c
Examining data/weston-9.0.0/compositor/main.c
Examining data/weston-9.0.0/compositor/screen-share.c
Examining data/weston-9.0.0/compositor/systemd-notify.c
Examining data/weston-9.0.0/compositor/testsuite-util.c
Examining data/weston-9.0.0/compositor/text-backend.c
Examining data/weston-9.0.0/compositor/weston-screenshooter.c
Examining data/weston-9.0.0/compositor/weston.h
Examining data/weston-9.0.0/compositor/xwayland.c
Examining data/weston-9.0.0/desktop-shell/exposay.c
Examining data/weston-9.0.0/desktop-shell/input-panel.c
Examining data/weston-9.0.0/desktop-shell/shell.c
Examining data/weston-9.0.0/desktop-shell/shell.h
Examining data/weston-9.0.0/fullscreen-shell/fullscreen-shell.c
Examining data/weston-9.0.0/include/libweston/backend-drm.h
Examining data/weston-9.0.0/include/libweston/backend-fbdev.h
Examining data/weston-9.0.0/include/libweston/backend-headless.h
Examining data/weston-9.0.0/include/libweston/backend-rdp.h
Examining data/weston-9.0.0/include/libweston/backend-wayland.h
Examining data/weston-9.0.0/include/libweston/backend-x11.h
Examining data/weston-9.0.0/include/libweston/config-parser.h
Examining data/weston-9.0.0/include/libweston/libweston.h
Examining data/weston-9.0.0/include/libweston/matrix.h
Examining data/weston-9.0.0/include/libweston/plugin-registry.h
Examining data/weston-9.0.0/include/libweston/weston-log.h
Examining data/weston-9.0.0/include/libweston/windowed-output-api.h
Examining data/weston-9.0.0/include/libweston/xwayland-api.h
Examining data/weston-9.0.0/include/libweston/zalloc.h
Examining data/weston-9.0.0/include/libweston-desktop/libweston-desktop.h
Examining data/weston-9.0.0/ivi-shell/hmi-controller.c
Examining data/weston-9.0.0/ivi-shell/ivi-layout-export.h
Examining data/weston-9.0.0/ivi-shell/ivi-layout-private.h
Examining data/weston-9.0.0/ivi-shell/ivi-layout-shell.h
Examining data/weston-9.0.0/ivi-shell/ivi-layout-transition.c
Examining data/weston-9.0.0/ivi-shell/ivi-layout.c
Examining data/weston-9.0.0/ivi-shell/ivi-shell.c
Examining data/weston-9.0.0/ivi-shell/ivi-shell.h
Examining data/weston-9.0.0/kiosk-shell/kiosk-shell-grab.c
Examining data/weston-9.0.0/kiosk-shell/kiosk-shell-grab.h
Examining data/weston-9.0.0/kiosk-shell/kiosk-shell.c
Examining data/weston-9.0.0/kiosk-shell/kiosk-shell.h
Examining data/weston-9.0.0/kiosk-shell/util.c
Examining data/weston-9.0.0/kiosk-shell/util.h
Examining data/weston-9.0.0/libweston/animation.c
Examining data/weston-9.0.0/libweston/backend-drm/drm-gbm.c
Examining data/weston-9.0.0/libweston/backend-drm/drm-internal.h
Examining data/weston-9.0.0/libweston/backend-drm/drm-virtual.c
Examining data/weston-9.0.0/libweston/backend-drm/drm.c
Examining data/weston-9.0.0/libweston/backend-drm/fb.c
Examining data/weston-9.0.0/libweston/backend-drm/kms.c
Examining data/weston-9.0.0/libweston/backend-drm/libbacklight.c
Examining data/weston-9.0.0/libweston/backend-drm/libbacklight.h
Examining data/weston-9.0.0/libweston/backend-drm/modes.c
Examining data/weston-9.0.0/libweston/backend-drm/state-helpers.c
Examining data/weston-9.0.0/libweston/backend-drm/state-propose.c
Examining data/weston-9.0.0/libweston/backend-drm/vaapi-recorder.c
Examining data/weston-9.0.0/libweston/backend-drm/vaapi-recorder.h
Examining data/weston-9.0.0/libweston/backend-fbdev/fbdev.c
Examining data/weston-9.0.0/libweston/backend-headless/headless.c
Examining data/weston-9.0.0/libweston/backend-rdp/rdp.c
Examining data/weston-9.0.0/libweston/backend-wayland/wayland.c
Examining data/weston-9.0.0/libweston/backend-x11/x11.c
Examining data/weston-9.0.0/libweston/backend.h
Examining data/weston-9.0.0/libweston/bindings.c
Examining data/weston-9.0.0/libweston/clipboard.c
Examining data/weston-9.0.0/libweston/compositor.c
Examining data/weston-9.0.0/libweston/content-protection.c
Examining data/weston-9.0.0/libweston/data-device.c
Examining data/weston-9.0.0/libweston/dbus.c
Examining data/weston-9.0.0/libweston/dbus.h
Examining data/weston-9.0.0/libweston/input.c
Examining data/weston-9.0.0/libweston/launcher-direct.c
Examining data/weston-9.0.0/libweston/launcher-impl.h
Examining data/weston-9.0.0/libweston/launcher-logind.c
Examining data/weston-9.0.0/libweston/launcher-util.c
Examining data/weston-9.0.0/libweston/launcher-util.h
Examining data/weston-9.0.0/libweston/launcher-weston-launch.c
Examining data/weston-9.0.0/libweston/libinput-device.c
Examining data/weston-9.0.0/libweston/libinput-device.h
Examining data/weston-9.0.0/libweston/libinput-seat.c
Examining data/weston-9.0.0/libweston/libinput-seat.h
Examining data/weston-9.0.0/libweston/libweston-internal.h
Examining data/weston-9.0.0/libweston/linux-dmabuf.c
Examining data/weston-9.0.0/libweston/linux-dmabuf.h
Examining data/weston-9.0.0/libweston/linux-explicit-synchronization.c
Examining data/weston-9.0.0/libweston/linux-explicit-synchronization.h
Examining data/weston-9.0.0/libweston/linux-sync-file-uapi.h
Examining data/weston-9.0.0/libweston/linux-sync-file.c
Examining data/weston-9.0.0/libweston/linux-sync-file.h
Examining data/weston-9.0.0/libweston/log.c
Examining data/weston-9.0.0/libweston/noop-renderer.c
Examining data/weston-9.0.0/libweston/pixel-formats.c
Examining data/weston-9.0.0/libweston/pixel-formats.h
Examining data/weston-9.0.0/libweston/pixman-renderer.c
Examining data/weston-9.0.0/libweston/pixman-renderer.h
Examining data/weston-9.0.0/libweston/plugin-registry.c
Examining data/weston-9.0.0/libweston/renderer-gl/egl-glue.c
Examining data/weston-9.0.0/libweston/renderer-gl/gl-renderer-internal.h
Examining data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c
Examining data/weston-9.0.0/libweston/renderer-gl/gl-renderer.h
Examining data/weston-9.0.0/libweston/screenshooter.c
Examining data/weston-9.0.0/libweston/spring-tool.c
Examining data/weston-9.0.0/libweston/timeline.c
Examining data/weston-9.0.0/libweston/timeline.h
Examining data/weston-9.0.0/libweston/touch-calibration.c
Examining data/weston-9.0.0/libweston/vertex-clipping.c
Examining data/weston-9.0.0/libweston/vertex-clipping.h
Examining data/weston-9.0.0/libweston/weston-direct-display.c
Examining data/weston-9.0.0/libweston/weston-launch.c
Examining data/weston-9.0.0/libweston/weston-launch.h
Examining data/weston-9.0.0/libweston/weston-log-file.c
Examining data/weston-9.0.0/libweston/weston-log-flight-rec.c
Examining data/weston-9.0.0/libweston/weston-log-internal.h
Examining data/weston-9.0.0/libweston/weston-log-wayland.c
Examining data/weston-9.0.0/libweston/weston-log.c
Examining data/weston-9.0.0/libweston/zoom.c
Examining data/weston-9.0.0/libweston-desktop/client.c
Examining data/weston-9.0.0/libweston-desktop/internal.h
Examining data/weston-9.0.0/libweston-desktop/libweston-desktop.c
Examining data/weston-9.0.0/libweston-desktop/seat.c
Examining data/weston-9.0.0/libweston-desktop/surface.c
Examining data/weston-9.0.0/libweston-desktop/wl-shell.c
Examining data/weston-9.0.0/libweston-desktop/xdg-shell-v6.c
Examining data/weston-9.0.0/libweston-desktop/xdg-shell.c
Examining data/weston-9.0.0/libweston-desktop/xwayland.c
Examining data/weston-9.0.0/pipewire/pipewire-plugin.c
Examining data/weston-9.0.0/pipewire/pipewire-plugin.h
Examining data/weston-9.0.0/remoting/remoting-plugin.c
Examining data/weston-9.0.0/remoting/remoting-plugin.h
Examining data/weston-9.0.0/shared/cairo-util.c
Examining data/weston-9.0.0/shared/cairo-util.h
Examining data/weston-9.0.0/shared/config-parser.c
Examining data/weston-9.0.0/shared/fd-util.h
Examining data/weston-9.0.0/shared/file-util.c
Examining data/weston-9.0.0/shared/file-util.h
Examining data/weston-9.0.0/shared/frame.c
Examining data/weston-9.0.0/shared/helpers.h
Examining data/weston-9.0.0/shared/image-loader.c
Examining data/weston-9.0.0/shared/image-loader.h
Examining data/weston-9.0.0/shared/matrix.c
Examining data/weston-9.0.0/shared/option-parser.c
Examining data/weston-9.0.0/shared/os-compatibility.c
Examining data/weston-9.0.0/shared/os-compatibility.h
Examining data/weston-9.0.0/shared/platform.h
Examining data/weston-9.0.0/shared/string-helpers.h
Examining data/weston-9.0.0/shared/timespec-util.h
Examining data/weston-9.0.0/shared/weston-egl-ext.h
Examining data/weston-9.0.0/shared/xalloc.c
Examining data/weston-9.0.0/shared/xalloc.h
Examining data/weston-9.0.0/tests/bad-buffer-test.c
Examining data/weston-9.0.0/tests/buffer-transforms-test.c
Examining data/weston-9.0.0/tests/config-parser-test.c
Examining data/weston-9.0.0/tests/devices-test.c
Examining data/weston-9.0.0/tests/drm-smoke-test.c
Examining data/weston-9.0.0/tests/event-test.c
Examining data/weston-9.0.0/tests/input-timestamps-helper.c
Examining data/weston-9.0.0/tests/input-timestamps-helper.h
Examining data/weston-9.0.0/tests/internal-screenshot-test.c
Examining data/weston-9.0.0/tests/ivi-layout-internal-test.c
Examining data/weston-9.0.0/tests/ivi-layout-test-client.c
Examining data/weston-9.0.0/tests/ivi-layout-test-plugin.c
Examining data/weston-9.0.0/tests/ivi-shell-app-test.c
Examining data/weston-9.0.0/tests/ivi-test.h
Examining data/weston-9.0.0/tests/keyboard-test.c
Examining data/weston-9.0.0/tests/linux-explicit-synchronization-test.c
Examining data/weston-9.0.0/tests/matrix-test.c
Examining data/weston-9.0.0/tests/output-transforms-test.c
Examining data/weston-9.0.0/tests/plugin-registry-test.c
Examining data/weston-9.0.0/tests/pointer-test.c
Examining data/weston-9.0.0/tests/presentation-test.c
Examining data/weston-9.0.0/tests/roles-test.c
Examining data/weston-9.0.0/tests/setbacklight.c
Examining data/weston-9.0.0/tests/string-test.c
Examining data/weston-9.0.0/tests/subsurface-shot-test.c
Examining data/weston-9.0.0/tests/subsurface-test.c
Examining data/weston-9.0.0/tests/surface-global-test.c
Examining data/weston-9.0.0/tests/surface-screenshot-test.c
Examining data/weston-9.0.0/tests/surface-test.c
Examining data/weston-9.0.0/tests/text-test.c
Examining data/weston-9.0.0/tests/timespec-test.c
Examining data/weston-9.0.0/tests/touch-test.c
Examining data/weston-9.0.0/tests/vertex-clip-test.c
Examining data/weston-9.0.0/tests/viewporter-shot-test.c
Examining data/weston-9.0.0/tests/viewporter-test.c
Examining data/weston-9.0.0/tests/weston-test-client-helper.c
Examining data/weston-9.0.0/tests/weston-test-client-helper.h
Examining data/weston-9.0.0/tests/weston-test-desktop-shell.c
Examining data/weston-9.0.0/tests/weston-test-fixture-compositor.c
Examining data/weston-9.0.0/tests/weston-test-fixture-compositor.h
Examining data/weston-9.0.0/tests/weston-test-runner.c
Examining data/weston-9.0.0/tests/weston-test-runner.h
Examining data/weston-9.0.0/tests/weston-test.c
Examining data/weston-9.0.0/tests/weston-testsuite-data.h
Examining data/weston-9.0.0/tests/xwayland-test.c
Examining data/weston-9.0.0/tools/zunitc/inc/zunitc/zunitc.h
Examining data/weston-9.0.0/tools/zunitc/inc/zunitc/zunitc_impl.h
Examining data/weston-9.0.0/tools/zunitc/src/main.c
Examining data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c
Examining data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_collector.c
Examining data/weston-9.0.0/tools/zunitc/src/zuc_collector.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_context.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_event.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_event_listener.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_junit_reporter.c
Examining data/weston-9.0.0/tools/zunitc/src/zuc_junit_reporter.h
Examining data/weston-9.0.0/tools/zunitc/src/zuc_types.h
Examining data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c
Examining data/weston-9.0.0/tools/zunitc/test/fixtures_test.c
Examining data/weston-9.0.0/tools/zunitc/test/zunitc_test.c
Examining data/weston-9.0.0/wcap/main.c
Examining data/weston-9.0.0/wcap/wcap-decode.c
Examining data/weston-9.0.0/wcap/wcap-decode.h
Examining data/weston-9.0.0/xwayland/dnd.c
Examining data/weston-9.0.0/xwayland/hash.c
Examining data/weston-9.0.0/xwayland/hash.h
Examining data/weston-9.0.0/xwayland/launcher.c
Examining data/weston-9.0.0/xwayland/selection.c
Examining data/weston-9.0.0/xwayland/window-manager.c
Examining data/weston-9.0.0/xwayland/xwayland-internal-interface.h
Examining data/weston-9.0.0/xwayland/xwayland.h

FINAL RESULTS:

data/weston-9.0.0/libweston/backend-drm/libbacklight.c:177:8:  [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.
	ret = readlink(path, buffer, sizeof(buffer) - 1);
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:261:9:  [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.
		ret = readlink(path, buffer, sizeof(buffer) - 1);
data/weston-9.0.0/clients/editor.c:835: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(text + entry->cursor, entry->preedit.text);
data/weston-9.0.0/clients/editor.c:836: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(text + entry->cursor + strlen(entry->preedit.text),
data/weston-9.0.0/clients/editor.c:921:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(new_text + entry->cursor, text);
data/weston-9.0.0/clients/editor.c:922:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(new_text + entry->cursor + strlen(text),
data/weston-9.0.0/clients/fullscreen.c:92:2:  [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.
	vsnprintf(buffer, sizeof(buffer), fmt, argp);
data/weston-9.0.0/clients/keyboard.c:273:37:  [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.
static void __attribute__ ((format (printf, 1, 2)))
data/weston-9.0.0/clients/keyboard.c:280:2:  [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, argp);
data/weston-9.0.0/clients/nested.c:367:3:  [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(path, path, NULL);
data/weston-9.0.0/clients/simple-damage.c:516:3:  [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,
data/weston-9.0.0/clients/simple-dmabuf-egl.c:955:3:  [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,
data/weston-9.0.0/clients/simple-shm.c:311:3:  [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,
data/weston-9.0.0/clients/stacking.c:212:2:  [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.
	vsnprintf(buffer, sizeof(buffer), fmt, argp);
data/weston-9.0.0/clients/subsurfaces.c:52:2:  [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, "%d:%s " fmt, __LINE__, __func__, ##__VA_ARGS__)
data/weston-9.0.0/clients/subsurfaces.c:786:3:  [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(help_text, argv[0]);
data/weston-9.0.0/clients/terminal.c:3090: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.
		if (execl(path, path, NULL)) {
data/weston-9.0.0/clients/touch-calibrator.c:58:3:  [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(__VA_ARGS__); \
data/weston-9.0.0/clients/touch-calibrator.c:63:3:  [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/weston-9.0.0/clients/touch-calibrator.c:873:2:  [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, argp);
data/weston-9.0.0/clients/weston-info.c:432:3:  [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("\n\t'%s'(0x%08x), modifier: 0x%016"PRIx64, str, modifier->format, modifier->modifier);
data/weston-9.0.0/clients/window.c:464:25:  [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.
__attribute__ ((format (printf, 4, 5)));
data/weston-9.0.0/clients/window.c:484:2:  [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/weston-9.0.0/clients/window.c:6225:2:  [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, format, args);
data/weston-9.0.0/compositor/main.c:406:6:  [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.
	if (execl(path, path, NULL) < 0)
data/weston-9.0.0/compositor/main.c:1018:11:  [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.
	status = system(helper_cmd);
data/weston-9.0.0/compositor/main.c:3190:3:  [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(PACKAGE_STRING "\n");
data/weston-9.0.0/compositor/screen-share.c:1109:3:  [4] (shell) execv:
  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.
		execv(argv[0], argv);
data/weston-9.0.0/compositor/xwayland.c:122: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.
		if (execl(xserver,
data/weston-9.0.0/include/libweston/libweston.h:1830:26:  [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.
	__attribute__ ((format (printf, 1, 2)));
data/weston-9.0.0/include/libweston/libweston.h:1833:26:  [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.
	__attribute__ ((format (printf, 1, 2)));
data/weston-9.0.0/include/libweston/weston-log.h:98:30:  [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.
			  __attribute__ ((format (printf, 2, 3)));
data/weston-9.0.0/include/libweston/weston-log.h:102:30:  [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.
			  __attribute__ ((format (printf, 2, 3)));
data/weston-9.0.0/libweston/launcher-weston-launch.c:131:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(message->path, path);
data/weston-9.0.0/libweston/weston-launch.c:783:2:  [4] (shell) execv:
  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.
	execv(child_argv[0], child_argv);
data/weston-9.0.0/pipewire/pipewire-plugin.c:135:2:  [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(fp, fmt, ap);
data/weston-9.0.0/shared/os-compatibility.c:194: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(name, path);
data/weston-9.0.0/shared/os-compatibility.c:195:3:  [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(name, template);
data/weston-9.0.0/tests/bad-buffer-test.c:107:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(name, path);
data/weston-9.0.0/tests/bad-buffer-test.c:108: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(name, template);
data/weston-9.0.0/tests/weston-test-client-helper.c:869:2:  [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, argp);
data/weston-9.0.0/tests/weston-test-client-helper.c:929:2:  [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, args);
data/weston-9.0.0/tests/weston-test-runner.c:104:2:  [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, argp);
data/weston-9.0.0/tests/xwayland-test.c:69:6:  [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(XSERVER_PATH, X_OK) != 0)
data/weston-9.0.0/tools/zunitc/inc/zunitc/zunitc_impl.h:92:26:  [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.
	__attribute__ ((format (printf, 3, 4)));
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:137:4:  [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(CSI_GRN);
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:140:4:  [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(CSI_YLW);
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:143:4:  [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(CSI_RED);
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:150:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, argp);
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:154:3:  [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(CSI_RST);
data/weston-9.0.0/xwayland/window-manager.c:205:37:  [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.
static void __attribute__ ((format (printf, 2, 3)))
data/weston-9.0.0/xwayland/window-manager.c:387:3:  [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(fp, "%s%" PRIu32, comma, ((uint32_t *)arr)[ind]);
data/weston-9.0.0/xwayland/window-manager.c:390:3:  [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(fp, "%s%" PRIu16, comma, ((uint16_t *)arr)[ind]);
data/weston-9.0.0/xwayland/window-manager.c:393:3:  [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(fp, "%s%" PRIu8, comma, ((uint8_t *)arr)[ind]);
data/weston-9.0.0/clients/calibrator.c:278:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "mh", opts, NULL)) != -1) {
data/weston-9.0.0/clients/dnd.c:115:2:  [3] (random) srandom:
  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.
	srandom(item->seed);
data/weston-9.0.0/clients/dnd.c:117:30:  [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.
	const int petal_count = 3 + random() % 5;
data/weston-9.0.0/clients/dnd.c:118:25:  [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.
	const double r1 = 20 + random() % 10;
data/weston-9.0.0/clients/dnd.c:119: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.
	const double r2 = 5 + random() % 12;
data/weston-9.0.0/clients/dnd.c:120:25:  [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.
	const double u = (10 + random() % 90) / 100.0;
data/weston-9.0.0/clients/dnd.c:121:20:  [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.
	const double v = (random() % 90) / 100.0;
data/weston-9.0.0/clients/dnd.c:145:6:  [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.
	t = random();
data/weston-9.0.0/clients/dnd.c:169:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:170:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:171:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:172:17:  [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.
			      0.5 + (random() % 100) / 99.0);
data/weston-9.0.0/clients/dnd.c:178:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:179:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:180:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/dnd.c:181:17:  [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.
			      0.5 + (random() % 100) / 99.0);
data/weston-9.0.0/clients/flower.c:51:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/flower.c:52:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/flower.c:53:17:  [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.
			      0.5 + (random() % 50) / 49.0,
data/weston-9.0.0/clients/flower.c:54:17:  [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.
			      0.5 + (random() % 100) / 99.0);
data/weston-9.0.0/clients/flower.c:61:30:  [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.
	const int petal_count = 3 + random() % 5;
data/weston-9.0.0/clients/flower.c:62:25:  [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.
	const double r1 = 60 + random() % 35;
data/weston-9.0.0/clients/flower.c:63:25:  [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.
	const double r2 = 20 + random() % 40;
data/weston-9.0.0/clients/flower.c:64:25:  [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.
	const double u = (10 + random() % 90) / 100.0;
data/weston-9.0.0/clients/flower.c:65:20:  [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.
	const double v = (random() % 90) / 100.0;
data/weston-9.0.0/clients/flower.c:182:2:  [3] (random) srandom:
  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.
	srandom(tv.tv_usec);
data/weston-9.0.0/clients/ivi-shell-user-interface.c:156:28:  [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.
	struct hmi_homescreen_srf random;
data/weston-9.0.0/clients/ivi-shell-user-interface.c:364:40:  [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.
	} else if (id_surface == hmi_setting->random.id) {
data/weston-9.0.0/clients/ivi-shell-user-interface.c:1149:43:  [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.
		shellSection, "random-image", &setting->random.filePath,
data/weston-9.0.0/clients/ivi-shell-user-interface.c:1154:40:  [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.
		shellSection, "random-id", &setting->random.id, 1006);
data/weston-9.0.0/clients/ivi-shell-user-interface.c:1312:46:  [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.
	create_button(&wlCtx_Button_4, hmi_setting->random.id,
data/weston-9.0.0/clients/ivi-shell-user-interface.c:1313:22:  [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.
		      hmi_setting->random.filePath, 3);
data/weston-9.0.0/clients/nested-client.c:358:6:  [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("WAYLAND_SOCKET") == NULL) {
data/weston-9.0.0/clients/scaler.c:298:2:  [3] (random) srandom:
  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.
	srandom(tv.tv_usec);
data/weston-9.0.0/clients/screenshot.c:237:25:  [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.
	fp = file_create_dated(getenv("XDG_PICTURES_DIR"), "wayland-screenshot-",
data/weston-9.0.0/clients/simple-damage.c:201:2:  [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(tv.tv_usec);
data/weston-9.0.0/clients/simple-dmabuf-egl.c:1502:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "hi:d:s:e:mg",
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:1004:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "hiv:d:f:g", long_options,
data/weston-9.0.0/clients/smoke.c:236: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.
			smoke->b[0].u[k] += 256 - (random() & 512);
data/weston-9.0.0/clients/smoke.c:237: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.
			smoke->b[0].v[k] += 256 - (random() & 512);
data/weston-9.0.0/clients/smoke.c:291:2:  [3] (random) srandom:
  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.
	srandom(ts.tv_nsec);
data/weston-9.0.0/clients/terminal.c:3139:17:  [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.
	option_shell = getenv("SHELL");
data/weston-9.0.0/clients/touch-calibrator.c:911:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "hv", opts, NULL)) != -1) {
data/weston-9.0.0/clients/weston-debug.c:346:7:  [3] (buffer) getopt_long:
  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.
		c = getopt_long(argc, argv, optstr, opts, NULL);
data/weston-9.0.0/clients/window.c:1336:10:  [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.
	theme = getenv("XCURSOR_THEME");
data/weston-9.0.0/clients/window.c:1338:13:  [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.
	size_str = getenv("XCURSOR_SIZE");
data/weston-9.0.0/clients/window.c:3048:17:  [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 (!(locale = getenv("LC_ALL")))
data/weston-9.0.0/clients/window.c:3049:18:  [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 (!(locale = getenv("LC_CTYPE")))
data/weston-9.0.0/clients/window.c:3050:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			if (!(locale = getenv("LANG")))
data/weston-9.0.0/clients/window.c:4253:31:  [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.
			"%s (XDG_RUNTIME_DIR).\n", getenv("XDG_RUNTIME_DIR"));
data/weston-9.0.0/clients/window.c:5230:31:  [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 (display->argb_device && !getenv("TOYTOOLKIT_NO_EGL"))
data/weston-9.0.0/compositor/main.c:597:14:  [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 *dir = getenv("XDG_RUNTIME_DIR");
data/weston-9.0.0/compositor/main.c:1107:6:  [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("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET"))
data/weston-9.0.0/compositor/main.c:1107:35:  [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("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET"))
data/weston-9.0.0/compositor/main.c:1109:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (getenv("DISPLAY"))
data/weston-9.0.0/compositor/main.c:3330:18:  [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.
	server_socket = getenv("WAYLAND_SERVER_SOCKET");
data/weston-9.0.0/compositor/systemd-notify.c:145:22:  [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.
	watchdog_time_env = getenv("WATCHDOG_USEC");
data/weston-9.0.0/desktop-shell/shell.c:4321:39:  [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.
		weston_view_set_position(view, 10 + random() % 400,
data/weston-9.0.0/desktop-shell/shell.c:4322: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.
					 10 + random() % 400);
data/weston-9.0.0/desktop-shell/shell.c:4338:8:  [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.
		x += random() % range_x;
data/weston-9.0.0/desktop-shell/shell.c:4341:8:  [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.
		y += random() % range_y;
data/weston-9.0.0/libweston/backend-drm/drm.c:2839:17:  [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.
	session_seat = getenv("XDG_SEAT");
data/weston-9.0.0/libweston/backend-drm/kms.c:1466:7:  [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("WESTON_DISABLE_UNIVERSAL_PLANES")) {
data/weston-9.0.0/libweston/backend-drm/kms.c:1471:30:  [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 (b->universal_planes && !getenv("WESTON_DISABLE_ATOMIC")) {
data/weston-9.0.0/libweston/backend-drm/kms.c:1481:7:  [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("WESTON_DISABLE_GBM_MODIFIERS")) {
data/weston-9.0.0/libweston/backend-drm/kms.c:1497:28:  [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 (!b->atomic_modeset || getenv("WESTON_FORCE_RENDERER"))
data/weston-9.0.0/libweston/backend-fbdev/fbdev.c:889:17:  [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.
	session_seat = getenv("XDG_SEAT");
data/weston-9.0.0/libweston/backend-rdp/rdp.c:1432:12:  [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.
		fd_str = getenv("RDP_FD");
data/weston-9.0.0/libweston/backend-wayland/wayland.c:2753: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.
				    getenv("WAYLAND_DISPLAY") ?: "(not set)");
data/weston-9.0.0/libweston/compositor.c:7664:24:  [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.
	const char *mapping = getenv("WESTON_MODULE_MAP");
data/weston-9.0.0/libweston/launcher-weston-launch.c:255:6:  [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.
	e = getenv(env);
data/weston-9.0.0/libweston/libinput-seat.c:335:17:  [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.
	log_priority = getenv("WESTON_LIBINPUT_LOG_PRIORITY");
data/weston-9.0.0/libweston/weston-launch.c:704: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.
	term = getenv("TERM");
data/weston-9.0.0/libweston/weston-launch.c:816:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "u:t:vh", opts, &i)) != -1) {
data/weston-9.0.0/shared/config-parser.c:66:28:  [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.
	const char *config_dir  = getenv("XDG_CONFIG_HOME");
data/weston-9.0.0/shared/config-parser.c:67:25:  [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.
	const char *home_dir	= getenv("HOME");
data/weston-9.0.0/shared/config-parser.c:68:28:  [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.
	const char *config_dirs = getenv("XDG_CONFIG_DIRS");
data/weston-9.0.0/shared/config-parser.c:335: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.
	name = getenv(WESTON_CONFIG_FILE_ENV_VAR);
data/weston-9.0.0/shared/file-util.c:133:21:  [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.
	const char *base = getenv("WESTON_DATA_DIR");
data/weston-9.0.0/shared/os-compatibility.c:184:10:  [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.
		path = getenv("XDG_RUNTIME_DIR");
data/weston-9.0.0/tests/bad-buffer-test.c:97: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.
	path = getenv("XDG_RUNTIME_DIR");
data/weston-9.0.0/tests/matrix-test.c:171:13:  [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.
	double r = random();
data/weston-9.0.0/tests/matrix-test.c:388:2:  [3] (random) srandom:
  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.
	srandom(13);
data/weston-9.0.0/tests/weston-test-client-helper.c:1082:15:  [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 *path = getenv("WESTON_TEST_OUTPUT_PATH");
data/weston-9.0.0/tests/weston-test-client-helper.c:1104:15:  [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 *path = getenv("WESTON_TEST_REFERENCE_PATH");
data/weston-9.0.0/tests/weston-test-fixture-compositor.c:103:13:  [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.
	env_path = getenv("XDG_RUNTIME_DIR");
data/weston-9.0.0/tests/weston-test-fixture-compositor.c:345:16:  [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.
		drm_device = getenv("WESTON_TEST_SUITE_DRM_DEVICE");
data/weston-9.0.0/tests/weston-test-runner.c:335:14:  [3] (buffer) getopt_long:
  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_long(argc, argv, "f:hl", opts, NULL)) != -1) {
data/weston-9.0.0/tools/zunitc/inc/zunitc/zunitc.h:240:20:  [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.
zuc_set_random(int random);
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:169:6:  [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.
		&& getenv("TERM") && strcmp(getenv("TERM"), "dumb");
data/weston-9.0.0/tools/zunitc/src/zuc_base_logger.c:169:31:  [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.
		&& getenv("TERM") && strcmp(getenv("TERM"), "dumb");
data/weston-9.0.0/tools/zunitc/src/zuc_context.h:43:6:  [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.
	int random;
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:139:20:  [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.
zuc_set_random(int random)
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:141:17:  [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.
	g_ctx.random = random;
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:509: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.
	if (g_ctx.random > 1) {
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:510:22:  [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.
		g_ctx.seed = g_ctx.random;
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:1331:13:  [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.
				 (g_ctx.random > 0) ? g_ctx.seed : 0,
data/weston-9.0.0/tools/zunitc/src/zunitc_impl.c:1335:13:  [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.
		if (g_ctx.random > 0)
data/weston-9.0.0/xwayland/window-manager.c:354:6:  [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.
	v = getenv ("XCURSOR_SIZE");
data/weston-9.0.0/clients/cliptest.c:226: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 str[16];
data/weston-9.0.0/clients/cliptest.c:239: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 str[64];
data/weston-9.0.0/clients/desktop-shell.c:391:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string[128];
data/weston-9.0.0/clients/dnd.c:337: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[128];
data/weston-9.0.0/clients/editor.c:127:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[16];
data/weston-9.0.0/clients/editor.c:150:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[16];
data/weston-9.0.0/clients/editor.c:463: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 text[16];
data/weston-9.0.0/clients/editor.c:1404:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[16];
data/weston-9.0.0/clients/editor.c:1561: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).
	fin = fopen(filename, "r");
data/weston-9.0.0/clients/fullscreen.c:75: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[4096];
data/weston-9.0.0/clients/fullscreen.c:511:23:  [2] (integer) atol:
  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).
			fullscreen.width = atol(argv[i]);
data/weston-9.0.0/clients/fullscreen.c:516:24:  [2] (integer) atol:
  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).
			fullscreen.height = atol(argv[i]);
data/weston-9.0.0/clients/image.c:363: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 *b, *copy, title[512];
data/weston-9.0.0/clients/ivi-shell-user-interface.c:895:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p_wlCtx->data, data, stride * height);
data/weston-9.0.0/clients/keyboard.c:417:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_text, text, offset);
data/weston-9.0.0/clients/keyboard.c:418:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_text + offset, insert, ilen);
data/weston-9.0.0/clients/keyboard.c:419:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_text + offset + ilen, text + offset, tlen - offset);
data/weston-9.0.0/clients/keyboard.c:529:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(s + len1, s2, len2);
data/weston-9.0.0/clients/nested-client.c:81: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 log[1000];
data/weston-9.0.0/clients/nested-client.c:111: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 log[1000];
data/weston-9.0.0/clients/nested.c:353: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 s[32];
data/weston-9.0.0/clients/presentation-shm.c:236: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 title[128];
data/weston-9.0.0/clients/presentation-shm.c:454: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 flagstr[10];
data/weston-9.0.0/clients/presentation-shm.c:920:25:  [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).
			commit_delay_msecs = atoi(argv[i]);
data/weston-9.0.0/clients/screenshot.c:208: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 filepath[PATH_MAX];
data/weston-9.0.0/clients/screenshot.c:223:4:  [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(d, s, output_stride);
data/weston-9.0.0/clients/simple-dmabuf-egl.c:562: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 log[1000];
data/weston-9.0.0/clients/simple-dmabuf-egl.c:586: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 log[1000];
data/weston-9.0.0/clients/simple-dmabuf-egl.c:1345:24:  [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).
	display->gbm.drm_fd = open(drm_render_node, O_RDWR);
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:78:20:  [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.
parse_format(const char fmt[4])
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:83:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline const char *
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:84:30:  [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.
dump_format(uint32_t format, char out[4])
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:89:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, &format, 4);
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:207: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[4];
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:260:20:  [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).
	display->v4l_fd = open(dev_name, O_RDWR);
data/weston-9.0.0/clients/simple-dmabuf-v4l.c:499: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[4];
data/weston-9.0.0/clients/simple-egl.c:243: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 log[1000];
data/weston-9.0.0/clients/simple-egl.c:272: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 log[1000];
data/weston-9.0.0/clients/simple-egl.c:827:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			window.delay = atoi(argv[++i]);
data/weston-9.0.0/clients/simple-im.c:385:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[64];
data/weston-9.0.0/clients/stacking.c:195: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[4096];
data/weston-9.0.0/clients/subsurfaces.c:296: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 log[1000];
data/weston-9.0.0/clients/subsurfaces.c:325: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 log[1000];
data/weston-9.0.0/clients/terminal.c:104: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 byte[4];
data/weston-9.0.0/clients/terminal.c:463: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 escape[MAX_ESCAPE+1];
data/weston-9.0.0/clients/terminal.c:675:4:  [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(terminal_get_row(terminal, to_row - i),
data/weston-9.0.0/clients/terminal.c:678:4:  [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(terminal_get_attr_row(terminal, to_row - i),
data/weston-9.0.0/clients/terminal.c:692:4:  [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(terminal_get_row(terminal, to_row + i),
data/weston-9.0.0/clients/terminal.c:695:4:  [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(terminal_get_attr_row(terminal, to_row + i),
data/weston-9.0.0/clients/terminal.c:809: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[width * i],
data/weston-9.0.0/clients/terminal.c:812: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_attr[width * i],
data/weston-9.0.0/clients/terminal.c:964:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			len = strnlen((char *) p_row[col].byte, 4);
data/weston-9.0.0/clients/terminal.c:1326: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 response[MAX_RESPONSE] = {0, };
data/weston-9.0.0/clients/terminal.c:2376: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 ch[MAX_RESPONSE];
data/weston-9.0.0/clients/terminal.c:3040: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[256];
data/weston-9.0.0/clients/transformed.c:255:24:  [2] (integer) atol:
  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).
			transformed.width = atol(argv[i]);
data/weston-9.0.0/clients/transformed.c:260:25:  [2] (integer) atol:
  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).
			transformed.height = atol(argv[i]);
data/weston-9.0.0/clients/weston-debug.c:275: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(output,
data/weston-9.0.0/clients/weston-debug.c:285: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).
		fd = atoi(outfd);
data/weston-9.0.0/clients/weston-info.c:391: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 str[5];
data/weston-9.0.0/clients/weston-info.c:422: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 str[5];
data/weston-9.0.0/clients/weston-info.c:1082:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(info->buttons, buttons->data, buttons->size);
data/weston-9.0.0/clients/window.c:988: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 bufs[MAX_LEAVES + 1];
data/weston-9.0.0/clients/window.c:4005: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[4096];
data/weston-9.0.0/compositor/cms-colord.c:202: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).
		percentage = atoi(tmp);
data/weston-9.0.0/compositor/main.c:137: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 datestr[128];
data/weston-9.0.0/compositor/main.c:138: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 timestr[128];
data/weston-9.0.0/compositor/main.c:166: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 timestr[512];
data/weston-9.0.0/compositor/main.c:180:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		weston_logfile = fopen(filename, "a");
data/weston-9.0.0/compositor/main.c:209: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 timestr[128];
data/weston-9.0.0/compositor/main.c:266: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 timestr[128];
data/weston-9.0.0/compositor/main.c:382: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 s[32];
data/weston-9.0.0/compositor/main.c:851: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 path[PATH_MAX];
data/weston-9.0.0/compositor/main.c:928: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 path[PATH_MAX];
data/weston-9.0.0/compositor/main.c:959: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[256];
data/weston-9.0.0/compositor/screen-share.c:1060: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 str[32];
data/weston-9.0.0/compositor/xwayland.c:68: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 s[12], abstract_fd_str[12], unix_fd_str[12], wm_fd_str[12];
data/weston-9.0.0/desktop-shell/input-panel.c:159:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&shell->text_input.cursor_rectangle, data, sizeof(pixman_box32_t));
data/weston-9.0.0/libweston-desktop/libweston-desktop.c:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&desktop->api, api, desktop->api.struct_size);
data/weston-9.0.0/libweston/backend-drm/drm-internal.h:347: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 eisa_id[13];
data/weston-9.0.0/libweston/backend-drm/drm-internal.h:348: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 monitor_name[13];
data/weston-9.0.0/libweston/backend-drm/drm-internal.h:349: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 pnp_id[5];
data/weston-9.0.0/libweston/backend-drm/drm-internal.h:350: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 serial_number[13];
data/weston-9.0.0/libweston/backend-drm/drm.c:2352: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).
	if (!sysnum || atoi(sysnum) != b->drm.id)
data/weston-9.0.0/libweston/backend-drm/drm.c:2551: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).
		id = atoi(sysnum);
data/weston-9.0.0/libweston/backend-drm/drm.c:2761:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(b->drm.filename, O_RDWR | O_CLOEXEC);
data/weston-9.0.0/libweston/backend-drm/drm.c:3066:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:51: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[100];
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:58:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:109:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:163: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[100];
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:226: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(path, O_RDONLY);
data/weston-9.0.0/libweston/backend-drm/modes.c:157: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 hsync[16];
data/weston-9.0.0/libweston/backend-drm/modes.c:158: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 vsync[16];
data/weston-9.0.0/libweston/backend-drm/modes.c:273: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(edid->serial_number, "%lu", (unsigned long) serial_number);
data/weston-9.0.0/libweston/backend-drm/state-propose.c:291:3:  [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(buf + i * b->cursor_width,
data/weston-9.0.0/libweston/backend-drm/vaapi-recorder.c:947:17:  [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).
	r->output_fd = open(filename, flags, 0644);
data/weston-9.0.0/libweston/backend-fbdev/fbdev.c:75: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 id[16]; /* screen identifier */
data/weston-9.0.0/libweston/backend-fbdev/fbdev.c:398:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fb_dev, O_RDWR | O_CLOEXEC);
data/weston-9.0.0/libweston/backend-fbdev/fbdev.c:990:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/backend-headless/headless.c:514:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/backend-rdp/rdp.c:312:6:  [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(dest, src, toCopy);
data/weston-9.0.0/libweston/backend-rdp/rdp.c:986: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 seat_name[50];
data/weston-9.0.0/libweston/backend-rdp/rdp.c:1503:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/backend-wayland/wayland.c:1427: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[100];
data/weston-9.0.0/libweston/backend-wayland/wayland.c:2274: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 str[128];
data/weston-9.0.0/libweston/backend-wayland/wayland.c:2872:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&new_config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/backend-x11/x11.c:605:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(icon + 2, pixman_image_get_data(image), width * height * 4);
data/weston-9.0.0/libweston/backend-x11/x11.c:1950:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, config_base, config_base->struct_size);
data/weston-9.0.0/libweston/compositor.c:821:3:  [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(dest_rects, src_rects, nrects * sizeof(*dest_rects));
data/weston-9.0.0/libweston/compositor.c:7125: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 desc[512];
data/weston-9.0.0/libweston/compositor.c:7139:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(desc, "[no description available]");
data/weston-9.0.0/libweston/compositor.c:7701: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 path[PATH_MAX];
data/weston-9.0.0/libweston/launcher-direct.c:127: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 tty_device[32] ="<stdin>";
data/weston-9.0.0/libweston/launcher-direct.c:139:19:  [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).
		launcher->tty = open(tty_device, O_RDWR | O_CLOEXEC);
data/weston-9.0.0/libweston/launcher-direct.c:228:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags | O_CLOEXEC);
data/weston-9.0.0/libweston/launcher-impl.h:36: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).
	int (* open) (struct weston_launcher *launcher, const char *path, int flags);
data/weston-9.0.0/libweston/launcher-util.c:74:26:  [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).
	return launcher->iface->open(launcher, path, flags);
data/weston-9.0.0/libweston/launcher-weston-launch.c:86:28:  [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.
union cmsg_data { unsigned char b[4]; int fd; };
data/weston-9.0.0/libweston/launcher-weston-launch.c:120: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 control[CMSG_SPACE(sizeof data->fd)];
data/weston-9.0.0/libweston/linux-sync-file-uapi.h:10: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 obj_name[32];
data/weston-9.0.0/libweston/linux-sync-file-uapi.h:11: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 driver_name[32];
data/weston-9.0.0/libweston/linux-sync-file-uapi.h:18: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/weston-9.0.0/libweston/renderer-gl/egl-glue.c:526: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 s[64];
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:221:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline const char *
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:222:30:  [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.
dump_format(uint32_t format, char out[4])
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:227:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, &format, 4);
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:2141: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 fmt[4];
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:2172: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 fmt[4];
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:2384:3:  [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(*formats, fallback_formats, num * sizeof(int));
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:3038: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 msg[512];
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:3058: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 msg[512];
data/weston-9.0.0/libweston/renderer-gl/gl-renderer.c:3061: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.
	const char *sources[3];
data/weston-9.0.0/libweston/screenshooter.c:61:3:  [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(dst, src, stride);
data/weston-9.0.0/libweston/screenshooter.c:71:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, height * stride);
data/weston-9.0.0/libweston/screenshooter.c:434:17:  [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).
	recorder->fd = open(filename,
data/weston-9.0.0/libweston/timeline.c:275: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 d[512];
data/weston-9.0.0/libweston/timeline.c:276: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 mainstr[32];
data/weston-9.0.0/libweston/timeline.c:412: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[512];
data/weston-9.0.0/libweston/weston-launch.c:120:28:  [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.
union cmsg_data { unsigned char b[4]; int fd; };
data/weston-9.0.0/libweston/weston-launch.c:291: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[32];
data/weston-9.0.0/libweston/weston-launch.c:301: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 filename[16];
data/weston-9.0.0/libweston/weston-launch.c:307: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).
	return open(filename, O_RDWR | O_NOCTTY);
data/weston-9.0.0/libweston/weston-launch.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char control[CMSG_SPACE(sizeof(fd))];
data/weston-9.0.0/libweston/weston-launch.c:339:4:  [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 *) message)[len-1] = '\0';
data/weston-9.0.0/libweston/weston-launch.c:341:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(message->path, message->flags);
data/weston-9.0.0/libweston/weston-launch.c:421: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 control[CMSG_SPACE(sizeof(int))];
data/weston-9.0.0/libweston/weston-launch.c:422: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[BUFSIZ];
data/weston-9.0.0/libweston/weston-launch.c:586:14:  [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).
			wl->tty = open(tty, O_RDWR | O_NOCTTY);
data/weston-9.0.0/libweston/weston-launch.c:588:14:  [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 tty0 = open("/dev/tty0", O_WRONLY | O_CLOEXEC);
data/weston-9.0.0/libweston/weston-launch.c:751: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 *child_argv[MAX_ARGV_SIZE];
data/weston-9.0.0/libweston/weston-launch.h:47: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 path[0];
data/weston-9.0.0/libweston/weston-log-flight-rec.c:101:3:  [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(&rb->buf[rb->append_pos], c_data, rb->size);
data/weston-9.0.0/libweston/weston-log-flight-rec.c:106:3:  [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(&rb->buf[rb->append_pos], c_data, bytes_left_last_chunk);
data/weston-9.0.0/libweston/weston-log-flight-rec.c:122:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&rb->buf[rb->append_pos], c_data, transfer_to_end);
data/weston-9.0.0/libweston/weston-log-flight-rec.c:166:4:  [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(&rb->buf[rb->append_pos], data, len);
data/weston-9.0.0/libweston/weston-log.c:894:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string[128];
data/weston-9.0.0/pipewire/pipewire-plugin.c:119: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 timestr[128];
data/weston-9.0.0/pipewire/pipewire-plugin.c:214:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(spa_buffer->datas[0].data, ptr, size);
data/weston-9.0.0/remoting/remoting-plugin.c:195: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 pipeline_str[1024];
data/weston-9.0.0/shared/config-parser.c: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 path[PATH_MAX];
data/weston-9.0.0/shared/config-parser.c:74: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).
		return open(name, O_RDONLY | O_CLOEXEC);
data/weston-9.0.0/shared/config-parser.c:83: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(c->path, O_RDONLY | O_CLOEXEC);
data/weston-9.0.0/shared/config-parser.c:92: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(c->path, O_RDONLY | O_CLOEXEC);
data/weston-9.0.0/shared/config-parser.c:105: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(c->path, O_RDONLY | O_CLOEXEC);
data/weston-9.0.0/shared/config-parser.c:396: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 line[512], *p;
data/weston-9.0.0/shared/file-util.c:64: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).
	return open(fname, O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 00666);
data/weston-9.0.0/shared/file-util.c:89: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 timestr[128];
data/weston-9.0.0/shared/image-loader.c:385: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 header[4];
data/weston-9.0.0/shared/image-loader.c:400: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 header[4];
data/weston-9.0.0/shared/image-loader.c:407:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "rb");
data/weston-9.0.0/shared/matrix.c:59:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(matrix, &identity, sizeof identity);
data/weston-9.0.0/shared/matrix.c:80:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(m, &tmp, sizeof tmp);
data/weston-9.0.0/shared/os-compatibility.c:124:7:  [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).
	fd = mkstemp(tmpname);
data/weston-9.0.0/shared/os-compatibility.c:274:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(map, data, size);
data/weston-9.0.0/shared/os-compatibility.c:374:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, file->size);
data/weston-9.0.0/tests/bad-buffer-test.c:78:7:  [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).
	fd = mkstemp(tmpname);
data/weston-9.0.0/tests/config-parser-test.c:56:7:  [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).
	fd = mkstemp(file);
data/weston-9.0.0/tests/matrix-test.c:96: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.
	const char *row[4] = {
data/weston-9.0.0/tests/presentation-test.c:199: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 str[10];
data/weston-9.0.0/tests/setbacklight.c:54:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CLOEXEC);
data/weston-9.0.0/tests/setbacklight.c:161: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).
	connector_id = atoi(argv[1]);
data/weston-9.0.0/tests/setbacklight.c:162: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).
	blight = atoi(argv[2]);
data/weston-9.0.0/tests/surface-screenshot-test.c:142: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 fname[1024];
data/weston-9.0.0/tests/surface-screenshot-test.c:147: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 desc[512];
data/weston-9.0.0/tests/vertex-clip-test.c:179:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) dst->x, src->x, sizeof (src->x));
data/weston-9.0.0/tests/vertex-clip-test.c:180:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((void *) dst->y, src->y, sizeof (src->y));
data/weston-9.0.0/tests/weston-test-fixture-compositor.c:79:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p->saved, p->argv, sizeof(char *) * p->argc);
data/weston-9.0.0/tests/weston-test-fixture-compositor.c:135:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700);
data/weston-9.0.0/tests/weston-test-runner.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 name[512];
data/weston-9.0.0/tests/weston-test.c:78: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[128];
data/weston-9.0.0/tests/weston-test.c:373:3:  [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(dst, src, stride);
data/weston-9.0.0/tests/weston-test.c:384:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, height * stride);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:175:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, &val, sizeof(val));
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:182:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ptr, &val, sizeof(val));
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:193:3:  [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(ptr, (const char *)val, len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:292:3:  [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(ptr, file, file_len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:308:4:  [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(ptr, expr1, expr1_len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:313:4:  [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(ptr, expr2, expr2_len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:333:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(val, ptr, sizeof(*val));
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:340:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(val, ptr, sizeof(*val));
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:351:3:  [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(*str, ptr, len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:366:4:  [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(*str, ptr, len);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:407: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[4] = {};
data/weston-9.0.0/tools/zunitc/src/zuc_junit_reporter.c:351: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[32] = {};
data/weston-9.0.0/tools/zunitc/src/zuc_junit_reporter.c:369:14:  [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).
	jdata->fd = open(XML_FNAME, O_WRONLY | O_CLOEXEC | O_CREAT | O_TRUNC,
data/weston-9.0.0/wcap/main.c:218: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 filename[200];
data/weston-9.0.0/wcap/wcap-decode.c:122:16:  [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).
	decoder->fd = open(filename, O_RDONLY);
data/weston-9.0.0/xwayland/launcher.c:48: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 display[8];
data/weston-9.0.0/xwayland/launcher.c:68: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 path[256];
data/weston-9.0.0/xwayland/launcher.c:154: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 pid[11];
data/weston-9.0.0/xwayland/launcher.c:159:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(lockfile, O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0444);
data/weston-9.0.0/xwayland/launcher.c:161: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(lockfile, O_CLOEXEC | O_RDONLY);
data/weston-9.0.0/xwayland/launcher.c:258: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 lockfile[256], display_name[8];
data/weston-9.0.0/xwayland/window-manager.c:209: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 timestr[128];
data/weston-9.0.0/xwayland/window-manager.c:277:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[64];
data/weston-9.0.0/xwayland/window-manager.c:356: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).
		size = atoi(v);
data/weston-9.0.0/xwayland/window-manager.c:534:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1024];
data/weston-9.0.0/xwayland/window-manager.c:597:4:  [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(&window->size_hints,
data/weston-9.0.0/xwayland/window-manager.c:614:4:  [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(&window->motif_hints,
data/weston-9.0.0/xwayland/window-manager.c:1443: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 timestr[128];
data/weston-9.0.0/clients/editor.c:294: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).
	text_length = strlen(entry->text);
data/weston-9.0.0/clients/editor.c:582: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).
	if (write(fd, editor->selected_text, strlen(editor->selected_text) + 1) < 0)
data/weston-9.0.0/clients/editor.c:612:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pasted_text, buffer, len);
data/weston-9.0.0/clients/editor.c:634:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(editor->selected_text, &entry->text[start_index], len);
data/weston-9.0.0/clients/editor.c:709: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).
	entry->cursor = strlen(text);
data/weston-9.0.0/clients/editor.c:829:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(entry->cursor <= (strlen(entry->text) +
data/weston-9.0.0/clients/editor.c:830:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       (entry->preedit.text ? strlen(entry->preedit.text) : 0)));
data/weston-9.0.0/clients/editor.c:833: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).
		text = xmalloc(strlen(entry->text) + strlen(entry->preedit.text) + 1);
data/weston-9.0.0/clients/editor.c:833: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).
		text = xmalloc(strlen(entry->text) + strlen(entry->preedit.text) + 1);
data/weston-9.0.0/clients/editor.c:834:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(text, entry->text, entry->cursor);
data/weston-9.0.0/clients/editor.c:836: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).
		strcpy(text + entry->cursor + strlen(entry->preedit.text),
data/weston-9.0.0/clients/editor.c:873: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).
		attr->end_index = entry->cursor + strlen(entry->preedit.text);
data/weston-9.0.0/clients/editor.c:918:27:  [1] (buffer) strlen:
  Does not handle 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 *new_text = xmalloc(strlen(entry->text) + strlen(text) + 1);
data/weston-9.0.0/clients/editor.c:918: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).
	char *new_text = xmalloc(strlen(entry->text) + strlen(text) + 1);
data/weston-9.0.0/clients/editor.c:920:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_text, entry->text, entry->cursor);
data/weston-9.0.0/clients/editor.c:922: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).
	strcpy(new_text + entry->cursor + strlen(text),
data/weston-9.0.0/clients/editor.c:928: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).
		entry->anchor = entry->cursor + strlen(text) + anchor;
data/weston-9.0.0/clients/editor.c:933:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		entry->cursor += strlen(text) + cursor;
data/weston-9.0.0/clients/editor.c:1017: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).
	    cursor > entry->cursor + strlen(entry->preedit.text)) {
data/weston-9.0.0/clients/editor.c:1032: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).
	return entry->preedit.text && (strlen(entry->preedit.text) > 0);
data/weston-9.0.0/clients/editor.c:1079: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).
	assert(index <= strlen(entry->text));
data/weston-9.0.0/clients/editor.c:1080:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	assert(index + length <= strlen(entry->text));
data/weston-9.0.0/clients/editor.c:1083: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).
	l = strlen(entry->text + index + length);
data/weston-9.0.0/clients/keyboard.c:414: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).
	int tlen = strlen(text), ilen = strlen(insert);
data/weston-9.0.0/clients/keyboard.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).
	int tlen = strlen(text), ilen = strlen(insert);
data/weston-9.0.0/clients/keyboard.c:431: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).
	    strlen(keyboard->preedit_string) == 0)
data/weston-9.0.0/clients/keyboard.c:446: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).
		keyboard->surrounding_cursor += strlen(keyboard->preedit_string);
data/weston-9.0.0/clients/keyboard.c:449: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).
		keyboard->surrounding_cursor = strlen(keyboard->preedit_string);
data/weston-9.0.0/clients/keyboard.c:460:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint32_t index = strlen(keyboard->preedit_string);
data/weston-9.0.0/clients/keyboard.c:465: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).
							    strlen(keyboard->preedit_string),
data/weston-9.0.0/clients/keyboard.c:517:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(keyboard->surrounding_text + keyboard->surrounding_cursor, end, strlen(end));
data/weston-9.0.0/clients/keyboard.c:526: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).
	len1 = strlen(s1);
data/weston-9.0.0/clients/keyboard.c:527: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).
	len2 = strlen(s2);
data/weston-9.0.0/clients/keyboard.c:569: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(keyboard->keyboard->preedit_string) == 0) {
data/weston-9.0.0/clients/keyboard.c:572: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).
				keyboard->keyboard->preedit_string[strlen(keyboard->keyboard->preedit_string) - 1] = '\0';
data/weston-9.0.0/clients/keyboard.c:778: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(keyboard->preedit_string)) {
data/weston-9.0.0/clients/simple-egl.c:500:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(window->delay);
data/weston-9.0.0/clients/simple-im.c:442: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).
									   strlen(text));
data/weston-9.0.0/clients/terminal.c:1613: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).
			terminal_write(terminal, response, strlen(response));
data/weston-9.0.0/clients/terminal.c:1665: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).
			terminal_write(terminal, response, strlen(response));
data/weston-9.0.0/clients/terminal.c:1671: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).
			terminal_write(terminal, response, strlen(response));
data/weston-9.0.0/clients/terminal.c:1676: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).
			terminal_write(terminal, response, strlen(response));
data/weston-9.0.0/clients/terminal.c:1681: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).
			terminal_write(terminal, response, strlen(response));
data/weston-9.0.0/clients/terminal.c:3006:4:  [1] (buffer) strlen:
  Does not handle 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(TERMINAL_DRAW_SINGLE_WIDE_CHARACTERS));
data/weston-9.0.0/clients/terminal.c:3048:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(terminal->master, buffer, sizeof buffer);
data/weston-9.0.0/clients/terminal.c:3085:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(pipes[0], &tmp, 1);
data/weston-9.0.0/clients/window.c:4007:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(offer->fd, buffer, sizeof buffer);
data/weston-9.0.0/clients/window.c:6546: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).
	size_t len = strlen(name) + 1;
data/weston-9.0.0/clients/window.c:6554:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(p, name, len);
data/weston-9.0.0/clients/window.c:6569: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).
		p += strlen(p) + 1;
data/weston-9.0.0/clients/window.c:6601:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(tt->fd, &e, sizeof e) != sizeof e) {
data/weston-9.0.0/compositor/cms-colord.c:391:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(cms->readfd, &tmp, 1);
data/weston-9.0.0/compositor/cms-static.c:60:19:  [1] (buffer) strlen:
  Does not handle 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 == NULL && strlen(profile) > 0) {
data/weston-9.0.0/compositor/main.c:1007: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 (!helper || strlen(helper) == 0) {
data/weston-9.0.0/kiosk-shell/kiosk-shell.c:476: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).
	app_id_len = strlen(app_id);
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:64:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &buffer, sizeof(buffer));
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:115:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &buffer, sizeof(buffer));
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:126: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).
	ret = write(fd, buffer, strlen(buffer));
data/weston-9.0.0/libweston/backend-drm/libbacklight.c:231:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read (fd, &buffer, sizeof(buffer));
data/weston-9.0.0/libweston/backend-drm/modes.c:169:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf(s, "%f %hd %hd %hd %hd %hd %hd %hd %hd %15s %15s",
data/weston-9.0.0/libweston/backend-drm/modes.c:210:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(text, (const char *) data, 12);
data/weston-9.0.0/libweston/backend-fbdev/fbdev.c:313:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(info->id, fixinfo.id, sizeof(info->id));
data/weston-9.0.0/libweston/backend-x11/x11.c:209: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).
	length_part = strlen(value_part); \
data/weston-9.0.0/libweston/backend-x11/x11.c:997: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).
				    strlen(title), title);
data/weston-9.0.0/libweston/backend-x11/x11.c:1737: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).
					      strlen(atoms[i].name),
data/weston-9.0.0/libweston/clipboard.c:96:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, p, size);
data/weston-9.0.0/libweston/compositor.c:7666:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const int name_len = strlen(name);
data/weston-9.0.0/libweston/compositor.c:7671: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).
	end = mapping + strlen(mapping);
data/weston-9.0.0/libweston/compositor.c:7687:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, filename, file_len);
data/weston-9.0.0/libweston/input.c:3186: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).
	keymap_size = strlen(keymap_string) + 1;
data/weston-9.0.0/libweston/launcher-weston-launch.c:124: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).
	n = sizeof(*message) + strlen(path) + 1;
data/weston-9.0.0/libweston/plugin-registry.c:73: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).
	assert(strlen(api_name) > 0);
data/weston-9.0.0/libweston/plugin-registry.c:76:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!api_name || !vtable || strlen(api_name) == 0)
data/weston-9.0.0/libweston/weston-launch.c:520:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(wl->signalfd, &sig, sizeof sig) != sizeof sig) {
data/weston-9.0.0/pipewire/pipewire-plugin.c:550:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!name || !strlen(name))
data/weston-9.0.0/remoting/remoting-plugin.c:375:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &msg, sizeof(msg));
data/weston-9.0.0/remoting/remoting-plugin.c:745:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!name || !strlen(name))
data/weston-9.0.0/shared/config-parser.c:231: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(entry->value);
data/weston-9.0.0/shared/config-parser.c:458: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).
			i = strlen(p);
data/weston-9.0.0/shared/option-parser.c:73: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).
		len = strlen(options[k].name);
data/weston-9.0.0/shared/option-parser.c:101: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).
		len = strlen(options[k].name);
data/weston-9.0.0/shared/os-compatibility.c:190: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).
		name = malloc(strlen(path) + sizeof(template));
data/weston-9.0.0/shared/platform.h:49: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).
	size_t extlen = strlen(extension);
data/weston-9.0.0/shared/platform.h:50: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).
	const char *end = extensions + strlen(extensions);
data/weston-9.0.0/tests/bad-buffer-test.c:103: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).
	name = malloc(strlen(path) + sizeof(template));
data/weston-9.0.0/tests/config-parser-test.c:59: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).
	len = write(fd, text, strlen(text));
data/weston-9.0.0/tests/config-parser-test.c:60: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).
	ZUC_ASSERTG_EQ((int)strlen(text), len, out_close);
data/weston-9.0.0/tests/surface-screenshot-test.c:44: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).
	size_t len = strlen(comment);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:273:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int expr1_len = strlen(expr1);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:274:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int expr2_len = strlen(expr2);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:277:4:  [1] (buffer) strlen:
  Does not handle 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((char *)val1) : 0;
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:280:4:  [1] (buffer) strlen:
  Does not handle 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((char *)val2) : 0;
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:281: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).
		int file_len = strlen(file);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:408:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int got = read(fd, buf, 4);
data/weston-9.0.0/tools/zunitc/src/zuc_collector.c:417:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		got = read(fd, raw, len);
data/weston-9.0.0/tools/zunitc/src/zuc_junit_reporter.c:213: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).
							    strlen(msg));
data/weston-9.0.0/tools/zunitc/test/zunitc_test.c:94:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	ZUC_ASSERT_EQ(0, usleep(10000 * 5)); /* 50ms to show up in reporting */
data/weston-9.0.0/xwayland/launcher.c:162:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (fd < 0 || read(fd, pid, 11) != 11) {
data/weston-9.0.0/xwayland/selection.c:404:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, p, available);
data/weston-9.0.0/xwayland/window-manager.c:457:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (width + strlen(name) + 2 > 78) {
data/weston-9.0.0/xwayland/window-manager.c:2464: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).
					      strlen(atoms[i].name),
data/weston-9.0.0/xwayland/window-manager.c:2542: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(name), name);

ANALYSIS SUMMARY:

Hits = 476
Lines analyzed = 154563 in approximately 3.31 seconds (46752 lines/second)
Physical Source Lines of Code (SLOC) = 111941
Hits@level = [0] 837 [1] 102 [2] 221 [3]  99 [4]  52 [5]   2
Hits@level+ = [0+] 1313 [1+] 476 [2+] 374 [3+] 153 [4+]  54 [5+]   2
Hits/KSLOC@level+ = [0+] 11.7294 [1+] 4.25224 [2+] 3.34105 [3+] 1.36679 [4+] 0.482397 [5+] 0.0178666
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.