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/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-ir-check-binary-op-nesting.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-bytecode.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-ast.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-symbols.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-xml.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-lexer.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/memstream.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-grammar-test.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-ir.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-globbing.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-ir-validate-string.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-ir-normalize-glob-patterns.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-ir.h
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/channel.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/snapshot.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/event.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/tracker.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/destruction-handle.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/clear.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/rotate.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/deprecated-symbols.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/save.c
Examining data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-helper.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-field-utils.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/health-sessiond.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-kernel.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel-consumer.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-commands.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/rotation-thread.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notify-apps.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent-thread.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/dispatch.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ht-cleanup.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/thread-utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/fd-limit.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/tracker.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/event.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/context.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/testpoint.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/utils.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/timer.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/shm.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/channel.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/rotate.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/sessiond-config.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/clear.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/thread.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/globals.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/register.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-apps.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-consumer.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/fd-limit.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-ust-error.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/tracker.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/event.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/kern-modules.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/dispatch.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ht-cleanup.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-ust-ctl.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-commands.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/rotation-thread.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notify-apps.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent-thread.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-field-utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/process-utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-kernel.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel-consumer.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-internal.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-clock.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/clear.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/thread.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/register.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-apps.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/manage-consumer.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/health.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/rotate.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/sessiond-config.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/timer.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/shm.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-ust-abi.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-error-internal.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/channel.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-sessiond.h
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c
Examining data/ltt-control-2.12.2/src/bin/lttng-sessiond/context.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/tcp_keep_alive.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/stream.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/live.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-1.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/tracefile-array.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/index.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/session.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-4.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/testpoint.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/viewer-stream.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-viewer-abi.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-2.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/viewer-session.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/connection.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/ctf-trace.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/index.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/utils.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-1.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/tracefile-array.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/live.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/tcp_keep_alive.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/stream.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/ctf-trace.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-2.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-relayd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/viewer-session.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/connection.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-4.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/viewer-stream.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c
Examining data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c
Examining data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c
Examining data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c
Examining data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.h
Examining data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c
Examining data/ltt-control-2.12.2/src/bin/lttng/utils.h
Examining data/ltt-control-2.12.2/src/bin/lttng/command.h
Examining data/ltt-control-2.12.2/src/bin/lttng/conf.h
Examining data/ltt-control-2.12.2/src/bin/lttng/utils.c
Examining data/ltt-control-2.12.2/src/bin/lttng/lttng.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/start.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/status.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/create.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/list.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/save.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/disable_rotation.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/enable_rotation.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/version.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/metadata.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/destroy.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/view.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/load.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/rotate.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/regenerate.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/help.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/set_session.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/track-untrack.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/stop.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/snapshot.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/disable_channels.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/disable_events.c
Examining data/ltt-control-2.12.2/src/bin/lttng/commands/clear.c
Examining data/ltt-control-2.12.2/src/bin/lttng/conf.c
Examining data/ltt-control-2.12.2/src/common/readwrite.c
Examining data/ltt-control-2.12.2/src/common/fs-handle.c
Examining data/ltt-control-2.12.2/src/common/evaluation.c
Examining data/ltt-control-2.12.2/src/common/dynamic-array.h
Examining data/ltt-control-2.12.2/src/common/location.c
Examining data/ltt-control-2.12.2/src/common/error.c
Examining data/ltt-control-2.12.2/src/common/condition.c
Examining data/ltt-control-2.12.2/src/common/endpoint.c
Examining data/ltt-control-2.12.2/src/common/unix.h
Examining data/ltt-control-2.12.2/src/common/tracker.h
Examining data/ltt-control-2.12.2/src/common/pipe.c
Examining data/ltt-control-2.12.2/src/common/align.h
Examining data/ltt-control-2.12.2/src/common/dynamic-buffer.h
Examining data/ltt-control-2.12.2/src/common/event.c
Examining data/ltt-control-2.12.2/src/common/buffer-view.h
Examining data/ltt-control-2.12.2/src/common/session-descriptor.c
Examining data/ltt-control-2.12.2/src/common/trace-chunk.h
Examining data/ltt-control-2.12.2/src/common/action.c
Examining data/ltt-control-2.12.2/src/common/utils.c
Examining data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.h
Examining data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c
Examining data/ltt-control-2.12.2/src/common/health/health.c
Examining data/ltt-control-2.12.2/src/common/testpoint/testpoint.h
Examining data/ltt-control-2.12.2/src/common/testpoint/testpoint.c
Examining data/ltt-control-2.12.2/src/common/futex.c
Examining data/ltt-control-2.12.2/src/common/runas.c
Examining data/ltt-control-2.12.2/src/common/mi-lttng.c
Examining data/ltt-control-2.12.2/src/common/time.h
Examining data/ltt-control-2.12.2/src/common/filter.h
Examining data/ltt-control-2.12.2/src/common/string-utils/string-utils.h
Examining data/ltt-control-2.12.2/src/common/string-utils/format.h
Examining data/ltt-control-2.12.2/src/common/string-utils/string-utils.c
Examining data/ltt-control-2.12.2/src/common/daemonize.h
Examining data/ltt-control-2.12.2/src/common/defaults.c
Examining data/ltt-control-2.12.2/src/common/common.h
Examining data/ltt-control-2.12.2/src/common/context.c
Examining data/ltt-control-2.12.2/src/common/lttng-elf.h
Examining data/ltt-control-2.12.2/src/common/hashtable/hashtable.c
Examining data/ltt-control-2.12.2/src/common/hashtable/utils.c
Examining data/ltt-control-2.12.2/src/common/hashtable/hashtable-symbols.h
Examining data/ltt-control-2.12.2/src/common/hashtable/hashtable.h
Examining data/ltt-control-2.12.2/src/common/hashtable/utils.h
Examining data/ltt-control-2.12.2/src/common/waiter.c
Examining data/ltt-control-2.12.2/src/common/credentials.h
Examining data/ltt-control-2.12.2/src/common/spawn-viewer.c
Examining data/ltt-control-2.12.2/src/common/uri.c
Examining data/ltt-control-2.12.2/src/common/optional.h
Examining data/ltt-control-2.12.2/src/common/uuid.h
Examining data/ltt-control-2.12.2/src/common/buffer-view.c
Examining data/ltt-control-2.12.2/src/common/notify.c
Examining data/ltt-control-2.12.2/src/common/session-consumed-size.c
Examining data/ltt-control-2.12.2/src/common/trace-chunk.c
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-timer.h
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-stream.h
Examining data/ltt-control-2.12.2/src/common/consumer/consumer.c
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-testpoint.h
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-metadata-cache.h
Examining data/ltt-control-2.12.2/src/common/consumer/metadata-bucket.h
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-timer.c
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-stream.c
Examining data/ltt-control-2.12.2/src/common/consumer/consumer-metadata-cache.c
Examining data/ltt-control-2.12.2/src/common/consumer/metadata-bucket.c
Examining data/ltt-control-2.12.2/src/common/consumer/consumer.h
Examining data/ltt-control-2.12.2/src/common/unix.c
Examining data/ltt-control-2.12.2/src/common/tracker.c
Examining data/ltt-control-2.12.2/src/common/pipe.h
Examining data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.h
Examining data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ioctl.h
Examining data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c
Examining data/ltt-control-2.12.2/src/common/macros.h
Examining data/ltt-control-2.12.2/src/common/dynamic-buffer.c
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/inet6.h
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/agent.h
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.c
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/inet.h
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/inet6.c
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h
Examining data/ltt-control-2.12.2/src/common/sessiond-comm/inet.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/inode.h
Examining data/ltt-control-2.12.2/src/common/fd-tracker/utils.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/utils-poll.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/inode.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/utils-epoll.c
Examining data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.h
Examining data/ltt-control-2.12.2/src/common/fd-tracker/utils.h
Examining data/ltt-control-2.12.2/src/common/session-rotation.c
Examining data/ltt-control-2.12.2/src/common/kernel-consumer/kernel-consumer.c
Examining data/ltt-control-2.12.2/src/common/kernel-consumer/kernel-consumer.h
Examining data/ltt-control-2.12.2/src/common/buffer-usage.c
Examining data/ltt-control-2.12.2/src/common/readwrite.h
Examining data/ltt-control-2.12.2/src/common/trigger.c
Examining data/ltt-control-2.12.2/src/common/fs-handle.h
Examining data/ltt-control-2.12.2/src/common/index/index.c
Examining data/ltt-control-2.12.2/src/common/index/ctf-index.h
Examining data/ltt-control-2.12.2/src/common/index/index.h
Examining data/ltt-control-2.12.2/src/common/dynamic-array.c
Examining data/ltt-control-2.12.2/src/common/trace-chunk-registry.h
Examining data/ltt-control-2.12.2/src/common/error.h
Examining data/ltt-control-2.12.2/src/common/compat/directory-handle.h
Examining data/ltt-control-2.12.2/src/common/compat/string.h
Examining data/ltt-control-2.12.2/src/common/compat/netdb.h
Examining data/ltt-control-2.12.2/src/common/compat/prctl.h
Examining data/ltt-control-2.12.2/src/common/compat/compat-poll.c
Examining data/ltt-control-2.12.2/src/common/compat/tid.h
Examining data/ltt-control-2.12.2/src/common/compat/getenv.h
Examining data/ltt-control-2.12.2/src/common/compat/endian.h
Examining data/ltt-control-2.12.2/src/common/compat/compat-fcntl.c
Examining data/ltt-control-2.12.2/src/common/compat/time.h
Examining data/ltt-control-2.12.2/src/common/compat/directory-handle.c
Examining data/ltt-control-2.12.2/src/common/compat/poll.h
Examining data/ltt-control-2.12.2/src/common/compat/dirent.h
Examining data/ltt-control-2.12.2/src/common/compat/compat-epoll.c
Examining data/ltt-control-2.12.2/src/common/compat/path.h
Examining data/ltt-control-2.12.2/src/common/compat/fcntl.h
Examining data/ltt-control-2.12.2/src/common/compat/paths.h
Examining data/ltt-control-2.12.2/src/common/compat/socket.h
Examining data/ltt-control-2.12.2/src/common/compat/mman.h
Examining data/ltt-control-2.12.2/src/common/spawn-viewer.h
Examining data/ltt-control-2.12.2/src/common/uri.h
Examining data/ltt-control-2.12.2/src/common/uuid.c
Examining data/ltt-control-2.12.2/src/common/fs-handle-internal.h
Examining data/ltt-control-2.12.2/src/common/bug.h
Examining data/ltt-control-2.12.2/src/common/waiter.h
Examining data/ltt-control-2.12.2/src/common/relayd/relayd.h
Examining data/ltt-control-2.12.2/src/common/relayd/relayd.c
Examining data/ltt-control-2.12.2/src/common/filter.c
Examining data/ltt-control-2.12.2/src/common/config/session-config.h
Examining data/ltt-control-2.12.2/src/common/config/ini.h
Examining data/ltt-control-2.12.2/src/common/config/config-internal.h
Examining data/ltt-control-2.12.2/src/common/config/ini.c
Examining data/ltt-control-2.12.2/src/common/config/config-session-abi.h
Examining data/ltt-control-2.12.2/src/common/config/session-config.c
Examining data/ltt-control-2.12.2/src/common/daemonize.c
Examining data/ltt-control-2.12.2/src/common/defaults.h
Examining data/ltt-control-2.12.2/src/common/lttng-kernel.h
Examining data/ltt-control-2.12.2/src/common/context.h
Examining data/ltt-control-2.12.2/src/common/lttng-elf.c
Examining data/ltt-control-2.12.2/src/common/userspace-probe.c
Examining data/ltt-control-2.12.2/src/common/utils.h
Examining data/ltt-control-2.12.2/src/common/futex.h
Examining data/ltt-control-2.12.2/src/common/notification.c
Examining data/ltt-control-2.12.2/src/common/lttng-kernel-old.h
Examining data/ltt-control-2.12.2/src/common/runas.h
Examining data/ltt-control-2.12.2/src/common/mi-lttng.h
Examining data/ltt-control-2.12.2/src/common/time.c
Examining data/ltt-control-2.12.2/tests/unit/test_utils_parse_size_suffix.c
Examining data/ltt-control-2.12.2/tests/unit/test_utils_parse_time_suffix.c
Examining data/ltt-control-2.12.2/tests/unit/test_uri.c
Examining data/ltt-control-2.12.2/tests/unit/test_directory_handle.c
Examining data/ltt-control-2.12.2/tests/unit/test_session.c
Examining data/ltt-control-2.12.2/tests/unit/ini_config/ini_config.c
Examining data/ltt-control-2.12.2/tests/unit/test_notification.c
Examining data/ltt-control-2.12.2/tests/unit/test_relayd_backward_compat_group_by_session.c
Examining data/ltt-control-2.12.2/tests/unit/test_uuid.c
Examining data/ltt-control-2.12.2/tests/unit/test_ust_data.c
Examining data/ltt-control-2.12.2/tests/unit/test_string_utils.c
Examining data/ltt-control-2.12.2/tests/unit/test_kernel_data.c
Examining data/ltt-control-2.12.2/tests/unit/test_utils_compat_poll.c
Examining data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c
Examining data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c
Examining data/ltt-control-2.12.2/tests/perf/find_event.c
Examining data/ltt-control-2.12.2/tests/utils/utils.c
Examining data/ltt-control-2.12.2/tests/utils/utils.h
Examining data/ltt-control-2.12.2/tests/utils/tap/tap.h
Examining data/ltt-control-2.12.2/tests/utils/tap/tap.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ns-events/gen-ns-events.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/tp.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/tp.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/userspace-probe-sdt-binary.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/sema.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libbar.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/sema.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libbar.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libzzz.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-sdt-binary/libfoo.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents-str/tp.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents-str/tp.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-cxx-binary/userspace-probe-elf-cxx-binary.cpp
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-cxx-binary/test_class.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-cxx-binary/test_class.cpp
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-binary/foo.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/userspace-probe-elf-binary/foo.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/tp.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/tp.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-kernel-test-events/gen-kernel-test-events.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/signal-helper.h
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events-ns/tp.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
Examining data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events-ns/tp.h
Examining data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c
Examining data/ltt-control-2.12.2/tests/regression/tools/health/health_fail.c
Examining data/ltt-control-2.12.2/tests/regression/tools/health/health_check.c
Examining data/ltt-control-2.12.2/tests/regression/tools/health/health_stall.c
Examining data/ltt-control-2.12.2/tests/regression/tools/filtering/tp.c
Examining data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c
Examining data/ltt-control-2.12.2/tests/regression/tools/filtering/tp.h
Examining data/ltt-control-2.12.2/tests/regression/tools/mi/validate_xml.c
Examining data/ltt-control-2.12.2/tests/regression/tools/mi/extract_xml.c
Examining data/ltt-control-2.12.2/tests/regression/tools/live/live_test.c
Examining data/ltt-control-2.12.2/tests/regression/tools/notification/base_client.c
Examining data/ltt-control-2.12.2/tests/regression/tools/notification/notification.c
Examining data/ltt-control-2.12.2/tests/regression/tools/notification/rotation.c
Examining data/ltt-control-2.12.2/tests/regression/tools/notification/consumer_testpoints.c
Examining data/ltt-control-2.12.2/tests/regression/tools/rotation/schedule_api.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libfoo-tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libbar-tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libzzz.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libbar.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libfoo.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libzzz-tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libfoo-tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libbar-tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libzzz-tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libfoo.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libbar.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/libzzz.h
Examining data/ltt-control-2.12.2/tests/regression/ust/ust-dl/prog.c
Examining data/ltt-control-2.12.2/tests/regression/ust/daemon/daemon.c
Examining data/ltt-control-2.12.2/tests/regression/ust/daemon/ust_tests_daemon.h
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-lib/callsites.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-lib/probes.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-lib/callsites.h
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-lib/multi-lib-test.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-lib/probes.h
Examining data/ltt-control-2.12.2/tests/regression/ust/type-declarations/ust_tests_td.h
Examining data/ltt-control-2.12.2/tests/regression/ust/type-declarations/type-declarations.c
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/tp2.c
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/tp3.c
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/demo.c
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/ust_tests_demo2.h
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/ust_tests_demo3.h
Examining data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/ust_tests_demo.h
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/demo.c
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/ust_tests_demo2.h
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/tp3.c
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/tp2.c
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/ust_tests_demo3.h
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/ust_tests_demo.h
Examining data/ltt-control-2.12.2/tests/regression/ust/linking/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/exit-fast/ust_tests_exitfast.h
Examining data/ltt-control-2.12.2/tests/regression/ust/exit-fast/exit-fast.c
Examining data/ltt-control-2.12.2/tests/regression/ust/low-throughput/tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/low-throughput/main.c
Examining data/ltt-control-2.12.2/tests/regression/ust/low-throughput/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-session/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-session/gen-nevents.c
Examining data/ltt-control-2.12.2/tests/regression/ust/multi-session/ust_gen_nevents.h
Examining data/ltt-control-2.12.2/tests/regression/ust/clock-override/lttng-ust-clock-override-test.c
Examining data/ltt-control-2.12.2/tests/regression/ust/baddr-statedump/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/baddr-statedump/prog.c
Examining data/ltt-control-2.12.2/tests/regression/ust/baddr-statedump/tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/fork/fork2.c
Examining data/ltt-control-2.12.2/tests/regression/ust/fork/fork.c
Examining data/ltt-control-2.12.2/tests/regression/ust/fork/ust_tests_fork.h
Examining data/ltt-control-2.12.2/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c
Examining data/ltt-control-2.12.2/tests/regression/ust/high-throughput/tp.h
Examining data/ltt-control-2.12.2/tests/regression/ust/high-throughput/main.c
Examining data/ltt-control-2.12.2/tests/regression/ust/high-throughput/tp.c
Examining data/ltt-control-2.12.2/tests/regression/ust/libc-wrapper/prog.c
Examining data/ltt-control-2.12.2/extras/core-handler/crash.c
Examining data/ltt-control-2.12.2/include/version.h
Examining data/ltt-control-2.12.2/include/lttng/session-descriptor-internal.h
Examining data/ltt-control-2.12.2/include/lttng/health.h
Examining data/ltt-control-2.12.2/include/lttng/notification/notification-internal.h
Examining data/ltt-control-2.12.2/include/lttng/notification/notification.h
Examining data/ltt-control-2.12.2/include/lttng/notification/channel.h
Examining data/ltt-control-2.12.2/include/lttng/notification/channel-internal.h
Examining data/ltt-control-2.12.2/include/lttng/session-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/session-consumed-size.h
Examining data/ltt-control-2.12.2/include/lttng/condition/condition-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/session-rotation.h
Examining data/ltt-control-2.12.2/include/lttng/condition/buffer-usage.h
Examining data/ltt-control-2.12.2/include/lttng/condition/buffer-usage-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/evaluation.h
Examining data/ltt-control-2.12.2/include/lttng/condition/evaluation-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/session-rotation-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/session-consumed-size-internal.h
Examining data/ltt-control-2.12.2/include/lttng/condition/condition.h
Examining data/ltt-control-2.12.2/include/lttng/rotation.h
Examining data/ltt-control-2.12.2/include/lttng/endpoint.h
Examining data/ltt-control-2.12.2/include/lttng/destruction-handle.h
Examining data/ltt-control-2.12.2/include/lttng/location.h
Examining data/ltt-control-2.12.2/include/lttng/load.h
Examining data/ltt-control-2.12.2/include/lttng/handle.h
Examining data/ltt-control-2.12.2/include/lttng/session-descriptor.h
Examining data/ltt-control-2.12.2/include/lttng/event-internal.h
Examining data/ltt-control-2.12.2/include/lttng/constant.h
Examining data/ltt-control-2.12.2/include/lttng/action/notify-internal.h
Examining data/ltt-control-2.12.2/include/lttng/action/notify.h
Examining data/ltt-control-2.12.2/include/lttng/action/action-internal.h
Examining data/ltt-control-2.12.2/include/lttng/action/action.h
Examining data/ltt-control-2.12.2/include/lttng/domain.h
Examining data/ltt-control-2.12.2/include/lttng/trigger/trigger-internal.h
Examining data/ltt-control-2.12.2/include/lttng/trigger/trigger.h
Examining data/ltt-control-2.12.2/include/lttng/lttng-error.h
Examining data/ltt-control-2.12.2/include/lttng/userspace-probe-internal.h
Examining data/ltt-control-2.12.2/include/lttng/tracker.h
Examining data/ltt-control-2.12.2/include/lttng/location-internal.h
Examining data/ltt-control-2.12.2/include/lttng/session.h
Examining data/ltt-control-2.12.2/include/lttng/save.h
Examining data/ltt-control-2.12.2/include/lttng/clear.h
Examining data/ltt-control-2.12.2/include/lttng/rotate-internal.h
Examining data/ltt-control-2.12.2/include/lttng/endpoint-internal.h
Examining data/ltt-control-2.12.2/include/lttng/save-internal.h
Examining data/ltt-control-2.12.2/include/lttng/snapshot.h
Examining data/ltt-control-2.12.2/include/lttng/ref-internal.h
Examining data/ltt-control-2.12.2/include/lttng/health-internal.h
Examining data/ltt-control-2.12.2/include/lttng/clear-handle.h
Examining data/ltt-control-2.12.2/include/lttng/channel-internal.h
Examining data/ltt-control-2.12.2/include/lttng/userspace-probe.h
Examining data/ltt-control-2.12.2/include/lttng/channel.h
Examining data/ltt-control-2.12.2/include/lttng/load-internal.h
Examining data/ltt-control-2.12.2/include/lttng/event.h
Examining data/ltt-control-2.12.2/include/lttng/lttng.h
Examining data/ltt-control-2.12.2/include/lttng/snapshot-internal.h

FINAL RESULTS:

data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:185:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(health_unix_sock_path, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:193:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		ret = chmod(health_unix_sock_path,
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:107:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
			ret = chown(rundir, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:115:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			ret = chmod(rundir,
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:310:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(health_unix_sock_path, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:318:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		ret = chmod(health_unix_sock_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:2136:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(config.client_unix_sock_path.value, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/health.c:96:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(config.health_unix_sock_path.value, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/health.c:103:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		ret = chmod(config.health_unix_sock_path.value,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:938:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(rundir, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:949:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(rundir, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:956:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(config.client_unix_sock_path.value, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:963:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(kconsumer_data.err_unix_sock_path, 0, 0);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:970:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(ustconsumer64_data.err_unix_sock_path, 0, 0);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:977:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(ustconsumer32_data.err_unix_sock_path, 0, 0);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:1055:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(path, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:1083:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(consumer_data->err_unix_sock_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.c:224:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(sock_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.c:241:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		ret = chown(sock_path, 0, gid);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/register.c:61:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	ret = chmod(config.apps_unix_sock_path.value,
data/ltt-control-2.12.2/src/common/session-descriptor.c:101:2:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	strncat(local_protocol_string, path, LTTNG_PATH_MAX);
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:95:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:99:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:103:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:125:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:129:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:133:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:359:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(command_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:368:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(command_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:377:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(command_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:420:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(error_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:429:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(error_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:438:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(error_sock_path, PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c:121: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(session_name, session_name_view.data);
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c:122: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(hostname, hostname_view.data);
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c:123: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(base_path, base_path_view.size ? base_path_view.data : "");
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:206:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:215:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(health_unix_sock_path, sizeof(health_unix_sock_path),
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2582:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(chunk_id_buf, sizeof(chunk_id_buf), "%" PRIu64,
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:93: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(session->output_path, session_directory);
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:146: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(session->output_path, session_directory);
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:371:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(chunk_id_str, sizeof(chunk_id_str), "%" PRIu64,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:180:11:  [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.
			(void) execl(consumer_to_use,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:204:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(tmpnew, config.consumerd64_lib_dir.value);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:207:6:  [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(tmpnew, tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:217:11:  [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.
			(void) execl(config.consumerd64_bin_path.value, "lttng-consumerd", verbosity, "-u",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:241:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(tmpnew, config.consumerd32_lib_dir.value);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:244:6:  [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(tmpnew, tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:254:11:  [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.
			(void) execl(config.consumerd32_bin_path.value, "lttng-consumerd", verbosity, "-u",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4667:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(snapshot_chunk_name, sizeof(snapshot_chunk_name),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4691: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(snapshot_kernel_consumer_output->chunk_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4713: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(snapshot_ust_consumer_output->chunk_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c:315:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		ret = system(modprobe);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c:364:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		ret = system(modprobe);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.c:159:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(sock_path, LTTNG_PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread.c:172:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(sock_path, LTTNG_PATH_MAX,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2654:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret_len = snprintf(config_file_path, sizeof(config_file_path),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2690: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(config_file_path + len, DEFAULT_SESSION_CONFIG_FILE_EXTENSION);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.c:62:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(output->name, sizeof(output->name), "%s-%" PRIu32,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1868:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(ua_sess->path, sizeof(ua_sess->path),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1873:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(ua_sess->path, sizeof(ua_sess->path),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1902:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(tmp_shm_path, sizeof(tmp_shm_path),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5884:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(pathname, sizeof(pathname),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5949:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			ret = snprintf(pathname, sizeof(pathname), DEFAULT_UST_TRACE_DIR "/%s",
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:515:3:  [4] (shell) execlp:
  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.
		execlp(pathname, "lttng-sessiond",
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:615:8:  [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.
	ret = access(pathname, F_OK | X_OK);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c:256: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(channel->name, channel_name);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:485:9:  [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.
		ret = access(real_target_path, F_OK);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:824: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(ret, names[i]);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:218:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	at = strcpy(exclusion_msg, exclusion_fmt) + exclusion_fmt_len;
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:237:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		at += sprintf(at, "%s", name);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:347:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(filter_msg, filter_fmt,
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:1149:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
					sprintf(filter_msg, filter_fmt,
data/ltt-control-2.12.2/src/bin/lttng/commands/snapshot.c:302:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		pret = snprintf(name, sizeof(name), DEFAULT_SNAPSHOT_NAME "-%" PRIu32,
data/ltt-control-2.12.2/src/bin/lttng/utils.c:367:3:  [4] (shell) execlp:
  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.
		execlp(pathname, "lttng-relayd", "-L", url, NULL);
data/ltt-control-2.12.2/src/bin/lttng/utils.c:583:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	ret = sprintf(page_name, "lttng-%s", cmd_name);
data/ltt-control-2.12.2/src/common/bug.h:18:4:  [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/ltt-control-2.12.2/src/common/compat/directory-handle.c:545:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	ret = sprintf(new_handle->base_path, "%s%s%s",
data/ltt-control-2.12.2/src/common/config/session-config.c:310:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(fullpath, sizeof(fullpath),
data/ltt-control-2.12.2/src/common/config/session-config.c:733: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(xsd_path, base_path);
data/ltt-control-2.12.2/src/common/config/session-config.c:738: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(xsd_path + base_path_len, DEFAULT_SESSION_CONFIG_XSD_FILENAME);
data/ltt-control-2.12.2/src/common/config/session-config.c:3709:8:  [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.
	ret = access(path, R_OK);
data/ltt-control-2.12.2/src/common/config/session-config.c:4023:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				ret = snprintf(path, sizeof(path),
data/ltt-control-2.12.2/src/common/config/session-config.c:4042:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				ret = snprintf(path, sizeof(path),
data/ltt-control-2.12.2/src/common/config/session-config.c:4091:9:  [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.
		ret = access(path, F_OK);
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4858:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(relayd_id_buffer, sizeof(relayd_id_buffer),
data/ltt-control-2.12.2/src/common/consumer/consumer.c:5044:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(relayd_id_buffer, sizeof(relayd_id_buffer),
data/ltt-control-2.12.2/src/common/consumer/consumer.c:5169:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(relayd_id_buffer, sizeof(relayd_id_buffer),
data/ltt-control-2.12.2/src/common/error.h:136:4:  [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((type) == PRINT_MSG ? stdout : stderr, fmt, ## args);	\
data/ltt-control-2.12.2/src/common/index/index.c:62:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(index_directory_path, sizeof(index_directory_path),
data/ltt-control-2.12.2/src/common/macros.h:124: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(dst, src);
data/ltt-control-2.12.2/src/common/relayd/relayd.c:1232:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(new_chunk_id_buf, sizeof(new_chunk_id_buf),
data/ltt-control-2.12.2/src/common/spawn-viewer.c:224:8:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	ret = execvp(viewer_bin, argv);
data/ltt-control-2.12.2/src/common/trace-chunk.c:339:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(new_name, GENERATED_CHUNK_NAME_LEN, "%s%s-%" PRIu64,
data/ltt-control-2.12.2/src/common/trace-chunk.c:2196:14:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			fmt_ret = snprintf(chunk_id_buf, sizeof(chunk_id_buf),
data/ltt-control-2.12.2/src/common/uri.c:143:4:  [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(dst, loopback_addr);
data/ltt-control-2.12.2/src/common/utils.c:752:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(count_str, sizeof(count_str), "_%" PRIu64,
data/ltt-control-2.12.2/src/common/utils.c:1423:8:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	ret = execlp(man_bin_path, "man", "-M", MANPATH,
data/ltt-control-2.12.2/src/common/utils.c:1519: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(path, W_OK)) {
data/ltt-control-2.12.2/src/common/uuid.c:24:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(uuid_str, LTTNG_UUID_FMT, LTTNG_UUID_FMT_VALUES(uuid));
data/ltt-control-2.12.2/src/common/uuid.c:43:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf(str_in, LTTNG_UUID_FMT, LTTNG_UUID_SCAN_VALUES(uuid_scan)) !=
data/ltt-control-2.12.2/src/lib/lttng-ctl/channel.c:165:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(sock_path, LTTNG_PATH_MAX,
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-ast.h:25:4:  [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(stdout, "[debug] " fmt, ## args);	\
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:178: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(newgstr->s, gstr->s);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:179: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(newgstr->s, gsrc->s);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:184: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(gstr->s, gsrc->s);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:195: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(lvalp->gs->s, src);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1044:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1741:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			if (sscanf(yylval.gs->s, "%" WIDTH_u64_SCANF_IS_A_BROKEN_API SCNu64,
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1756:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			} else if (sscanf(yylval.gs->s, "0%" WIDTH_o64_SCANF_IS_A_BROKEN_API SCNo64,
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1769:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			if (sscanf(yylval.gs->s, "0x%" WIDTH_x64_SCANF_IS_A_BROKEN_API SCNx64,
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:163: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(new, old);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:165: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(new, append);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:520: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(insn->data, node->u.load.u.string.value);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-xml.c:24:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fprintf_dbg(fd, fmt, args...)	fprintf(fd, "%s: " fmt, __func__, ## args)
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c:162:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(lh->health_sock_path, sizeof(lh->health_sock_path),
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:50:2:  [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("[debug liblttng-ctl] " fmt, ## args)
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:57: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("[debug liblttnctl] " fmt, ## args);	\
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:343:8:  [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.
	ret = access(sock_path, F_OK);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:409:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(sessiond_sock_path, sizeof(sessiond_sock_path),
data/ltt-control-2.12.2/tests/regression/tools/mi/extract_xml.c:254: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(argv[optind], F_OK)) {
data/ltt-control-2.12.2/tests/regression/tools/mi/validate_xml.c:164:8:  [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.
	ret = access(argv[1], F_OK);
data/ltt-control-2.12.2/tests/regression/tools/mi/validate_xml.c:171:8:  [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.
	ret = access(argv[2], F_OK);
data/ltt-control-2.12.2/tests/regression/tools/notification/base_client.c:90:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		sscanf(buffer_usage_threshold_value, "%" SCNu64, &threshold_bytes);
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:271:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "valid test case: %s", valid_tests_inputs[i].input);
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:295:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "symlink tree test case: [tmppath/]%s",
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:319:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "invalid test case: %s", test_input ?
data/ltt-control-2.12.2/tests/unit/test_utils_parse_size_suffix.c:105:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "valid test case: %s", valid_tests_inputs[i].input);
data/ltt-control-2.12.2/tests/unit/test_utils_parse_size_suffix.c:114:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "invalid test case: %s", invalid_tests_inputs[i]);
data/ltt-control-2.12.2/tests/unit/test_utils_parse_time_suffix.c:104:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(name, "valid test case: %s expected %" PRIu64, valid_tests_inputs[i].input, result);
data/ltt-control-2.12.2/tests/unit/test_utils_parse_time_suffix.c:112:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(name, "invalid test case: %s", invalid_tests_inputs[i]);
data/ltt-control-2.12.2/tests/utils/tap/tap.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, ap);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ns-events/gen-ns-events.c:80:3:  [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/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c:83:3:  [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/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:195: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, "dhqvVku" "c:e:g:",
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:263:16:  [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 ((opt = getopt_long(argc, argv, "+Vhve:x:", long_options, NULL)) != -1) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:534: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, optstring, long_options,
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:568: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, optstring, long_options, &option_index);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:804: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, optstring, long_options,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:844: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, optstring, long_options,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:1609:20:  [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_app_timeout = getenv(DEFAULT_APP_SOCKET_TIMEOUT_ENV);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/sessiond-config.c:101: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.
	env_value = getenv(DEFAULT_APP_SOCKET_TIMEOUT_ENV);
data/ltt-control-2.12.2/src/bin/lttng/commands/create.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.
		pathname = getenv(DEFAULT_SESSIOND_PATH_ENV);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:280:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		binary_path = realpath(lttng_userspace_probe_location_function_get_binary_path(location), NULL);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:307:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		binary_path = realpath(lttng_userspace_probe_location_tracepoint_get_binary_path(location), NULL);
data/ltt-control-2.12.2/src/bin/lttng/commands/load.c:246:16:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		input_path = realpath(opt_input_path, NULL);
data/ltt-control-2.12.2/src/bin/lttng/lttng.c:338:16:  [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 ((opt = getopt_long(argc, argv, "+Vhnvqg:m:", long_options, NULL)) != -1) {
data/ltt-control-2.12.2/src/common/compat/getenv.h:30: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.
	return getenv(name);
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.c:459:8:  [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 = getenv(NETWORK_TIMEOUT_ENV);
data/ltt-control-2.12.2/src/common/testpoint/testpoint.c:30: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.
	testpoint_env_val = getenv(lttng_testpoint_env_var);
data/ltt-control-2.12.2/src/common/time.c:67: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 *lang = getenv("LANG");
data/ltt-control-2.12.2/src/common/utils.c:123:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		try_path = realpath((char *) cut_path, try_path_buf);
data/ltt-control-2.12.2/src/common/uuid.c:91:3:  [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(epoch);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:740: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(time(NULL));
data/ltt-control-2.12.2/tests/regression/tools/health/health_fail.c:22: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.
		char *env_val = getenv(env);
data/ltt-control-2.12.2/tests/regression/tools/health/health_stall.c:25: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.
		char *env_val = getenv(env);
data/ltt-control-2.12.2/tests/regression/tools/mi/extract_xml.c:233:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "ve")) != -1) {
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:124:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	cur_path = realpath(".", NULL);
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:125:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	prev_path = realpath("..", NULL);
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:126:15:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	pprev_path = realpath("../..", NULL);
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:284:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	result = realpath(tree_origin, real_tree_origin);
data/ltt-control-2.12.2/tests/utils/tap/tap.c:152: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("HARNESS_ACTIVE") != NULL)
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.c:67:19:  [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 ((option = getopt_long(argc, argv, "i:w:a:b:c:d:",
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:47:19:  [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 ((option = getopt_long(argc, argv, "i:w:b:m:",
data/ltt-control-2.12.2/include/lttng/channel.h:44: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 padding[LTTNG_CHANNEL_ATTR_PADDING1];
data/ltt-control-2.12.2/include/lttng/channel.h:54: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/channel.h:58: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 padding[LTTNG_CHANNEL_PADDING1];
data/ltt-control-2.12.2/include/lttng/domain.h:44: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 padding[LTTNG_DOMAIN_PADDING1];
data/ltt-control-2.12.2/include/lttng/domain.h:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char exec_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/domain.h:49: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 padding[LTTNG_DOMAIN_PADDING2];
data/ltt-control-2.12.2/include/lttng/event.h:182: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/event.h:184: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 padding[LTTNG_PERF_EVENT_PADDING1];
data/ltt-control-2.12.2/include/lttng/event.h:196: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 padding[LTTNG_EVENT_CONTEXT_PADDING1];
data/ltt-control-2.12.2/include/lttng/event.h:204: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 padding[LTTNG_EVENT_CONTEXT_PADDING2];
data/ltt-control-2.12.2/include/lttng/event.h:220: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 symbol_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/event.h:222: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 padding[LTTNG_EVENT_PROBE_PADDING1];
data/ltt-control-2.12.2/include/lttng/event.h:232: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 symbol_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/event.h:234: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 padding[LTTNG_EVENT_FUNCTION_PADDING1];
data/ltt-control-2.12.2/include/lttng/event.h:249: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/event.h:270: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 padding2[2];
data/ltt-control-2.12.2/include/lttng/event.h:277: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 padding[4];
data/ltt-control-2.12.2/include/lttng/event.h:291: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 padding[LTTNG_EVENT_PADDING2];
data/ltt-control-2.12.2/include/lttng/event.h:297: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 field_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/include/lttng/event.h:299: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 padding[LTTNG_EVENT_FIELD_PADDING];
data/ltt-control-2.12.2/include/lttng/handle.h:24: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 session_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/handle.h:27: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 padding[LTTNG_HANDLE_PADDING1];
data/ltt-control-2.12.2/include/lttng/load-internal.h:24: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 session_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/load-internal.h:26: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 input_url[PATH_MAX];
data/ltt-control-2.12.2/include/lttng/lttng.h:65: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 padding[LTTNG_CALIBRATE_PADDING1];
data/ltt-control-2.12.2/include/lttng/rotate-internal.h:24: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 session_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/rotate-internal.h:88: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 absolute_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/include/lttng/rotate-internal.h:91: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 host[LTTNG_HOST_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/rotate-internal.h:101: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 relative_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/include/lttng/save-internal.h:22: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 session_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/save-internal.h:24: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 configuration_url[PATH_MAX];
data/ltt-control-2.12.2/include/lttng/session.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/session.h:42: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/ltt-control-2.12.2/include/lttng/session.h:64: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 alignment_padding[4];
data/ltt-control-2.12.2/include/lttng/session.h:70: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 padding[LTTNG_SESSION_PADDING1];
data/ltt-control-2.12.2/include/lttng/snapshot-internal.h:31: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[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/include/lttng/snapshot-internal.h:33: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 ctrl_url[PATH_MAX];
data/ltt-control-2.12.2/include/lttng/snapshot-internal.h:35: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 data_url[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char health_unix_sock_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:61:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char command_sock_path[PATH_MAX]; /* Global command socket path */
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:62:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char error_sock_path[PATH_MAX]; /* Global error path */
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:316: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[COPY_BUFLEN];
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:321:11:  [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_src = open(file_src, O_RDONLY);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:327:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_dest = open(file_dest, O_RDWR | O_CREAT | O_EXCL,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:719: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(&packet_size,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:742: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(subbuf_ptr + layout->offset.content_size,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:746: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(subbuf_ptr + layout->offset.packet_size,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:947: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 dest[PATH_MAX], src[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:998: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 filename[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1024: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 output_subpath[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1025: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 input_subpath[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1106: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 filename[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c:45: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(&header, payload->data, header_len);
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-11.c:163: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(&header, payload->data, header_len);
data/ltt-control-2.12.2/src/bin/lttng-relayd/connection.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 header_reception_buffer[sizeof(struct lttcomm_relayd_data_hdr)];
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char health_unix_sock_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/live.c:596: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 uri_str[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/live.c:1666:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char file_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/live.c:1868: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(reply, &reply_header, sizeof(reply_header));
data/ltt-control-2.12.2/src/bin/lttng-relayd/live.c:2009:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char file_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-viewer-abi.h:106: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 hostname[LTTNG_VIEWER_HOST_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-viewer-abi.h:107: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 session_name[LTTNG_VIEWER_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-viewer-abi.h:114: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_name[LTTNG_VIEWER_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/lttng-viewer-abi.h:115: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 channel_name[LTTNG_VIEWER_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:999: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 uri_str[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1376: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 session_name[LTTNG_NAME_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1377: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 hostname[LTTNG_HOST_NAME_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1382: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 base_path[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1551:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(channel_path + 1, channel_path, len);
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2409: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(&index_info, payload->data, msg_len);
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2526: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 chunk_id_buf[MAX_INT_DEC_LEN(uint64_t)];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2548: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(&rotate_streams, payload->data, header_len);
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2570: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2786: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2854: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 closed_trace_chunk_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:2896: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:3431: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(&conn->protocol.ctrl.state.receive_payload.header,
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:3543: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(&conn->protocol.data.state.receive_payload.header, &header, sizeof(header));
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:3590: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 data_buffer[chunk_size];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:67: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 session_creation_datetime[DATETIME_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:115: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 creation_datetime[DATETIME_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:397:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		        char uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.h:52: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 session_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.h:53: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 hostname[LTTNG_HOST_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.h:54: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 base_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.h:61: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 output_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:113: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:190: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:306: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:327: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:360: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:361: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 chunk_id_str[MAX_INT_DEC_LEN(typeof(chunk_id))] = "-1";
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:425: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/sessiond-trace-chunks.c:486: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-relayd/stream.c:83: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 stream_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-relayd/stream.c:261: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 copy_buffer[FILE_IO_STACK_BUFFER_SIZE];
data/ltt-control-2.12.2/src/bin/lttng-relayd/stream.c:1061: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 padding_buffer[FILE_IO_STACK_BUFFER_SIZE];
data/ltt-control-2.12.2/src/bin/lttng-relayd/viewer-stream.c:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char file_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:431: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(bytes_to_send, &msg, sizeof(msg));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:433: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(bytes_to_send + sizeof(msg), event->filter_expression,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:917: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(tmp_events + count, agent_events,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.h:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.h:82: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.h:83: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.h:97: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.h:98: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:102: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(((uint8_t *) cmd_ctx->llm) + cmd_header_offset, cmd_header_buf,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:108: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(((uint8_t *) cmd_ctx->llm) + payload_offset, payload_buf,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:1178: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 data[LTTNG_FILTER_MAX_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:86: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 shm_path[member_sizeof(struct ltt_session, shm_path)];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:124: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 tmp_uurl[PATH_MAX], tmp_urls[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:314: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(&channels[i], kchan->channel, sizeof(struct lttng_channel));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:463: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(*extended_at, &extended_header, sizeof(extended_header));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:468: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(*extended_at, filter_expression, filter_len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:476: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(*extended_at, &exclusion->names, len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:481: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(*extended_at, location_buffer.data, location_buffer.size);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:775: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(&(*events)[i].attr.probe, &event->event->u.kprobe,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:780: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(&(*events)[i].attr.probe, &event->event->u.kprobe,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:788: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(&((*events)[i].attr.ftrace), &event->event->u.ftrace,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:2271: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(filter_a, filter, sizeof(*filter_a) + filter->len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:2497: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(filter_copy, filter, filter_size);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4658: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 snapshot_chunk_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4824: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 datetime[16];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4880: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(tmp_output->datetime, datetime, sizeof(datetime));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4907: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(output_copy.datetime, datetime,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:742: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_uri, uri, sizeof(struct lttng_uri));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:787: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 session_creation_datetime[16];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:1151: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 output_path[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:1823: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 creation_timestamp_buffer[ISO8601_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:2084: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(closed_trace_chunk_path, path_reception_buffer.data,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.h:122: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 base_dir[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.h:152: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 domain_subdir[max(sizeof(DEFAULT_KERNEL_TRACE_DIR),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.h:166: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 session_root_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.h:174: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 chunk_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel-consumer.c:30: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 tmp_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.c:1413: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("/proc/sys/kernel/random/boot_id", "r");
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.c:1418:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[37] = "";
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.c:1808:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	kernel_tracer_fd = open(module_proc_lttng, O_RDWR);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.c:40: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[SYSCALL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[SYSCALL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:1279: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/main.c:1611:31:  [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).
		config.app_socket_timeout = atoi(env_app_timeout);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c:303: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 modprobe[256];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c: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 modprobe[256];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:646: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(&channel_info->key, channel_key, sizeof(*channel_key));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2572: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(client->communication.outbound.buffer.data,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2636: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[sizeof(msg) + sizeof(reply)];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2643: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(buffer, &msg, sizeof(msg));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2644: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(buffer + sizeof(msg), &reply, sizeof(reply));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2741: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 send_buffer[sizeof(msg_header) + sizeof(handshake_reply)];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2743: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(send_buffer, &msg_header, sizeof(msg_header));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:2744: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(send_buffer + sizeof(msg_header), &handshake_reply,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/notification-thread-events.c:3303: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(stored_sample, &latest_sample, sizeof(*stored_sample));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2615: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 config_file_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.c:1189: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 datetime[16];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.h: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 name[NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.h:71: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 hostname[HOST_NAME_MAX]; /* Local hostname. */
data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.h:73: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 last_chunk_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/session.h:143: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/sessiond-config.c:256: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, &sessiond_config_build_defaults, sizeof(*config));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.h:28: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[NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.h:37: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 datetime[16];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:232: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(lkc->channel, chan, sizeof(struct lttng_channel));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:233: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(extended, chan->attr.extended.ptr, sizeof(struct lttng_channel_extended));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:309: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(kctx_copy, kctx, sizeof(*kctx_copy));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.h:87: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[DEFAULT_STREAM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.h:66: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.h:129: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.h:130: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h: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 padding[LTTNG_UST_CHANNEL_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:83: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 padding[LTTNG_UST_STREAM_PADDING1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:94: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[LTTNG_UST_SYM_NAME_LEN];	/* event name */
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:98: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 padding[LTTNG_UST_EVENT_PADDING1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:102: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 padding[LTTNG_UST_EVENT_PADDING2];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:116: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 event_name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:117: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 field_name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:121: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 padding[LTTNG_UST_FIELD_ITER_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:151: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h: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 padding[LTTNG_UST_CONTEXT_PADDING1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:167: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 padding[LTTNG_UST_CONTEXT_PADDING2];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:186: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 padding[LTTNG_UST_CHANNEL_ATTR_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:192: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[LTTNG_UST_SYM_NAME_LEN];	/* provider:name */
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_UST_TRACEPOINT_ITER_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:212: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 padding1[LTTNG_UST_OBJECT_DATA_PADDING1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:224: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 padding2[LTTNG_UST_OBJECT_DATA_PADDING2];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h: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 padding[LTTNG_UST_CALIBRATE_PADDING1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:239: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 padding[LTTNG_UST_CALIBRATE_PADDING2];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:249: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 padding[LTTNG_UST_FILTER_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:250: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 data[0];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:256: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 padding[LTTNG_UST_EXCLUSION_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-abi-internal.h:257: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 names[LTTNG_UST_SYM_NAME_LEN][0];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:602: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(metadata_str, registry->metadata + offset, len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1185: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(filter, orig_f, sizeof(*filter) + orig_f->len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1210: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(filter, orig_f, sizeof(*filter) + orig_f->len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1409: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(ust_exclusion, exclusion, exclusion_alloc_size);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1791: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(ua_event->exclusion, uevent->exclusion,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1839: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 datetime[16];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1841: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 tmp_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:3673: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(tmp_event[count].name, uiter.name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:3805: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(tmp_event[count].field_name, uiter.field_name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:3810: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(tmp_event[count].event.name, uiter.event_name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5646: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 name[LTTNG_UST_SYM_NAME_LEN], *sig, *model_emf_uri;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5713: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 name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5867: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 pathname[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:5930: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 pathname[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:67: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[LTTNG_UST_ABI_PROCNAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:109: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:117: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 pathname[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h: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 name[DEFAULT_STREAM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:140: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:200: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/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:223: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:224: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.h:257: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[UST_APP_PROCNAME_LEN + 1];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-clock.h:76: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("/proc/sys/kernel/random/boot_id", "r");
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:46: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 shm_path[PATH_MAX] = "";
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c: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 root_shm_path[PATH_MAX] = "";
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:46: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 uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:307: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 padding[USTCTL_UST_INTEGER_TYPE_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:316: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 padding[USTCTL_UST_FLOAT_TYPE_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:323: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 padding[USTCTL_UST_ENUM_VALUE_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:333: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:338: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 padding[USTCTL_UST_ENUM_ENTRY_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:346: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 name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:354: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 padding[USTCTL_UST_BASIC_TYPE_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:379: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 tag_name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:386: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 padding[USTCTL_UST_TYPE_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:392: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-ctl-internal.h:394: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 padding[USTCTL_UST_FIELD_PADDING];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:160: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(&session->metadata[offset], str, len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.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 identifier[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:397: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 identifier[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:902: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 creation_datetime[ISO8601_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:964: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 datetime[ISO8601_STR_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:997: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 uuid_s[LTTNG_UUID_STR_LEN],
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:41: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 uuid[LTTNG_UUID_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:90: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:91: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:92: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 metadata_path[PATH_MAX];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:175: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[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.h:194:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LTTNG_UST_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/create.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 local_output_path[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:285: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 shm_path[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:370: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 datetime_suffix[17] = {};
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:442: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 snapshot_url[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c:259: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(&channel->attr, &chan_opts.attr, sizeof(chan_opts.attr));
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:108: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_hex[19];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:110: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:570: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:613: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:658: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:698: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:827:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(ret, ", ");
data/ltt-control-2.12.2/src/bin/lttng/commands/help.c:54: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 *cmd_argv[2];
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:86: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[sizeof("/proc//cmdline") + sizeof(LTTNG_MAX_PID_STR) - 1];
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:89: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(path, "r");
data/ltt-control-2.12.2/src/bin/lttng/commands/snapshot.c:279: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[NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng/commands/status.c:41: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 *argv[2];
data/ltt-control-2.12.2/src/bin/lttng/commands/view.c:54: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 hostname[HOST_NAME_MAX];
data/ltt-control-2.12.2/src/bin/lttng/conf.c:55: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(file_path, mode);
data/ltt-control-2.12.2/src/bin/lttng/conf.c:175: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 var[NAME_MAX], *session_name;
data/ltt-control-2.12.2/src/bin/lttng/conf.c:271: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 session_name[NAME_MAX + strlen(attr) + 1];
data/ltt-control-2.12.2/src/bin/lttng/utils.c: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 url[255];
data/ltt-control-2.12.2/src/bin/lttng/utils.c:581: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 page_name[32];
data/ltt-control-2.12.2/src/common/compat/compat-epoll.c:309: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[64];
data/ltt-control-2.12.2/src/common/compat/compat-epoll.c:311: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(COMPAT_EPOLL_PROC_PATH, O_RDONLY);
data/ltt-control-2.12.2/src/common/compat/compat-epoll.c:336:18:  [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).
	poll_max_size = atoi(buf);
data/ltt-control-2.12.2/src/common/compat/compat-poll.c:88: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(wait->events, current->events,
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:435: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 cwd_buf[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:436: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 handle_buf[LTTNG_PATH_MAX] = {};
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:495: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 full_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:640:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:658:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:666: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).
	ret = open(fullpath, flags, mode);
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:677:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:695:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:714:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:732:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:750:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:771: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 old_fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:772: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 new_fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:799: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 old_fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:800: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 new_fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:826:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:844:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:862:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:881:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fullpath[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:942: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 *p, tmp[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/compat/string.h:69: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(ret, s, navail);
data/ltt-control-2.12.2/src/common/config/ini.c:98: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[INI_MAX_LINE];
data/ltt-control-2.12.2/src/common/config/ini.c:102: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 section[MAX_SECTION] = "";
data/ltt-control-2.12.2/src/common/config/ini.c:103: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 prev_name[MAX_NAME] = "";
data/ltt-control-2.12.2/src/common/config/ini.c:212:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(filename, "r");
data/ltt-control-2.12.2/src/common/config/session-config.c:292:16:  [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).
	config_file = fopen(path, "r");
data/ltt-control-2.12.2/src/common/config/session-config.c:308: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 fullpath[PATH_MAX];
data/ltt-control-2.12.2/src/common/config/session-config.c:317:17:  [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).
		config_file = fopen(fullpath, "r");
data/ltt-control-2.12.2/src/common/config/session-config.c:333:17:  [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).
		config_file = fopen(override_path, "r");
data/ltt-control-2.12.2/src/common/config/session-config.c:4016: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 path[PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer-metadata-cache.c:169: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(cache->data + offset, data, len);
data/ltt-control-2.12.2/src/common/consumer/consumer-stream.c:964: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 stream_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4821: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4829: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(ctx->sessiond_uuid.value, sessiond_uuid, sizeof(lttng_uuid));
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4849: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 relayd_id_buffer[MAX_INT_DEC_LEN(*relayd_id)];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4850: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 creation_timestamp_buffer[ISO8601_STR_LEN];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4967: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 path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:4999: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 path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:5033: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 relayd_id_buffer[MAX_INT_DEC_LEN(*relayd_id)];
data/ltt-control-2.12.2/src/common/consumer/consumer.c:5159: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 relayd_id_buffer[MAX_INT_DEC_LEN(*relayd_id)];
data/ltt-control-2.12.2/src/common/consumer/consumer.h:145:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pathname[PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.h: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 name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/consumer/consumer.h:163: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 uuid[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/src/common/consumer/consumer.h:244: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.h:245: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/consumer/consumer.h:540: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/daemonize.c:63: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(_PATH_DEVNULL, O_RDWR, 0);
data/ltt-control-2.12.2/src/common/dynamic-buffer.c:64: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(buffer->data + buffer->size, buf, len);
data/ltt-control-2.12.2/src/common/error.h:42: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[19];
data/ltt-control-2.12.2/src/common/error.h:203:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[200]; \
data/ltt-control-2.12.2/src/common/error.h:214: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 tmp[200]; \
data/ltt-control-2.12.2/src/common/event.c:24: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_event, event, sizeof(*event));
data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.c:617: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).
		fd_open_cb open,
data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.c:655:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	user_ret = open(user_data, out_fds);
data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.c:729: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(fds, fds_in, sizeof(*fds) * fd_count);
data/ltt-control-2.12.2/src/common/fd-tracker/fd-tracker.h:116: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).
		fd_open_cb open,
data/ltt-control-2.12.2/src/common/fd-tracker/utils.c:42: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 *names[2];
data/ltt-control-2.12.2/src/common/fd-tracker/utils.c:156: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 cwd_path[LTTNG_PATH_MAX] = "working directory";
data/ltt-control-2.12.2/src/common/health/health.c:190: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(&state->last_time, &current_time, sizeof(current_time));
data/ltt-control-2.12.2/src/common/health/health.c:200: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(&state->last_time, &current_time, sizeof(current_time));
data/ltt-control-2.12.2/src/common/index/index.c:41: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 index_directory_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/index/index.c:42: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 index_file_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/kernel-consumer/kernel-consumer.c:1278: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 path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:103: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(old_channel.padding, chops->padding, sizeof(chops->padding));
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:116: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(channel.padding, chops->padding, sizeof(chops->padding));
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:141: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(old_channel.padding, chops->padding, sizeof(chops->padding));
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:153: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(channel.padding, chops->padding, sizeof(chops->padding));
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:200: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_mask, kmask->mask, array_alloc_len);
data/ltt-control-2.12.2/src/common/kernel-ctl/kernel-ctl.c:434: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(kb->data, filter->data, len);
data/ltt-control-2.12.2/src/common/lttng-elf.c:361:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[BUF_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:26: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[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:34: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 padding[LTTNG_KERNEL_OLD_CONTEXT_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:38: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 padding[LTTNG_KERNEL_OLD_CONTEXT_PADDING2];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:46: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:56: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:61: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:67: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[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_KERNEL_OLD_EVENT_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:76: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 padding[LTTNG_KERNEL_OLD_EVENT_PADDING2];
data/ltt-control-2.12.2/src/common/lttng-kernel-old.h:98: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 padding[LTTNG_KERNEL_OLD_CHANNEL_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:84: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[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:92: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 padding[LTTNG_KERNEL_CONTEXT_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:96: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 padding[LTTNG_KERNEL_CONTEXT_PADDING2];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:104: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:114: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:133: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 symbol_name[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:139: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[LTTNG_KERNEL_SYM_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:141: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 padding[LTTNG_KERNEL_EVENT_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:149: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 padding[LTTNG_KERNEL_EVENT_PADDING2];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:181: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 padding[LTTNG_KERNEL_CHANNEL_PADDING1];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:189: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 data[0];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:196: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[LTTNG_KERNEL_SESSION_NAME_LEN];
data/ltt-control-2.12.2/src/common/lttng-kernel.h:203: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 iso8601[LTTNG_KERNEL_SESSION_CREATION_TIME_ISO8601_LEN];
data/ltt-control-2.12.2/src/common/mi-lttng.h:33: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 version[LTTNG_NAME_MAX]; /* Version number of package */
data/ltt-control-2.12.2/src/common/mi-lttng.h:37: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 version_commit[LTTNG_NAME_MAX]; /* Commit hash of the current version */
data/ltt-control-2.12.2/src/common/mi-lttng.h:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char version_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/src/common/mi-lttng.h:39: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 package_url[LTTNG_NAME_MAX]; /* Define to the home page for this package. */
data/ltt-control-2.12.2/src/common/pipe.c:236: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_r = open(path, O_RDONLY | O_NONBLOCK);
data/ltt-control-2.12.2/src/common/pipe.c:244: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_w = open(path, O_WRONLY | O_NONBLOCK);
data/ltt-control-2.12.2/src/common/relayd/relayd.c:85: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(buf, &header, sizeof(header));
data/ltt-control-2.12.2/src/common/relayd/relayd.c:87: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 + sizeof(header), data, size);
data/ltt-control-2.12.2/src/common/relayd/relayd.c:501: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 pathname[RELAYD_COMM_LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/relayd/relayd.c:1218: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 new_chunk_id_buf[MAX_INT_DEC_LEN(*new_chunk_id)] = {};
data/ltt-control-2.12.2/src/common/runas.c:64: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[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:70: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[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:77: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[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:82: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[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char function[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/runas.c:93: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 probe_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/runas.c:94: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 provider_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/runas.c:103: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 old_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:104: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 new_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/runas.c:124:27:  [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).
		struct run_as_open_data open;
data/ltt-control-2.12.2/src/common/runas.c:153: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).
		struct run_as_open_ret open;
data/ltt-control-2.12.2/src/common/runas.c:224:51:  [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).
		.in_fds_offset = offsetof(struct run_as_data, u.open.dirfd),
data/ltt-control-2.12.2/src/common/runas.c:226:51:  [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).
		.out_fds_offset = offsetof(struct run_as_ret, u.open.fd),
data/ltt-control-2.12.2/src/common/runas.c:231:51:  [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).
		.in_fds_offset = offsetof(struct run_as_data, u.open.dirfd),
data/ltt-control-2.12.2/src/common/runas.c:233:51:  [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).
		.out_fds_offset = offsetof(struct run_as_ret, u.open.fd),
data/ltt-control-2.12.2/src/common/runas.c:403:60:  [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).
	handle = lttng_directory_handle_create_from_dirfd(data->u.open.dirfd);
data/ltt-control-2.12.2/src/common/runas.c:411: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).
	data->u.open.dirfd = -1;
data/ltt-control-2.12.2/src/common/runas.c:414:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			data->u.open.path, data->u.open.flags,
data/ltt-control-2.12.2/src/common/runas.c:414:31:  [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).
			data->u.open.path, data->u.open.flags,
data/ltt-control-2.12.2/src/common/runas.c:415:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			data->u.open.mode);
data/ltt-control-2.12.2/src/common/runas.c:418: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).
		ret_value->u.open.fd = -1;
data/ltt-control-2.12.2/src/common/runas.c:421: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).
		ret_value->u.open.fd = fd;
data/ltt-control-2.12.2/src/common/runas.c:594: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(ret_value->u.extract_sdt_probe_offsets.offsets,
data/ltt-control-2.12.2/src/common/runas.c:1498:29:  [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).
	ret = lttng_strncpy(data.u.open.path, path, sizeof(data.u.open.path));
data/ltt-control-2.12.2/src/common/runas.c:1498:60:  [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).
	ret = lttng_strncpy(data.u.open.path, path, sizeof(data.u.open.path));
data/ltt-control-2.12.2/src/common/runas.c:1503: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).
	data.u.open.flags = flags;
data/ltt-control-2.12.2/src/common/runas.c:1504: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).
	data.u.open.mode = mode;
data/ltt-control-2.12.2/src/common/runas.c:1505: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).
	data.u.open.dirfd = dirfd;
data/ltt-control-2.12.2/src/common/runas.c:1510: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).
			run_as_ret.u.open.fd;
data/ltt-control-2.12.2/src/common/runas.c:1723: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(*offsets, run_as_ret.u.extract_sdt_probe_offsets.offsets,
data/ltt-control-2.12.2/src/common/session-descriptor.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(new_uri, uri, sizeof(*new_uri));
data/ltt-control-2.12.2/src/common/session-descriptor.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 local_protocol_string[LTTNG_PATH_MAX + sizeof("file://")] =
data/ltt-control-2.12.2/src/common/session-descriptor.c:189: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(control_uri, &parsed_uris[0], sizeof(*control_uri));
data/ltt-control-2.12.2/src/common/session-descriptor.c:190: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(data_uri, &parsed_uris[1], sizeof(*data_uri));
data/ltt-control-2.12.2/src/common/session-descriptor.c:718: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(uris[i], uri, sizeof(*uri));
data/ltt-control-2.12.2/src/common/session-descriptor.c:899: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(local_uri, descriptor->output.local, sizeof(*local_uri));
data/ltt-control-2.12.2/src/common/session-descriptor.c:908: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(control, descriptor->output.network.control, sizeof(*control));
data/ltt-control-2.12.2/src/common/session-descriptor.c:909: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(data, descriptor->output.network.data, sizeof(*data));
data/ltt-control-2.12.2/src/common/session-descriptor.c:1024: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 local_uri[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/session-descriptor.c:1025: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 creation_datetime_suffix[17] = {};
data/ltt-control-2.12.2/src/common/sessiond-comm/agent.h:58: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/agent.h:66: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[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/inet.c:479: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[64];
data/ltt-control-2.12.2/src/common/sessiond-comm/inet.c:481: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/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h:65: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 channel_name[RELAYD_COMM_DEFAULT_STREAM_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h:66: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 pathname[RELAYD_COMM_LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char channel_name[RELAYD_COMM_DEFAULT_STREAM_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h: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 pathname[RELAYD_COMM_LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h:190: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 session_name[RELAYD_COMM_LTTNG_NAME_MAX_2_4];
data/ltt-control-2.12.2/src/common/sessiond-comm/relayd.h:191: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 hostname[RELAYD_COMM_LTTNG_HOST_NAME_MAX_2_4];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:280: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 channel_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:299: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 channel_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:320: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 channel_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:327: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 path[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:331: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 channel_name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:354: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:429: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 padding[LTTNG_FILTER_PADDING];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:430: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 data[0];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:441: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 padding[LTTNG_EVENT_EXCLUSION_PADDING];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:442: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 names[0][LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:524: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 pathname[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:528: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 name[LTTNG_SYMBOL_NAME_LEN];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:578: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 pathname[PATH_MAX];		/* Channel file path. */
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:579: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 name[LTTNG_SYMBOL_NAME_LEN];	/* Channel name. */
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:589:13:  [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 uuid[LTTNG_UUID_LEN];	/* uuid for ust tracer. */
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:604: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 root_shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:605: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:632: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 pathname[PATH_MAX];
data/ltt-control-2.12.2/src/common/sessiond-comm/sessiond-comm.h:681: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 override_name[LTTNG_NAME_MAX];
data/ltt-control-2.12.2/src/common/spawn-viewer.c:150: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(argv, opts, sizeof(char *) * opts_len);
data/ltt-control-2.12.2/src/common/trace-chunk.c:312: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 start_datetime[ISO8601_STR_LEN] = {};
data/ltt-control-2.12.2/src/common/trace-chunk.c:314: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 end_datetime_suffix[ISO8601_STR_LEN + 1] = {};
data/ltt-control-2.12.2/src/common/trace-chunk.c:409:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char chunk_creation_datetime_buf[16] = {};
data/ltt-control-2.12.2/src/common/trace-chunk.c:2190: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 chunk_id_buf[MAX_INT_DEC_LEN(uint64_t)];
data/ltt-control-2.12.2/src/common/unix.c:394: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 tmp[CMSG_SPACE(sizeof_fds)];
data/ltt-control-2.12.2/src/common/unix.c:414: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(CMSG_DATA(cmptr), fds, sizeof_fds);
data/ltt-control-2.12.2/src/common/unix.c:461: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 recv_buf[LTTNG_SOCK_RECV_FDS_BUF_SIZE];
data/ltt-control-2.12.2/src/common/unix.c:527: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(fds, CMSG_DATA(cmsg), sizeof_fds);
data/ltt-control-2.12.2/src/common/unix.c:560: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 anc_buf[CMSG_SPACE(sizeof_cred)];
data/ltt-control-2.12.2/src/common/unix.c:623: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 anc_buf[CMSG_SPACE(sizeof_cred)];
data/ltt-control-2.12.2/src/common/unix.c:690: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(creds, CMSG_DATA(cmptr), sizeof_cred);
data/ltt-control-2.12.2/src/common/uri.c:98: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 buf[sizeof(struct in6_addr)];
data/ltt-control-2.12.2/src/common/uri.c:212: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 proto[5], port[7];
data/ltt-control-2.12.2/src/common/uri.c:281: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 subdir[PATH_MAX];
data/ltt-control-2.12.2/src/common/uri.c:423: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).
			port = atoi(port_f);
data/ltt-control-2.12.2/src/common/uri.c:536: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 url[PATH_MAX + 7];
data/ltt-control-2.12.2/src/common/uri.c:641: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(tmp_uris, ctrl_uris, sizeof(struct lttng_uri) * size_ctrl);
data/ltt-control-2.12.2/src/common/uri.c:647: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(&tmp_uris[idx], data_uris, sizeof(struct lttng_uri));
data/ltt-control-2.12.2/src/common/uri.h:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subdir[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/uri.h:62: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 ipv4[INET_ADDRSTRLEN];
data/ltt-control-2.12.2/src/common/uri.h:63: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 ipv6[INET6_ADDRSTRLEN];
data/ltt-control-2.12.2/src/common/uri.h:64: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 path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/userspace-probe.c:159:15:  [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).
		binary_fd = open(binary_path, O_RDONLY);
data/ltt-control-2.12.2/src/common/userspace-probe.c:223:15:  [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).
		binary_fd = open(binary_path, O_RDONLY);
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:225: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 cpu_nr[INT_MAX_STR_LEN];  /* int max len */
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:336: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(stream->ust_metadata_poll_pipe,
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:361: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 tmp_name[NAME_MAX];
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:400: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:482: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:2146: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 closed_trace_chunk_path[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:2398: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 shm_path[PATH_MAX];
data/ltt-control-2.12.2/src/common/utils.c:297: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(&path[expanded_path_len], curr_char, curr_token_len);
data/ltt-control-2.12.2/src/common/utils.c:352: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 current_working_dir[LTTNG_PATH_MAX];
data/ltt-control-2.12.2/src/common/utils.c:562: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(str, begin, end - begin);
data/ltt-control-2.12.2/src/common/utils.c:603: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(filepath, "w");
data/ltt-control-2.12.2/src/common/utils.c:639: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(filepath, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR |
data/ltt-control-2.12.2/src/common/utils.c:739:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char count_str[MAX_INT_DEC_LEN(count) + 1] = {};
data/ltt-control-2.12.2/src/common/utils.c:1403: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 section_string[8];
data/ltt-control-2.12.2/src/common/utils.c:1413:8:  [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.
	ret = sprintf(section_string, "%d", section);
data/ltt-control-2.12.2/src/common/utils.c:1435: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[PROC_MEMINFO_FIELD_MAX_NAME_LEN] = {};
data/ltt-control-2.12.2/src/common/utils.c:1437:17:  [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).
	proc_meminfo = fopen(PROC_MEMINFO_PATH, "r");
data/ltt-control-2.12.2/src/common/uuid.c:65: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, LTTNG_UUID_LEN);
data/ltt-control-2.12.2/src/lib/lttng-ctl/channel.c:562: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 send_buffer[sizeof(msg_header) + sizeof(handshake)];
data/ltt-control-2.12.2/src/lib/lttng-ctl/channel.c:564: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(send_buffer, &msg_header, sizeof(msg_header));
data/ltt-control-2.12.2/src/lib/lttng-ctl/channel.c:565: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(send_buffer + sizeof(msg_header), &handshake, sizeof(handshake));
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-bytecode.h: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 string[0];
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-bytecode.h:206: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 data[0];
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1292: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1485: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 yymsgbuf[128];
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:81:13:  [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.
		memset(&((char *) *fb)[old_alloc_len], 0, new_alloc_len - old_alloc_len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:99: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(&(*fb)->b.data[offset], data, len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:114: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(&(*fb)->b.data[offset], data, len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:130: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(&(*fb)->b.data[offset], data, len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:268: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(insn->data, &ref_offset, sizeof(ref_offset));
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:400: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(insn->data, &symbol_offset,
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:443: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(insn->data, &index, sizeof(index));
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:535: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(insn->data, &node->u.load.u.num, sizeof(int64_t));
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:550: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(insn->data, &node->u.load.u.flt, sizeof(double));
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/memstream.h:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmpname[PATH_MAX];
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/memstream.h:44:8:  [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).
	ret = mkstemp(tmpname);
data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c:438: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[PATH_MAX];
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c: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 health_sock_path[PATH_MAX];
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c:54:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *sessiond_thread_name[NR_HEALTH_SESSIOND_TYPES] = {
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c:68:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *consumerd_thread_name[NR_HEALTH_CONSUMERD_TYPES] = {
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c:77:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *relayd_thread_name[NR_HEALTH_RELAYD_TYPES] = {
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl-health.c:87:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char **thread_name[NR_HEALTH_COMPONENT] = {
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char sessiond_sock_path[PATH_MAX];
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:119: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(dst, src, sizeof(struct lttng_domain));
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:820: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, provider_name, provider_len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.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(buf + provider_len, ctx_name, ctx_len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:823: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(&lsm.u.context.ctx, ctx, sizeof(struct lttng_event_context));
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1387: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(varlen_data,
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1393: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(varlen_data
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1543: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(&lsm.u.channel.extended, extended, sizeof(*extended));
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1550: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(&lsm.u.channel.extended, extended, sizeof(*extended));
data/ltt-control-2.12.2/src/lib/lttng-ctl/save.c:209: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(&lsm.u.save_session.attr, attr,
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:56: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:105: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:139: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:171: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:196: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:229: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:269: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:312: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:402: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:434: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:467: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:473: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("/dev/null", O_RDONLY);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:513: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:544: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:589: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:644: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:759: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[BUF_SIZE];
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:26: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[10] = "test";
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:27: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[10] = "\\*";
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:35:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nr_iter = atoi(argv[1]);
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:40:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nr_usec = atoi(argv[2]);
data/ltt-control-2.12.2/tests/regression/tools/health/health_check.c:88:15:  [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 const char *cnames[NR_LTTNG_HEALTH_CONSUMERD] = {
data/ltt-control-2.12.2/tests/regression/tools/live/live_test.c:58: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/ltt-control-2.12.2/tests/regression/tools/notification/notification.c:96: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_WRONLY | O_NONBLOCK);
data/ltt-control-2.12.2/tests/regression/tools/notification/notification.c:725:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	app_pid = (pid_t) atoi(argv[4]);
data/ltt-control-2.12.2/tests/regression/ust/clock-override/lttng-ust-clock-override-test.c:36: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(uuid, myuuid, LTTNG_UST_UUID_STR_LEN);
data/ltt-control-2.12.2/tests/regression/ust/high-throughput/main.c:61: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[10] = "test";
data/ltt-control-2.12.2/tests/regression/ust/high-throughput/main.c:69: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).
		delay = atoi(argv[1]);
data/ltt-control-2.12.2/tests/regression/ust/libc-wrapper/prog.c:27: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(ptrs[i], teststr, sizeof(teststr));
data/ltt-control-2.12.2/tests/regression/ust/linking/demo.c:35: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[10] = "test";
data/ltt-control-2.12.2/tests/regression/ust/linking/demo.c:41: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).
		delay = atoi(argv[1]);
data/ltt-control-2.12.2/tests/regression/ust/multi-session/gen-nevents.c:32:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nr_iter = atoi(argv[1]);
data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/demo.c:31: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[10] = "test";
data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/demo.c:37: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).
		delay = atoi(argv[1]);
data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c:501: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 *output_files[files_to_create];
data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c:546: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 *output_files[files_to_create];
data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c:613: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 *output_files[files_to_create];
data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c:688: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 read_buf[sizeof(file_contents)];
data/ltt-control-2.12.2/tests/unit/test_kernel_data.c:37:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char random_string[RANDOM_STRING_LEN];
data/ltt-control-2.12.2/tests/unit/test_relayd_backward_compat_group_by_session.c:106: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 relay_session_creation_datetime[DATETIME_STR_LEN];
data/ltt-control-2.12.2/tests/unit/test_session.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char random_string[RANDOM_STRING_LEN];
data/ltt-control-2.12.2/tests/unit/test_session.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 session_name[NAME_MAX];
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:43:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char random_string[RANDOM_STRING_LEN];
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:188: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 tmppath[PATH_MAX] = {};
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:228: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 tmppath[PATH_MAX];
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.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 name[100], tmppath[PATH_MAX], real_tree_origin[PATH_MAX];
data/ltt-control-2.12.2/tests/unit/test_utils_parse_size_suffix.c:104: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 name[100];
data/ltt-control-2.12.2/tests/unit/test_utils_parse_size_suffix.c:113: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 name[100];
data/ltt-control-2.12.2/tests/unit/test_utils_parse_time_suffix.c:101: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 name[256];
data/ltt-control-2.12.2/tests/unit/test_utils_parse_time_suffix.c:110: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 name[100];
data/ltt-control-2.12.2/tests/unit/test_uuid.c:93: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 uuid_str[LTTNG_UUID_STR_LEN];
data/ltt-control-2.12.2/tests/utils/testapp/gen-kernel-test-events/gen-kernel-test-events.c:55: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(LTTNG_MODULES_FILE, O_RDWR);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ns-events/gen-ns-events.c:90: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ltt-control-2.12.2/tests/utils/testapp/gen-syscall-events/gen-syscall-events.c:25: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[MAX_LEN];
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c:93: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.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 text[10] = "test";
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.c:86:14:  [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).
			nr_iter = atoi(optarg);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.c:89:14:  [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).
			nr_usec = atoi(optarg);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents-str/gen-ust-nevents-str.c:30: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).
		count = atoi(argv[1]);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:39: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[10] = "test";
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:57:14:  [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).
			nr_iter = atoi(optarg);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:60:14:  [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).
			nr_usec = atoi(optarg);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c:54:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nr_iter = atoi(argv[1]);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c:59:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		nr_usec = atoi(argv[2]);
data/ltt-control-2.12.2/include/lttng/condition/condition-internal.h:35:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	condition_equal_cb equal;
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:90:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(health_unix_sock_path) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-consumerd/health-consumerd.c:120:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(health_unix_sock_path) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-consumerd/lttng-consumerd.c:496:3:  [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(100000);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:953:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, output_path, PATH_MAX);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:955:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(dest, "/metadata", PATH_MAX - strlen(dest) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:955: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).
	strncat(dest, "/metadata", PATH_MAX - strlen(dest) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:957:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(src, input_path, PATH_MAX);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:959:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
	strncat(src, "/metadata", PATH_MAX - strlen(dest) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:959: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).
	strncat(src, "/metadata", PATH_MAX - strlen(dest) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:987: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).
	path_len = strlen(input_path);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1005:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		name_len = strlen(entry->d_name);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1027:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(output_subpath, output_path,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1030:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(output_subpath, "/",
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1031: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).
				sizeof(output_subpath) - strlen(output_subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1032:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(output_subpath, entry->d_name,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1033: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).
				sizeof(output_subpath) - strlen(output_subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1042:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(input_subpath, input_path,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1045:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(input_subpath, "/",
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1046:29:  [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).
				sizeof(input_subpath) - strlen(input_subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1047:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(input_subpath, entry->d_name,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1048:29:  [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).
				sizeof(input_subpath) - strlen(input_subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1094: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).
	path_len = strlen(path);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1113:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		name_len = strlen(entry->d_name);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1139:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(subpath, path, PATH_MAX);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1141:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(subpath, "/",
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1142: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).
				        PATH_MAX - strlen(subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1143:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(subpath, entry->d_name,
data/ltt-control-2.12.2/src/bin/lttng-crash/lttng-crash.c:1144: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).
				        PATH_MAX - strlen(subpath) - 1);
data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.c:106: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(local_session_name)) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.c:156: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).
			second_token_ptr + strlen(local_session_name);
data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.c:157: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(leftover_second_token_ptr);
data/ltt-control-2.12.2/src/bin/lttng-relayd/backward-compatibility-group-by.c:167: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(local_session_name) - DATETIME_STR_LEN + 1;
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-4.c:50:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(session_name, session_info.session_name, LTTNG_NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng-relayd/cmd-2-4.c:58:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(hostname, session_info.hostname, LTTNG_HOST_NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:137:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(health_unix_sock_path, health_path,
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:203:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(health_unix_sock_path) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/health-relayd.c:211:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(health_unix_sock_path) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1463: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).
				session ? strlen(session->output_path) + 1 : 0;
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:1541: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).
		const size_t len = strlen(channel_path);
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:3000: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(session->output_path),
data/ltt-control-2.12.2/src/bin/lttng-relayd/main.c:3031:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	path_length = strlen(closed_trace_chunk_path) + 1;
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:88: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(session_directory) >= LTTNG_PATH_MAX) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:140: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(session_directory) >= LTTNG_PATH_MAX) {
data/ltt-control-2.12.2/src/bin/lttng-relayd/session.c:254: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).
	const size_t name_len = strlen(name);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:143:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(event->filter_expression)) != 0) {
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:360: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(reply->payload + offset) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:407: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).
		filter_expression_length = strlen(event->filter_expression) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:523: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).
	app_ctx_provider_name_len = strlen(ctx->provider_name) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:524:21:  [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_ctx_name_len = strlen(ctx->ctx_name) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/agent.c:1131:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(event->name, name, sizeof(event->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.c:126:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(reg->root_shm_path, root_shm_path, sizeof(reg->root_shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.c:128:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(reg->shm_path, shm_path, sizeof(reg->shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.c:252:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(reg->root_shm_path, root_shm_path, sizeof(reg->root_shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/buffer-registry.c:254:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(reg->shm_path, shm_path, sizeof(reg->shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:198:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				tmplen = strlen(config.consumerd64_lib_dir.value) + 1 /* : */ + strlen(tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:198:69:  [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).
				tmplen = strlen(config.consumerd64_lib_dir.value) + 1 /* : */ + strlen(tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:206:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(tmpnew, ":");
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:235:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				tmplen = strlen(config.consumerd32_lib_dir.value) + 1 /* : */ + strlen(tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:235:69:  [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).
				tmplen = strlen(config.consumerd32_lib_dir.value) + 1 /* : */ + strlen(tmp);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:243:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
					strcat(tmpnew, ":");
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:447:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(lus->root_shm_path, session->shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:450:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(lus->shm_path, session->shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:453:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(lus->shm_path, "/ust",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:454:28:  [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).
			sizeof(lus->shm_path) - strlen(lus->shm_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:2117:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	const mode_t old_umask = umask(0);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/client.c:2148:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:406: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).
		*extended_len += strlen(filter_expression) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:439: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).
		filter_len = strlen(filter_expression) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:552:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_events[i].name, event->name, sizeof(tmp_events[i].name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:656:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp[i].name, uevent->attr.name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:763:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((*events)[i].name, event->event->name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:2128: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 size_t max_cmp_len = min(strlen(prefix), LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:2457:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uevent.name, default_event_name, sizeof(uevent.name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:2525:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncmp(event->name, "*", 1) == 0 && strlen(event->name) == 1) {
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:3838:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sessions[i].name, session->name, NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:4960:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(session->shm_path, shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/cmd.c:5481:3:  [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(SESSION_DESTROY_SHM_PATH_CHECK_DELAY_US);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:70: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).
		*consumer_path_offset = strlen(consumer->domain_subdir) + 1;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:738:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		goto equal;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:826:1:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
equal:
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:982:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(msg->u.ask_channel.pathname, pathname,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:987:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msg->u.ask_channel.name, name, sizeof(msg->u.ask_channel.name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:991:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(msg->u.ask_channel.root_shm_path, root_shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:996:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(msg->u.ask_channel.shm_path, shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:1053:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msg->u.channel.pathname, pathname,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:1057:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msg->u.channel.name, name, sizeof(msg->u.channel.name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/consumer.c:1535:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(channel_path),
data/ltt-control-2.12.2/src/bin/lttng-sessiond/context.c:324:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(kctx->ctx.u.perf_counter.name, ctx->u.perf_counter.name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel-consumer.c:46: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).
		*consumer_path_offset = strlen(consumer->domain_subdir);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/kernel.c:1331:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(elist[count].name, event, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.c:248:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ksyscall->name, syscall_table[index].name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/lttng-syscall.c:317:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(events[index].name, syscall_table[i].name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/modprobe.c:522:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		name_len = strlen(next) + 13;
data/ltt-control-2.12.2/src/bin/lttng-sessiond/register.c:42:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	const mode_t old_umask = umask(0);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/register.c:72:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2626:21:  [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).
	session_name_len = strlen(session->name);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2639: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(provided_path);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2644:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(config_file_path, provided_path, sizeof(config_file_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/save.c:2688:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(config_file_path + len, session->name, sizeof(config_file_path) - len);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/shm.c:58:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(~mode);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/snapshot.c:248: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).
		if (!strncmp(output->name, name, strlen(name))) {
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:242:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(lkc->channel->name, DEFAULT_CHANNEL_NAME,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:347:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(attr->u.kprobe.symbol_name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:433:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(attr->u.kretprobe.symbol_name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:439:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(attr->u.ftrace.symbol_name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-kernel.c:459:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(attr->name, ev->name, LTTNG_KERNEL_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.c:383:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(luc->name, DEFAULT_CHANNEL_NAME, sizeof(luc->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.c:386:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(luc->name, chan->name, sizeof(luc->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.c:493:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(local_ust_event->attr.name, ev->name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/trace-ust.c:696:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uctx->ctx.u.perf_counter.name, ctx->u.perf_counter.name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1036:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_chan->name, name, sizeof(ua_chan->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1111:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_event->name, name, sizeof(ua_event->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1769:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_event->name, uevent->attr.name, sizeof(ua_event->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1805:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_chan->name, uchan->name, sizeof(ua_chan->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1888:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_sess->root_shm_path, usess->root_shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1891:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ua_sess->shm_path, usess->shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1915:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(ua_sess->shm_path, tmp_shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:1916: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).
			sizeof(ua_sess->shm_path) - strlen(ua_sess->shm_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-app.c:3364:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(lta->name, msg->name, sizeof(lta->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:112:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(shm_path, ua_sess->shm_path, sizeof(shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:114:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
			strncat(shm_path, "/",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:115: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).
				sizeof(shm_path) - strlen(shm_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:116:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(shm_path, ua_chan->name,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:117: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).
					sizeof(shm_path) - strlen(shm_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:118:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
				strncat(shm_path, "_",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:119: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).
					sizeof(shm_path) - strlen(shm_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-consumer.c:121:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(root_shm_path, ua_sess->root_shm_path, sizeof(root_shm_path));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:154: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(str);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-metadata.c:304: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(entry->string);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:305:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(event->name, name, sizeof(event->name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:364:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(key.name, name, sizeof(key.name));
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:576:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(reg_enum_lookup.name, enum_name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:631:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(reg_enum->name, enum_name, LTTNG_UST_SYM_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:902:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(session->root_shm_path, root_shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:906:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(session->shm_path, shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:909:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(session->metadata_path, shm_path,
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:912:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat(session->metadata_path, "/metadata",
data/ltt-control-2.12.2/src/bin/lttng-sessiond/ust-registry.c:914:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				- strlen(session->metadata_path) - 1);
data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c:654:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(context->u.perf_counter.name, opt->symbol,
data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c:945: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(next) < 2 || next[0] != 'r') {
data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c:1028: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(ctx);
data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c:1064:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(provider_name, ctx + sizeof(app_ctx_prefix) - 1,
data/ltt-control-2.12.2/src/bin/lttng/commands/add_context.c:1074:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ctx_name, ctx + colon_pos + 1, ctx_name_len - 1);
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:295:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(opt_session_name) > NAME_MAX) {
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:307: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(DEFAULT_SESSION_NAME) + 1) == 0) ||
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:309: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(DEFAULT_SESSION_NAME)) == 0 &&
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:310:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(opt_session_name) == strlen(DEFAULT_SESSION_NAME))) {
data/ltt-control-2.12.2/src/bin/lttng/commands/create.c:310:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(opt_session_name) == strlen(DEFAULT_SESSION_NAME))) {
data/ltt-control-2.12.2/src/bin/lttng/commands/destroy.c:98:5:  [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(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US);
data/ltt-control-2.12.2/src/bin/lttng/commands/disable_events.c:247:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(event.name, event_name, sizeof(event.name));
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c:203:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(output_mmap, opt_output, strlen(output_mmap))) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c:205:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (!strncmp(output_splice, opt_output, strlen(output_splice))) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_channels.c:237:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(channel_name) >= sizeof(chan_opts.name)) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:121:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ev->attr.probe.symbol_name, name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:140:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ev->attr.probe.symbol_name, name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:572: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 (!inputstr || strlen(inputstr) == 0) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:615: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 (!inputstr || strlen(inputstr) == 0) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:660: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 (!inputstr || strlen(inputstr) == 0) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:700: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 (!inputstr || strlen(inputstr) == 0) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:813: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).
		length += strlen(names[i]) + 4;
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:821:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ret, preamble, length);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:823:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(ret, "\"");
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:825:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(ret, "\"");
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:952:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(*exclusion) >= LTTNG_SYMBOL_NAME_LEN) {
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1076:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(ev->name, "*");
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1081:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(ev->name, "*");
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1286:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(ev->name, "*");
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1331:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ev->name, event_name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1405:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(ev->name, event_name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng/commands/enable_events.c:1484:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ev->name, event_name, LTTNG_SYMBOL_NAME_LEN);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:192: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).
	const size_t exclusion_fmt_len = strlen(exclusion_fmt);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:241:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(at, "]");
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:344: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).
		filter_msg = malloc(strlen(filter_str) +
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:345:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(filter_fmt) + 1);
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:1146: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).
				filter_msg = malloc(strlen(filter_str) +
data/ltt-control-2.12.2/src/bin/lttng/commands/list.c:1147:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(filter_fmt) + 1);
data/ltt-control-2.12.2/src/bin/lttng/commands/rotate.c:97:10:  [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.
			ret = usleep(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US);
data/ltt-control-2.12.2/src/bin/lttng/commands/set_session.c:95: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).
	if (opt_session_name && strlen(opt_session_name) > NAME_MAX) {
data/ltt-control-2.12.2/src/bin/lttng/commands/stop.c:128:5:  [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(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US);
data/ltt-control-2.12.2/src/bin/lttng/commands/version.c:47:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(version->version, VERSION, NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng/commands/version.c:51:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(version->version_commit, GIT_VERSION, NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng/commands/version.c:52:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(version->version_name, VERSION_NAME, NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng/commands/version.c:53:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(version->package_url, PACKAGE_URL, NAME_MAX);
data/ltt-control-2.12.2/src/bin/lttng/conf.c:271: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).
	char session_name[NAME_MAX + strlen(attr) + 1];
data/ltt-control-2.12.2/src/common/buffer-usage.c:110:21:  [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).
	session_name_len = strlen(usage->session_name) + 1;
data/ltt-control-2.12.2/src/common/buffer-usage.c:111:21:  [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).
	channel_name_len = strlen(usage->channel_name) + 1;
data/ltt-control-2.12.2/src/common/buffer-usage.c:610: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(session_name) == 0) {
data/ltt-control-2.12.2/src/common/buffer-usage.c:664: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(channel_name) == 0) {
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:394: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).
	const size_t base_len = strlen(base);
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:395: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).
	const size_t end_len = end ? strlen(end) : 0;
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:443: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).
	path_len = path ? strlen(path) : 0;
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:452: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).
		cwd_len = strlen(cwd);
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:513: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).
	path_len = strlen(path);
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:532: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).
	handle_path_len = strlen(ref_handle->base_path) + path_len +
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:951:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(path) + 1, sizeof(tmp));
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:955:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(path);
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:963:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (tmp[strlen(tmp) - 1] == '.' &&
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:964:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					tmp[strlen(tmp) - 2] == '.' &&
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:965:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					tmp[strlen(tmp) - 3] == '/') {
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:1214:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		.path_size = strlen(path) + 1,
data/ltt-control-2.12.2/src/common/compat/directory-handle.c:1289: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(entry->d_name) + 1);
data/ltt-control-2.12.2/src/common/compat/string.h:59:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	navail = strlen(s) + 1;
data/ltt-control-2.12.2/src/common/condition.c:103:16:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	is_equal = a->equal ? a->equal(a, b) : true;
data/ltt-control-2.12.2/src/common/condition.c:103:27:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	is_equal = a->equal ? a->equal(a, b) : true;
data/ltt-control-2.12.2/src/common/config/ini.c:53: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).
	char* p = s + strlen(s);
data/ltt-control-2.12.2/src/common/config/ini.c:87:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, size - 1);
data/ltt-control-2.12.2/src/common/config/session-config.c:363: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(value);
data/ltt-control-2.12.2/src/common/config/session-config.c:420:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	in_len = strlen(in_str);
data/ltt-control-2.12.2/src/common/config/session-config.c:725: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).
	base_path_len = strlen(base_path);
data/ltt-control-2.12.2/src/common/config/session-config.c:1803: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((const char *) content),
data/ltt-control-2.12.2/src/common/config/session-config.c:1875:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen((const char *) content),
data/ltt-control-2.12.2/src/common/config/session-config.c:2064: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).
				sym_len = strlen((char *) content);
data/ltt-control-2.12.2/src/common/config/session-config.c:2224: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((const char *) content),
data/ltt-control-2.12.2/src/common/config/session-config.c:2611: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((const char *) content),
data/ltt-control-2.12.2/src/common/config/session-config.c:3810: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).
	path_len = strlen(path);
data/ltt-control-2.12.2/src/common/config/session-config.c:3887: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).
			file_name_len = strlen(result->d_name);
data/ltt-control-2.12.2/src/common/consumer/consumer-stream.c:511:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(stream->name, DEFAULT_METADATA_NAME, sizeof(stream->name));
data/ltt-control-2.12.2/src/common/consumer/consumer.c:1047:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(channel->pathname, pathname, sizeof(channel->pathname));
data/ltt-control-2.12.2/src/common/consumer/consumer.c:1050:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(channel->name, name, sizeof(channel->name));
data/ltt-control-2.12.2/src/common/consumer/consumer.c:1054:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(channel->root_shm_path, root_shm_path, sizeof(channel->root_shm_path));
data/ltt-control-2.12.2/src/common/consumer/consumer.c:1058:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(channel->shm_path, shm_path, sizeof(channel->shm_path));
data/ltt-control-2.12.2/src/common/context.c:26: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(str);
data/ltt-control-2.12.2/src/common/context.c:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(provider_name, str + sizeof(app_ctx_prefix) - 1,
data/ltt-control-2.12.2/src/common/context.c:70:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ctx_name, str + colon_pos + 1, ctx_name_len - 1);
data/ltt-control-2.12.2/src/common/filter.c:50: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(it->bytecode + it->offset + sizeof(uint16_t)) + 1;
data/ltt-control-2.12.2/src/common/hashtable/utils.c:490: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).
	return hashlittle(key, strlen((const char *) key), seed);
data/ltt-control-2.12.2/src/common/kernel-consumer/kernel-consumer.c:1291: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).
		reply.path_length = strlen(path) + 1;
data/ltt-control-2.12.2/src/common/location.c:210:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(location->types.local.absolute_path) + 1;
data/ltt-control-2.12.2/src/common/location.c:214:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(location->types.relay.host) + 1;
data/ltt-control-2.12.2/src/common/location.c:222:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(location->types.relay.relative_path) + 1;
data/ltt-control-2.12.2/src/common/lttng-elf.c:1010: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).
		curr_data_ptr += strlen(curr_provider) + 1;
data/ltt-control-2.12.2/src/common/readwrite.c:41:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + i, count - i);
data/ltt-control-2.12.2/src/common/relayd/relayd.c:163:21:  [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).
	session_name_len = strlen(session_name) + 1;
data/ltt-control-2.12.2/src/common/relayd/relayd.c:164: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).
	hostname_len = strlen(hostname) + 1;
data/ltt-control-2.12.2/src/common/relayd/relayd.c:165: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).
	base_path_len = strlen(base_path) + 1;
data/ltt-control-2.12.2/src/common/relayd/relayd.c:444:21:  [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).
	channel_name_len = strlen(channel_name) + 1;
data/ltt-control-2.12.2/src/common/relayd/relayd.c:445: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).
	pathname_len = strlen(pathname) + 1;
data/ltt-control-2.12.2/src/common/relayd/relayd.c:1344:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	chunk_name_length = overridden_name ? (strlen(chunk_name) + 1) : 0;
data/ltt-control-2.12.2/src/common/runas.c:898:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0);
data/ltt-control-2.12.2/src/common/runas.c:957: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).
	proc_orig_len = strlen(worker->procname);
data/ltt-control-2.12.2/src/common/runas.c:959:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(worker->procname, DEFAULT_RUN_AS_WORKER_NAME, proc_orig_len);
data/ltt-control-2.12.2/src/common/runas.c:1103:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_mask = umask(0);
data/ltt-control-2.12.2/src/common/runas.c:1106:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_mask);
data/ltt-control-2.12.2/src/common/runas.c:1661:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(data.u.extract_elf_symbol_offset.function, function, LTTNG_SYMBOL_NAME_LEN - 1);
data/ltt-control-2.12.2/src/common/session-consumed-size.c:85:21:  [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).
	session_name_len = strlen(consumed->session_name) + 1;
data/ltt-control-2.12.2/src/common/session-consumed-size.c:372:21:  [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).
			!session_name || strlen(session_name) == 0) {
data/ltt-control-2.12.2/src/common/session-descriptor.c:92:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= LTTNG_PATH_MAX) {
data/ltt-control-2.12.2/src/common/session-descriptor.c:685: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(name) != base_header->name_len - 1) {
data/ltt-control-2.12.2/src/common/session-descriptor.c:819:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(descriptor->name) + 1 : 0,
data/ltt-control-2.12.2/src/common/session-descriptor.c:954: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(name) >= LTTNG_NAME_MAX) {
data/ltt-control-2.12.2/src/common/session-rotation.c:114:21:  [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).
	session_name_len = strlen(rotation->session_name) + 1;
data/ltt-control-2.12.2/src/common/session-rotation.c:486:21:  [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).
			!session_name || strlen(session_name) == 0) {
data/ltt-control-2.12.2/src/common/string-utils/string-utils.c:141: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).
	output = zmalloc(strlen(input) + 1);
data/ltt-control-2.12.2/src/common/trace-chunk.c:1181: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).
			new_path_separator_pos - new_path : strlen(new_path);
data/ltt-control-2.12.2/src/common/trace-chunk.c:1186: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).
		const ptrdiff_t path_top_level_len = strlen(path);
data/ltt-control-2.12.2/src/common/trace-chunk.c:1854:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/ltt-control-2.12.2/src/common/tracker.c:280: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).
		value_comm.value.name_len = strlen(name) + 1;
data/ltt-control-2.12.2/src/common/unix.c:34: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(pathname) >= sizeof(s_un.sun_path)) {
data/ltt-control-2.12.2/src/common/unix.c:36: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).
				pathname, strlen(pathname) + 1,
data/ltt-control-2.12.2/src/common/unix.c:51:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, pathname, sizeof(s_un.sun_path));
data/ltt-control-2.12.2/src/common/unix.c:115: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(pathname) >= sizeof(s_un.sun_path)) {
data/ltt-control-2.12.2/src/common/unix.c:117: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).
				pathname, strlen(pathname) + 1,
data/ltt-control-2.12.2/src/common/unix.c:131:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, pathname, sizeof(s_un.sun_path));
data/ltt-control-2.12.2/src/common/uri.c:79: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(supported->leading_string)) == 0) {
data/ltt-control-2.12.2/src/common/uri.c:150:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(dst, addr, size);
data/ltt-control-2.12.2/src/common/uri.c:321:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	purl += strlen(proto->leading_string);
data/ltt-control-2.12.2/src/common/uri.c:333:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_uris[0].dst.path, purl, sizeof(tmp_uris[0].dst.path));
data/ltt-control-2.12.2/src/common/uri.c:460:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_uris[0].subdir, subdir_b, sizeof(tmp_uris[0].subdir));
data/ltt-control-2.12.2/src/common/uri.c:591:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			if (!equal) {
data/ltt-control-2.12.2/src/common/userspace-probe.c:863: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).
	function_name_len = strlen(location_function->function_name);
data/ltt-control-2.12.2/src/common/userspace-probe.c:868: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).
	binary_path_len = strlen(location_function->binary_path);
data/ltt-control-2.12.2/src/common/userspace-probe.c:941: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).
	probe_name_len = strlen(location_tracepoint->probe_name);
data/ltt-control-2.12.2/src/common/userspace-probe.c:947: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).
	provider_name_len = strlen(location_tracepoint->provider_name);
data/ltt-control-2.12.2/src/common/userspace-probe.c:953: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).
	binary_path_len = strlen(location_tracepoint->binary_path);
data/ltt-control-2.12.2/src/common/userspace-probe.c:1420: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).
	function_name_len = strlen(probe_function->function_name) + 1;
data/ltt-control-2.12.2/src/common/userspace-probe.c:1421: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).
	binary_path_len = strlen(probe_function->binary_path) + 1;
data/ltt-control-2.12.2/src/common/userspace-probe.c:1546: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).
	probe_name_len = strlen(probe_tracepoint->probe_name) + 1;
data/ltt-control-2.12.2/src/common/userspace-probe.c:1547: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).
	provider_name_len = strlen(probe_tracepoint->provider_name) + 1;
data/ltt-control-2.12.2/src/common/userspace-probe.c:1548: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).
	binary_path_len = strlen(probe_tracepoint->binary_path) + 1;
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:228:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(stream_shm_path, shm_path, PATH_MAX);
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:235:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(stream_shm_path, cpu_nr,
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:236:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		PATH_MAX - strlen(stream_shm_path) - 1);
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:1341:3:  [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(DEFAULT_METADATA_AVAILABILITY_WAIT_TIME);
data/ltt-control-2.12.2/src/common/ust-consumer/ust-consumer.c:2160: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).
		reply.path_length = strlen(closed_trace_chunk_path) + 1;
data/ltt-control-2.12.2/src/common/utils.c:85: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).
	end = path + strlen(path);
data/ltt-control-2.12.2/src/common/utils.c:168:21:  [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 (try_path_prev[strlen(try_path_prev) - 1] == '/' && prev[0] == '/') {
data/ltt-control-2.12.2/src/common/utils.c:169: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).
			try_path_prev[strlen(try_path_prev) - 1] = '\0';
data/ltt-control-2.12.2/src/common/utils.c:195:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(resolved_path, path, size);
data/ltt-control-2.12.2/src/common/utils.c:217: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).
	path_len = strlen(path);
data/ltt-control-2.12.2/src/common/utils.c:743:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			path_name[strlen(path_name) - 1] == '/')) {
data/ltt-control-2.12.2/src/common/utils.c:807: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).
	str_end = str + strlen(str);
data/ltt-control-2.12.2/src/common/utils.c:914: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).
	str_end = str + strlen(str);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-grammar-test.c:126: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).
			i += strlen(&((char *) ctx->bytecode->b.data)[i]) + 1;
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-lexer.c:877:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-lexer.c:2178: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).
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:166: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 newlen = strlen(gsrc->s) + strlen(gstr->s) + 1;
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:166: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).
	size_t newlen = strlen(gsrc->s) + strlen(gstr->s) + 1;
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:194:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lvalp->gs = gc_string_alloc(parser_ctx, strlen(src) + 1);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-parser.c:1192:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:155:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t oldlen = (old == NULL) ? 0 : strlen(old);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:156:21:  [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 appendlen = strlen(append);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:287: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).
				1, strlen(symbol) + 1);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:423: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).
					1, strlen(op->u.symbol) + 1);
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/filter-visitor-generate-bytecode.c:489: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(node->u.load.u.string.value) + 1;
data/ltt-control-2.12.2/src/lib/lttng-ctl/filter/memstream.h:43:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(tmpname, "/tmp/lttng-tmp-XXXXXX", PATH_MAX);
data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c:182: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(session_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c:220: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(url);
data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c:440: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).
	if (!attr || !url || strlen(url) >= PATH_MAX) {
data/ltt-control-2.12.2/src/lib/lttng-ctl/load.c:591: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(session_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:95:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dst, src, len);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:725:4:  [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(DEFAULT_DATA_AVAILABILITY_WAIT_TIME_US);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:799: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).
		provider_len = strlen(provider_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:806: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).
		ctx_len = strlen(ctx_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:956: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(filter_expression), "r");
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1039: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).
	lsm->u.enable.expression_len = strlen(filter_expression) + 1;
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1721: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).
		size_t home_dir_len = home_dir ? strlen(home_dir) + 1 : 0;
data/ltt-control-2.12.2/src/lib/lttng-ctl/lttng-ctl.c:1857: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(uris[0].subdir) == 0) {
data/ltt-control-2.12.2/src/lib/lttng-ctl/rotate.c:213:21:  [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).
	session_name_len = strlen(session_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/rotate.c:278: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(session_name) >= sizeof(lsm.session.name)) {
data/ltt-control-2.12.2/src/lib/lttng-ctl/save.c:86: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(session_name);
data/ltt-control-2.12.2/src/lib/lttng-ctl/save.c:124: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(url);
data/ltt-control-2.12.2/src/lib/lttng-ctl/tracker.c:247: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).
		const size_t len = value ? strlen(value) + 1 : 0;                                                    \
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:82:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:123:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:157:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:183:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:216:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:247:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:294:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:337:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:414:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:446:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:493:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:526:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:567:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:611:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:633:3:  [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(100);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:660:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:743:3:  [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(rand() % 30);
data/ltt-control-2.12.2/tests/regression/kernel/select_poll_epoll.c:805:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(wait_fd, buf, BUF_SIZE);
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:49:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest, i, netint, values, text, strlen(text), escape, dbl, flt,
data/ltt-control-2.12.2/tests/regression/tools/filtering/gen-ust-events.c:51:3:  [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(nr_usec);
data/ltt-control-2.12.2/tests/regression/tools/health/health_check.c:131: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).
		size_t relayd_path_arg_len = strlen("--relayd-path=");
data/ltt-control-2.12.2/tests/regression/tools/live/live_test.c:419:3:  [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(50);
data/ltt-control-2.12.2/tests/regression/tools/notification/rotation.c:313:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ok(chunk_path && !strncmp(session->output_path, chunk_path, strlen(session->output_path)),
data/ltt-control-2.12.2/tests/regression/tools/rotation/schedule_api.c:81:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!equal) {
data/ltt-control-2.12.2/tests/regression/tools/rotation/schedule_api.c:85:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/ltt-control-2.12.2/tests/regression/ust/high-throughput/main.c:76:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(text), dbl, flt);
data/ltt-control-2.12.2/tests/regression/ust/linking/demo.c:52: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).
			   text, strlen(text), dbl, flt);
data/ltt-control-2.12.2/tests/regression/ust/overlap/demo/demo.c:48: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).
			   text, strlen(text), dbl, flt);
data/ltt-control-2.12.2/tests/unit/ini_config/ini_config.c:74: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(argv[1]) >= LTTNG_PATH_MAX) {
data/ltt-control-2.12.2/tests/unit/test_fd_tracker.c:709:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(fd, read_pos, to_read);
data/ltt-control-2.12.2/tests/unit/test_kernel_data.c:153:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(event->event->name),
data/ltt-control-2.12.2/tests/unit/test_relayd_backward_compat_group_by_session.c:165: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).
		ok(strncmp(expected, result, strlen(expected)) == 0,
data/ltt-control-2.12.2/tests/unit/test_session.c:152:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(session_name, session->name, sizeof(session_name));
data/ltt-control-2.12.2/tests/unit/test_session.c:229: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(tmp->name),
data/ltt-control-2.12.2/tests/unit/test_uri.c:38:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[0].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:44:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[1].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:68:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[1].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:86:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[0].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:92:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[1].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:110:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[0].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:116:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[1].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:170:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   strlen(uri[0].subdir) == 0 &&
data/ltt-control-2.12.2/tests/unit/test_uri.c:207: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(uri1[0].subdir) == 0);
data/ltt-control-2.12.2/tests/unit/test_uri.c:213: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(uri1[1].subdir) == 0);
data/ltt-control-2.12.2/tests/unit/test_uri.c:223: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(uri2[0].subdir) == 0);
data/ltt-control-2.12.2/tests/unit/test_uri.c:229: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(uri2[1].subdir) == 0);
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:161:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name[strlen(name) - 1] = '*';
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:179:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 0), random_name,
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:181:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 1), random_name,
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:211:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 0),
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:213:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 1),
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:217:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion_copy, 0),
data/ltt-control-2.12.2/tests/unit/test_ust_data.c:219:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion_copy, 1),
data/ltt-control-2.12.2/tests/unit/test_utils_expand_path.c:291: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).
	treelen = strlen(real_tree_origin) + 1;
data/ltt-control-2.12.2/tests/utils/testapp/gen-kernel-test-events/gen-kernel-test-events.c:62: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).
	len = write(fd, nr_events_str, strlen(nr_events_str) + 1);
data/ltt-control-2.12.2/tests/utils/testapp/gen-kernel-test-events/gen-kernel-test-events.c:63:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len != strlen(nr_events_str) + 1) {
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-events/gen-ust-events.c:144: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(text), dbl, flt);
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:95:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest1, i, netint, values, text, strlen(text),
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:97:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest2, i, netint, values, text, strlen(text),
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:99:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest3, i, netint, values, text, strlen(text),
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:101:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest4, i, netint, values, text, strlen(text),
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c:103:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tracepoint(tp, tptest5, i, netint, values, text, strlen(text),
data/ltt-control-2.12.2/tests/utils/testapp/gen-ust-tracef/gen-ust-tracef.c:76:3:  [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(nr_usec);
data/ltt-control-2.12.2/tests/utils/utils.c:50:9:  [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.
		ret = usleep(time_remaining_ns / (int64_t) NSEC_PER_USEC);

ANALYSIS SUMMARY:

Hits = 1134
Lines analyzed = 177871 in approximately 4.08 seconds (43590 lines/second)
Physical Source Lines of Code (SLOC) = 126269
Hits@level = [0] 426 [1] 387 [2] 583 [3]  30 [4] 113 [5]  21
Hits@level+ = [0+] 1560 [1+] 1134 [2+] 747 [3+] 164 [4+] 134 [5+]  21
Hits/KSLOC@level+ = [0+] 12.3546 [1+] 8.98083 [2+] 5.91594 [3+] 1.29881 [4+] 1.06123 [5+] 0.166312
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.