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/ust-2.12.0/liblttng-ust-ctl/ustctl.c
Examining data/ust-2.12.0/liblttng-ust-ctl/ust-ctl-private.h
Examining data/ust-2.12.0/liblttng-ust-java/lttng_ust_java.h
Examining data/ust-2.12.0/liblttng-ust-java/LTTngUst.c
Examining data/ust-2.12.0/doc/examples/getcpu-override/lttng-ust-getcpu-override-example.c
Examining data/ust-2.12.0/doc/examples/demo-tracef/demo-tracef.c
Examining data/ust-2.12.0/doc/examples/demo-tracelog/demo-tracelog.c
Examining data/ust-2.12.0/doc/examples/demo/ust_tests_demo2.h
Examining data/ust-2.12.0/doc/examples/demo/tp.c
Examining data/ust-2.12.0/doc/examples/demo/ust_tests_demo.h
Examining data/ust-2.12.0/doc/examples/demo/demo.c
Examining data/ust-2.12.0/doc/examples/demo/tp3.c
Examining data/ust-2.12.0/doc/examples/demo/ust_tests_demo3.h
Examining data/ust-2.12.0/doc/examples/demo/tp2.c
Examining data/ust-2.12.0/doc/examples/clock-override/lttng-ust-clock-override-example.c
Examining data/ust-2.12.0/doc/examples/gen-tp/sample.c
Examining data/ust-2.12.0/doc/examples/hello-static-lib/tp.c
Examining data/ust-2.12.0/doc/examples/hello-static-lib/ust_tests_hello.h
Examining data/ust-2.12.0/doc/examples/hello-static-lib/hello.c
Examining data/ust-2.12.0/doc/examples/easy-ust/tp.c
Examining data/ust-2.12.0/doc/examples/easy-ust/sample_component_provider.h
Examining data/ust-2.12.0/doc/examples/easy-ust/sample.c
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/aligner-lib.cpp
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.cpp
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/aligner.cpp
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/tester-lib.cpp
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/aligner-lib.h
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/tester-lib.h
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/tracepoint-provider.h
Examining data/ust-2.12.0/doc/examples/cmake-multiple-shared-libraries/tester.cpp
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client-overwrite.c
Examining data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c
Examining data/ust-2.12.0/liblttng-ust/tracef.c
Examining data/ust-2.12.0/liblttng-ust/creds.h
Examining data/ust-2.12.0/liblttng-ust/getenv.c
Examining data/ust-2.12.0/liblttng-ust/ns.h
Examining data/ust-2.12.0/liblttng-ust/lttng-probes.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-perf-counters.c
Examining data/ust-2.12.0/liblttng-ust/ust_lib.c
Examining data/ust-2.12.0/liblttng-ust/getenv.h
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vpid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client-overwrite-rt.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vegid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-ip.c
Examining data/ust-2.12.0/liblttng-ust/filter-bytecode.h
Examining data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c
Examining data/ust-2.12.0/liblttng-ust/lttng-rb-clients.h
Examining data/ust-2.12.0/liblttng-ust/lttng-getcpu.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-cpu-id.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vgid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-metadata-client.h
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.h
Examining data/ust-2.12.0/liblttng-ust/ust_lib.h
Examining data/ust-2.12.0/liblttng-ust/tracepoint-internal.h
Examining data/ust-2.12.0/liblttng-ust/lttng-clock.c
Examining data/ust-2.12.0/liblttng-ust/string-utils.c
Examining data/ust-2.12.0/liblttng-ust/lttng-tracer-core.h
Examining data/ust-2.12.0/liblttng-ust/lttng-context-provider.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-metadata-client.c
Examining data/ust-2.12.0/liblttng-ust/error.h
Examining data/ust-2.12.0/liblttng-ust/lttng-tracer.h
Examining data/ust-2.12.0/liblttng-ust/lttng-context-pid-ns.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-dynamic-type.c
Examining data/ust-2.12.0/liblttng-ust/lttng-events.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client-discard.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-procname.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vsgid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-pthread-id.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client-discard-rt.c
Examining data/ust-2.12.0/liblttng-ust/tracepoint.c
Examining data/ust-2.12.0/liblttng-ust/perf_event.h
Examining data/ust-2.12.0/liblttng-ust/jhash.h
Examining data/ust-2.12.0/liblttng-ust/clock.h
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-statedump-provider.h
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-elf.c
Examining data/ust-2.12.0/liblttng-ust/tracepoint-weak-test.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-user-ns.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vsuid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context.c
Examining data/ust-2.12.0/liblttng-ust/lttng-hash-helper.h
Examining data/ust-2.12.0/liblttng-ust/lttng-filter-validator.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client.h
Examining data/ust-2.12.0/liblttng-ust/wait.h
Examining data/ust-2.12.0/liblttng-ust/ust-core.c
Examining data/ust-2.12.0/liblttng-ust/lttng-filter.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vtid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-uuid.h
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-tracef-provider.h
Examining data/ust-2.12.0/liblttng-ust/lttng-context-mnt-ns.c
Examining data/ust-2.12.0/liblttng-ust/tracelog.c
Examining data/ust-2.12.0/liblttng-ust/compat.h
Examining data/ust-2.12.0/liblttng-ust/string-utils.h
Examining data/ust-2.12.0/liblttng-ust/lttng-filter.h
Examining data/ust-2.12.0/liblttng-ust/lttng-ust-tracelog-provider.h
Examining data/ust-2.12.0/liblttng-ust/lttng-context-vuid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-veuid.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-cgroup-ns.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-ipc-ns.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-net-ns.c
Examining data/ust-2.12.0/liblttng-ust/lttng-context-uts-ns.c
Examining data/ust-2.12.0/snprintf/mbrtowc_sb.c
Examining data/ust-2.12.0/snprintf/snprintf.c
Examining data/ust-2.12.0/snprintf/fvwrite.h
Examining data/ust-2.12.0/snprintf/wcio.h
Examining data/ust-2.12.0/snprintf/vfprintf.c
Examining data/ust-2.12.0/snprintf/fvwrite.c
Examining data/ust-2.12.0/snprintf/local.h
Examining data/ust-2.12.0/snprintf/fileext.h
Examining data/ust-2.12.0/snprintf/patient_write.c
Examining data/ust-2.12.0/snprintf/fflush.c
Examining data/ust-2.12.0/snprintf/various.h
Examining data/ust-2.12.0/snprintf/core.c
Examining data/ust-2.12.0/snprintf/wsetup.c
Examining data/ust-2.12.0/snprintf/floatio.h
Examining data/ust-2.12.0/liblttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.h
Examining data/ust-2.12.0/liblttng-ust-cyg-profile/lttng-ust-cyg-profile-fast.c
Examining data/ust-2.12.0/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h
Examining data/ust-2.12.0/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/common/lttng_ust_context.c
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/common/lttng_ust_context.h
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/jul/lttng_ust_jul.h
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/jul/lttng_ust_jul.c
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.h
Examining data/ust-2.12.0/liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.c
Examining data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c
Examining data/ust-2.12.0/liblttng-ust-libc-wrapper/ust_libc.h
Examining data/ust-2.12.0/liblttng-ust-libc-wrapper/ust_pthread.h
Examining data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-pthread.c
Examining data/ust-2.12.0/liblttng-ust-dl/lttng-ust-dl.c
Examining data/ust-2.12.0/liblttng-ust-dl/ust_dl.c
Examining data/ust-2.12.0/liblttng-ust-dl/ust_dl.h
Examining data/ust-2.12.0/libringbuffer/nohz.h
Examining data/ust-2.12.0/libringbuffer/shm_types.h
Examining data/ust-2.12.0/libringbuffer/shm.c
Examining data/ust-2.12.0/libringbuffer/ring_buffer_frontend.c
Examining data/ust-2.12.0/libringbuffer/frontend_internal.h
Examining data/ust-2.12.0/libringbuffer/frontend_api.h
Examining data/ust-2.12.0/libringbuffer/getcpu.h
Examining data/ust-2.12.0/libringbuffer/shm.h
Examining data/ust-2.12.0/libringbuffer/smp.c
Examining data/ust-2.12.0/libringbuffer/api.h
Examining data/ust-2.12.0/libringbuffer/backend_types.h
Examining data/ust-2.12.0/libringbuffer/mmap.h
Examining data/ust-2.12.0/libringbuffer/rb-init.h
Examining data/ust-2.12.0/libringbuffer/smp.h
Examining data/ust-2.12.0/libringbuffer/frontend_types.h
Examining data/ust-2.12.0/libringbuffer/backend_internal.h
Examining data/ust-2.12.0/libringbuffer/ring_buffer_backend.c
Examining data/ust-2.12.0/libringbuffer/vatomic.h
Examining data/ust-2.12.0/libringbuffer/shm_internal.h
Examining data/ust-2.12.0/libringbuffer/backend.h
Examining data/ust-2.12.0/libringbuffer/frontend.h
Examining data/ust-2.12.0/liblttng-ust-fd/lttng-ust-fd.c
Examining data/ust-2.12.0/tests/gcc-weak-hidden/d.c
Examining data/ust-2.12.0/tests/gcc-weak-hidden/c.c
Examining data/ust-2.12.0/tests/gcc-weak-hidden/main.c
Examining data/ust-2.12.0/tests/gcc-weak-hidden/b.c
Examining data/ust-2.12.0/tests/snprintf/snprintf.c
Examining data/ust-2.12.0/tests/test-app-ctx/tp.c
Examining data/ust-2.12.0/tests/test-app-ctx/ust_tests_hello.h
Examining data/ust-2.12.0/tests/test-app-ctx/hello.c
Examining data/ust-2.12.0/tests/same_line_tracepoint/same_line_tracepoint.c
Examining data/ust-2.12.0/tests/same_line_tracepoint/ust_tests_sameline.h
Examining data/ust-2.12.0/tests/ctf-types/tp.c
Examining data/ust-2.12.0/tests/ctf-types/ust_tests_ctf_types.h
Examining data/ust-2.12.0/tests/ctf-types/ctf-types.c
Examining data/ust-2.12.0/tests/utils/tap.c
Examining data/ust-2.12.0/tests/utils/tap.h
Examining data/ust-2.12.0/tests/ust-elf/ust-elf.c
Examining data/ust-2.12.0/tests/ust-elf/data/main.c
Examining data/ust-2.12.0/tests/ust-elf/data/pic/libhello.c
Examining data/ust-2.12.0/tests/ust-elf/data/pic/hello.c
Examining data/ust-2.12.0/tests/hello.cxx/tp-cpp.cpp
Examining data/ust-2.12.0/tests/hello.cxx/ust_tests_hello.h
Examining data/ust-2.12.0/tests/hello.cxx/hello.cpp
Examining data/ust-2.12.0/tests/benchmark/tp.c
Examining data/ust-2.12.0/tests/benchmark/ust_tests_benchmark.h
Examining data/ust-2.12.0/tests/benchmark/bench.c
Examining data/ust-2.12.0/tests/hello/tp.c
Examining data/ust-2.12.0/tests/hello/ust_tests_hello.h
Examining data/ust-2.12.0/tests/hello/hello.c
Examining data/ust-2.12.0/tests/hello-many/ust_tests_hello_many.h
Examining data/ust-2.12.0/tests/hello-many/tp.c
Examining data/ust-2.12.0/tests/hello-many/hello-many.c
Examining data/ust-2.12.0/liblttng-ust-fork/ustfork.c
Examining data/ust-2.12.0/include/helper.h
Examining data/ust-2.12.0/include/usterr-signal-safe.h
Examining data/ust-2.12.0/include/ust_snprintf.h
Examining data/ust-2.12.0/include/share.h
Examining data/ust-2.12.0/include/lttng/tracepoint-types.h
Examining data/ust-2.12.0/include/lttng/ust-dlfcn.h
Examining data/ust-2.12.0/include/lttng/ust-tracepoint-event.h
Examining data/ust-2.12.0/include/lttng/ringbuffer-config.h
Examining data/ust-2.12.0/include/lttng/tracepoint.h
Examining data/ust-2.12.0/include/lttng/ust-tracepoint-event-nowrite.h
Examining data/ust-2.12.0/include/lttng/ust-events.h
Examining data/ust-2.12.0/include/lttng/bug.h
Examining data/ust-2.12.0/include/lttng/ust-tracepoint-event-write.h
Examining data/ust-2.12.0/include/lttng/ust.h
Examining data/ust-2.12.0/include/lttng/tracef.h
Examining data/ust-2.12.0/include/lttng/tracelog.h
Examining data/ust-2.12.0/include/lttng/ust-error.h
Examining data/ust-2.12.0/include/lttng/ust-endian.h
Examining data/ust-2.12.0/include/lttng/ust-tracer.h
Examining data/ust-2.12.0/include/lttng/ringbuffer-abi.h
Examining data/ust-2.12.0/include/lttng/ust-clock.h
Examining data/ust-2.12.0/include/lttng/ust-getcpu.h
Examining data/ust-2.12.0/include/lttng/lttng-ust-tracef.h
Examining data/ust-2.12.0/include/lttng/ust-compiler.h
Examining data/ust-2.12.0/include/lttng/ust-tid.h
Examining data/ust-2.12.0/include/lttng/lttng-ust-tracelog.h
Examining data/ust-2.12.0/include/lttng/ust-ctl.h
Examining data/ust-2.12.0/include/lttng/ust-abi.h
Examining data/ust-2.12.0/include/lttng/align.h
Examining data/ust-2.12.0/include/lttng/tracepoint-rcu.h
Examining data/ust-2.12.0/include/lttng/bitfield.h
Examining data/ust-2.12.0/include/lttng/ust-dynamic-type.h
Examining data/ust-2.12.0/include/lttng/ust-tracepoint-event-reset.h
Examining data/ust-2.12.0/include/lttng/tracepoint-event.h
Examining data/ust-2.12.0/include/lttng/ust-elf.h
Examining data/ust-2.12.0/include/lttng/ust-context-provider.h
Examining data/ust-2.12.0/include/ust-comm.h
Examining data/ust-2.12.0/include/ust-fd.h
Examining data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c
Examining data/ust-2.12.0/liblttng-ust-comm/lttng-ust-fd-tracker.c
Examining data/ust-2.12.0/liblttng-ust-python-agent/lttng_ust_python.c
Examining data/ust-2.12.0/liblttng-ust-python-agent/lttng_ust_python.h

FINAL RESULTS:

data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c:498:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
				path_len = readlink("/proc/self/exe",
data/ust-2.12.0/include/lttng/bug.h:35: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/ust-2.12.0/include/usterr-signal-safe.h:68:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__ ((format (printf, 3, 4)));
data/ust-2.12.0/include/usterr-signal-safe.h:70:44:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static inline void __attribute__ ((format (printf, 1, 2)))
data/ust-2.12.0/liblttng-ust/compat.h:112:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	ret = sprintf(name + len, LTTNG_UST_PROCNAME_SUFFIX);
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:492:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(name, orig_name);
data/ust-2.12.0/liblttng-ust/lttng-filter.h:66: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 bytecode in %s:%s@%u] " fmt,		\
data/ust-2.12.0/liblttng-ust/lttng-filter.h:73: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 bytecode in %s:%s@%u] " fmt,	\
data/ust-2.12.0/tests/snprintf/snprintf.c:38:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(test_desc, test_desc_fmt_str, escaped_test_fmt_str);
data/ust-2.12.0/tests/utils/tap.c:279: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/ust-2.12.0/liblttng-ust-dl/lttng-ust-dl.c:103:7:  [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.
	if (!realpath(so_name, resolved_path)) {
data/ust-2.12.0/liblttng-ust-dl/lttng-ust-dl.c:165:7:  [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.
	if (!realpath(so_name, resolved_path)) {
data/ust-2.12.0/liblttng-ust/getenv.c:96: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.
		e->value = getenv(e->key);
data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c:517:9:  [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.
			if (!realpath(info->dlpi_name,
data/ust-2.12.0/snprintf/core.c:35:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		ust_debug = getenv("LTTNG_UST_DEBUG");
data/ust-2.12.0/tests/utils/tap.c:151: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/ust-2.12.0/doc/examples/clock-override/lttng-ust-clock-override-example.c:84: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/ust-2.12.0/doc/examples/demo-tracef/demo-tracef.c:34: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/ust-2.12.0/doc/examples/demo-tracelog/demo-tracelog.c:32: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/ust-2.12.0/doc/examples/demo/demo.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 text[10] = "test";
data/ust-2.12.0/doc/examples/demo/demo.c:48: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/ust-2.12.0/doc/examples/hello-static-lib/hello.c:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/doc/examples/hello-static-lib/hello.c:80: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/ust-2.12.0/include/lttng/ringbuffer-config.h:217:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_RING_BUFFER_CONFIG_PADDING];
data/ust-2.12.0/include/lttng/ringbuffer-config.h:268:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_RING_BUFFER_CTX_PADDING];
data/ust-2.12.0/include/lttng/tracepoint-types.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 padding[LTTNG_UST_TRACEPOINT_PADDING];
data/ust-2.12.0/include/lttng/ust-abi.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 padding[LTTNG_UST_CHANNEL_PADDING];
data/ust-2.12.0/include/lttng/ust-abi.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_STREAM_PADDING1];
data/ust-2.12.0/include/lttng/ust-abi.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];	/* event name */
data/ust-2.12.0/include/lttng/ust-abi.h: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 padding[LTTNG_UST_EVENT_PADDING1];
data/ust-2.12.0/include/lttng/ust-abi.h:117: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/ust-2.12.0/include/lttng/ust-abi.h:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:132:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:166:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LTTNG_UST_SYM_NAME_LEN];
data/ust-2.12.0/include/lttng/ust-abi.h:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:182: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/ust-2.12.0/include/lttng/ust-abi.h:201: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/ust-2.12.0/include/lttng/ust-abi.h:207:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[LTTNG_UST_SYM_NAME_LEN];	/* provider:name */
data/ust-2.12.0/include/lttng/ust-abi.h:209:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_UST_TRACEPOINT_ITER_PADDING];
data/ust-2.12.0/include/lttng/ust-abi.h:227:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.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 padding2[LTTNG_UST_OBJECT_DATA_PADDING2];
data/ust-2.12.0/include/lttng/ust-abi.h:251:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:254: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/ust-2.12.0/include/lttng/ust-abi.h:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h:265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-abi.h: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 padding[LTTNG_UST_EXCLUSION_PADDING];
data/ust-2.12.0/include/lttng/ust-abi.h:272:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-ctl.h:59: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/ust-2.12.0/include/lttng/ust-ctl.h:338:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-ctl.h:347:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[USTCTL_UST_FLOAT_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-ctl.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_ENUM_VALUE_PADDING];
data/ust-2.12.0/include/lttng/ust-ctl.h:364:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-ctl.h:369: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/ust-2.12.0/include/lttng/ust-ctl.h:377: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/ust-2.12.0/include/lttng/ust-ctl.h:385:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[USTCTL_UST_BASIC_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-ctl.h:410: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/ust-2.12.0/include/lttng/ust-ctl.h:417: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/ust-2.12.0/include/lttng/ust-ctl.h:423:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/include/lttng/ust-ctl.h: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 padding[USTCTL_UST_FIELD_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char padding[LTTNG_UST_ENUM_ENTRY_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:157:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_UST_INTEGER_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-events.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_FLOAT_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_UST_BASIC_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:235: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_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-events.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 padding[LTTNG_UST_ENUM_TYPE_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_FIELD_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:301: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_CTX_FIELD_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:313:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_CTX_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:329: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_DESC_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:343:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_PROBE_DESC_PADDING];
data/ust-2.12.0/include/lttng/ust-events.h:555: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/ust-2.12.0/include/lttng/ust-events.h:564:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_STACK_CTX_PADDING];
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:488: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(__stack_data, &__ctf_tmp_int64, sizeof(int64_t));       \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:525: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(__stack_data, &__ctf_tmp_uint64, sizeof(uint64_t));     \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:533: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(__stack_data, &__ctf_tmp_double, sizeof(double));       \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:543: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(__stack_data, &__ctf_tmp_ulong, sizeof(unsigned long)); \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:545: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(__stack_data, &__ctf_tmp_ptr, sizeof(void *));	       \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:555: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(__stack_data, &__ctf_tmp_ulong, sizeof(unsigned long)); \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:557: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(__stack_data, &__ctf_tmp_ptr, sizeof(void *));	       \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:566: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(__stack_data, &__ctf_tmp_ptr, sizeof(void *));	       \
data/ust-2.12.0/include/lttng/ust-tracepoint-event.h:785: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 __filter_stack_data[2 * sizeof(unsigned long) * (_TP_ARRAY_SIZE(__event_fields___##_provider##___##_name) - 1)]; \
data/ust-2.12.0/include/ust-comm.h: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 name[LTTNG_UST_ABI_PROCNAME_LEN];	/* process name */
data/ust-2.12.0/include/ust-comm.h:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[LTTNG_UST_COMM_REG_MSG_PADDING];
data/ust-2.12.0/include/ust-comm.h: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 padding[USTCOMM_MSG_PADDING1];
data/ust-2.12.0/include/ust-comm.h:105: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[USTCOMM_MSG_PADDING2];
data/ust-2.12.0/include/ust-comm.h:120:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[USTCOMM_REPLY_PADDING1];
data/ust-2.12.0/include/ust-comm.h:130: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[USTCOMM_REPLY_PADDING2];
data/ust-2.12.0/include/ust-comm.h: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 event_name[LTTNG_UST_SYM_NAME_LEN];
data/ust-2.12.0/include/ust-comm.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 padding[USTCOMM_NOTIFY_EVENT_MSG_PADDING];
data/ust-2.12.0/include/ust-comm.h:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[USTCOMM_NOTIFY_EVENT_REPLY_PADDING];
data/ust-2.12.0/include/ust-comm.h:161:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char enum_name[LTTNG_UST_SYM_NAME_LEN];
data/ust-2.12.0/include/ust-comm.h:163:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char padding[USTCOMM_NOTIFY_ENUM_MSG_PADDING];
data/ust-2.12.0/include/ust-comm.h: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 padding[USTCOMM_NOTIFY_EVENT_REPLY_PADDING];
data/ust-2.12.0/include/ust-comm.h:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[USTCOMM_NOTIFY_CHANNEL_MSG_PADDING];
data/ust-2.12.0/include/ust-comm.h: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 padding[USTCOMM_NOTIFY_CHANNEL_REPLY_PADDING];
data/ust-2.12.0/include/usterr-signal-safe.h:80:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ____buf[USTERR_MAX_LEN];				\
data/ust-2.12.0/include/usterr-signal-safe.h:116: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 buf[200] = "Error in strerror_r()";	\
data/ust-2.12.0/include/usterr-signal-safe.h:129: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 tmp[200];					\
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:395:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:413: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/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:452:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_fd[CMSG_SPACE(sizeof_fds)];
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:512: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, CMSG_DATA(cmsg), sizeof_fds);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:954:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_field_name[LTTNG_UST_SYM_NAME_LEN];
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:261: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, ctx->u.app_ctx.provider_name,
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:263: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_len, ctx->u.app_ctx.ctx_name,
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:455: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(iter, &lur.u.tracepoint, sizeof(*iter));
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:520: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(v, &lur.u.version, sizeof(*v));
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:923: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(obj->u.channel.data, src->u.channel.data, obj->size);
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:1854: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(name, reg_msg.name, LTTNG_UST_ABI_PROCNAME_LEN);
data/ust-2.12.0/liblttng-ust-dl/lttng-ust-dl.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 resolved_path[PATH_MAX];
data/ust-2.12.0/liblttng-ust-dl/lttng-ust-dl.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char resolved_path[PATH_MAX];
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:44: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 static_calloc_buf[STATIC_CALLOC_LEN];
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:184: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(retval, ptr, *old_size);
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:351: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(retval, ptr, *old_size);
data/ust-2.12.0/liblttng-ust/compat.h: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 name[LTTNG_UST_PROCNAME_LEN];
data/ust-2.12.0/liblttng-ust/filter-bytecode.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 string[0];
data/ust-2.12.0/liblttng-ust/filter-bytecode.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 data[0];
data/ust-2.12.0/liblttng-ust/lttng-context-cgroup-ns.c: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-context-ipc-ns.c:75: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-context-net-ns.c:75: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-context-procname.c:43: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.
typedef char procname_array[PROCNAME_NESTING_MAX][17];
data/ust-2.12.0/liblttng-ust/lttng-context-uts-ns.c: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 proc_ns_path[LTTNG_PROC_NS_PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-context.c:118: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(new_fields, ctx->fields, sizeof(*ctx->fields) * ctx->nr_fields);
data/ust-2.12.0/liblttng-ust/lttng-context.c:145: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(new_fields, old_ctx->fields,
data/ust-2.12.0/liblttng-ust/lttng-context.c:324: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_fields, ctx->fields,
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:534: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(&stack_top->u.d,
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:1878: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(&estack_ax(stack, top)->u.d, &filter_stack_data[ref->offset],
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:1935: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(&estack_ax(stack, top)->u.d, insn->data,
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:2094: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(&estack_ax(stack, top)->u.d, &v.u.d, sizeof(struct literal_double));
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:2288: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(&estack_ax(stack, top)->u.d,
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:109: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(&runtime->data[offset], p, len);
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:491:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(name, "$app.");
data/ust-2.12.0/liblttng-ust/lttng-filter.c:440: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(runtime->code, filter_bytecode->bc.data, runtime->len);
data/ust-2.12.0/liblttng-ust/lttng-filter.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char code[0];
data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client.h:441: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->uuid, lttng_chan->uuid, sizeof(lttng_chan->uuid));
data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-client.h:693: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(chan_priv_init.uuid, uuid, LTTNG_UST_UUID_LEN);
data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-metadata-client.h:110: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->uuid, lttng_chan->uuid, sizeof(lttng_chan->uuid));
data/ust-2.12.0/liblttng-ust/lttng-ring-buffer-metadata-client.h:220: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(chan_priv_init.uuid, uuid, LTTNG_UST_UUID_LEN);
data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c:79: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[OBJ_NAME_LEN];
data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c:120: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(new_table, old_table,
data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c:628: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(tp, iter, sizeof(*tp));
data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c:707: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(tp, iter, sizeof(*tp));
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c: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 sock_path[PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wait_shm_path[PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:267:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char procname[LTTNG_UST_PROCNAME_LEN];
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:746:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ctxstr[LTTNG_UST_SYM_NAME_LEN];	/* App context string. */
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:982:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(ctxstr, "$app.");
data/ust-2.12.0/liblttng-ust/lttng-ust-elf.c:194: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/ust-2.12.0/liblttng-ust/lttng-ust-elf.c:262: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(elf->path, O_RDONLY | O_CLOEXEC);
data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char resolved_path[PATH_MAX];
data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c:97: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(e->bin_data.build_id, bin_data->build_id,
data/ust-2.12.0/liblttng-ust/lttng-ust-statedump.c:101: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(e->bin_data.resolved_path, bin_data->resolved_path, PATH_MAX);
data/ust-2.12.0/liblttng-ust/tracepoint-weak-test.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[24];
data/ust-2.12.0/liblttng-ust/tracepoint.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 a[24];
data/ust-2.12.0/liblttng-ust/tracepoint.c:210: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(new, old,
data/ust-2.12.0/liblttng-ust/tracepoint.c:332: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(e->name, name, name_len + 1);
data/ust-2.12.0/liblttng-ust/tracepoint.c:336: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(e->signature, signature, sig_len + 1);
data/ust-2.12.0/libringbuffer/backend_internal.h:592:37:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define inline_memcpy(dest, src, n)	memcpy(dest, src, n)
data/ust-2.12.0/libringbuffer/backend_internal.h:626:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, __len);			\
data/ust-2.12.0/libringbuffer/backend_types.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 padding[RB_BACKEND_PAGES_PADDING];
data/ust-2.12.0/libringbuffer/backend_types.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 padding[RB_BACKEND_RING_BUFFER_PADDING];
data/ust-2.12.0/libringbuffer/backend_types.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 name[NAME_MAX];		/* Channel name */
data/ust-2.12.0/libringbuffer/backend_types.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 padding[RB_BACKEND_CHANNEL_PADDING];
data/ust-2.12.0/libringbuffer/frontend_types.h:78: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[RB_CHANNEL_PADDING];
data/ust-2.12.0/libringbuffer/frontend_types.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[RB_COMMIT_COUNT_HOT_PADDING];
data/ust-2.12.0/libringbuffer/frontend_types.h:99:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[RB_COMMIT_COUNT_COLD_PADDING];
data/ust-2.12.0/libringbuffer/frontend_types.h:237:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[RB_RING_BUFFER_PADDING];
data/ust-2.12.0/libringbuffer/ring_buffer_backend.c:320: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(&chanb->config, config, sizeof(*config));
data/ust-2.12.0/libringbuffer/ring_buffer_backend.c:459: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(dest, src, len);
data/ust-2.12.0/libringbuffer/ring_buffer_backend.c:513:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, str, string_len);
data/ust-2.12.0/libringbuffer/ring_buffer_backend.c:514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		((char *)dest)[0] = 0;
data/ust-2.12.0/libringbuffer/ring_buffer_frontend.c:1056: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(*priv_data, priv_data_init, priv_data_size);
data/ust-2.12.0/libringbuffer/shm.c:129: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(obj->wait_fd, waitfd, sizeof(waitfd));
data/ust-2.12.0/libringbuffer/shm.c:222: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(obj->wait_fd, waitfd, sizeof(waitfd));
data/ust-2.12.0/snprintf/fvwrite.c:67:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	COPY(n)	  (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n))
data/ust-2.12.0/snprintf/snprintf.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 dummy[DUMMY_LEN];
data/ust-2.12.0/snprintf/various.h:90:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 _ubuf[3]; /* guarantee an ungetc() buffer */
data/ust-2.12.0/snprintf/various.h:91:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 _nbuf[1]; /* guarantee a getc() buffer */
data/ust-2.12.0/snprintf/vfprintf.c:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char expstr[MAXEXPDIG+2];	/* buffer for exponent string: e+ZZZ */
data/ust-2.12.0/snprintf/vfprintf.c:246:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];		/* buffer with space for digits of uintmax_t */
data/ust-2.12.0/snprintf/vfprintf.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ox[2];		/* space for 0x; ox[1] is either x, X, or \0 */
data/ust-2.12.0/snprintf/vfprintf.c:260:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char blanks[PADSIZE] =
data/ust-2.12.0/snprintf/vfprintf.c:262:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char zeroes[PADSIZE] =
data/ust-2.12.0/snprintf/vfprintf.c:265: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 xdigs_lower[16] = "0123456789abcdef";
data/ust-2.12.0/snprintf/vfprintf.c:266: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 xdigs_upper[16] = "0123456789ABCDEF";
data/ust-2.12.0/snprintf/vfprintf.c:1007: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 stattypetable[STATIC_ARG_TBL_SIZE];
data/ust-2.12.0/snprintf/vfprintf.c:1337: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(oldtable, *typetable, *tablesize);
data/ust-2.12.0/snprintf/vfprintf.c:1359:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char expbuf[MAXEXPDIG];
data/ust-2.12.0/snprintf/wcio.h:42:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t wcio_ungetwc_buf[WCIO_UNGETWC_BUFSIZE];
data/ust-2.12.0/tests/benchmark/bench.c:46: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("/dev/null", "a");
data/ust-2.12.0/tests/benchmark/bench.c:83:12:  [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_cpus = atoi(argv[1]);
data/ust-2.12.0/tests/benchmark/bench.c:86:14:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	nr_events = atol(argv[2]);
data/ust-2.12.0/tests/ctf-types/ctf-types.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).
		delay = atoi(argv[1]);
data/ust-2.12.0/tests/gcc-weak-hidden/b.c:4:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[24];
data/ust-2.12.0/tests/gcc-weak-hidden/c.c:4:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[24];
data/ust-2.12.0/tests/gcc-weak-hidden/d.c:4:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[24];
data/ust-2.12.0/tests/gcc-weak-hidden/main.c: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 a[24];
data/ust-2.12.0/tests/hello-many/hello-many.c:39: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/ust-2.12.0/tests/hello.cxx/hello.cpp:72:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/tests/hello.cxx/hello.cpp:80: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/ust-2.12.0/tests/hello/hello.c:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/ust-2.12.0/tests/hello/hello.c:89: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/ust-2.12.0/tests/snprintf/snprintf.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 buf[100];
data/ust-2.12.0/tests/snprintf/snprintf.c: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 test_desc[sizeof(escaped_test_fmt_str) + sizeof(test_desc_fmt_str) - 1];
data/ust-2.12.0/tests/test-app-ctx/hello.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 text[10] = "test";
data/ust-2.12.0/tests/test-app-ctx/hello.c:321: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/ust-2.12.0/tests/ust-elf/data/main.c:3:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[100];
data/ust-2.12.0/tests/ust-elf/ust-elf.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[PATH_MAX];
data/ust-2.12.0/tests/ust-elf/ust-elf.c: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 exec_path[PATH_MAX];
data/ust-2.12.0/tests/ust-elf/ust-elf.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pie_path[PATH_MAX];
data/ust-2.12.0/tests/ust-elf/ust-elf.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 pic_path[PATH_MAX];
data/ust-2.12.0/doc/examples/demo/demo.c:59: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/ust-2.12.0/doc/examples/easy-ust/sample.c:39: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(1);
data/ust-2.12.0/doc/examples/gen-tp/sample.c:33: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(1);
data/ust-2.12.0/doc/examples/hello-static-lib/hello.c:90: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/ust-2.12.0/include/lttng/ust-tracepoint-event.h:408:3:  [1] (buffer) strlen:
  Does not handle 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((_src) ? (_src) : __LTTNG_UST_NULL_STRING) + 1;
data/ust-2.12.0/include/usterr-signal-safe.h:86: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).
		patient_write(STDERR_FILENO, ____buf, strlen(____buf));	\
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:135:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sun.sun_path, pathname, sizeof(sun.sun_path));
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:215:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sun.sun_path, pathname, sizeof(sun.sun_path));
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:921:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ubt->enumeration.name, lbt->enumeration.desc->name,
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:969:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tag_field_name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:971: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(tag_field_name,
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:973: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).
		LTTNG_UST_SYM_NAME_LEN - strlen(tag_field_name) - 1);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:986:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uf->name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:990:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uf->type.u.variant.tag_name,
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1028:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uf->name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1046:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uf->name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1070:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uf->name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1108:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uf->name, lf->name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1181:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(uentry->string, lentry->string, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1264:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msg.m.event_name, event_name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1267: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).
	signature_len = strlen(signature) + 1;
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1281: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).
		model_emf_uri_len = strlen(model_emf_uri) + 1;
data/ust-2.12.0/liblttng-ust-comm/lttng-ust-comm.c:1400:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(msg.m.enum_name, enum_name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:199:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(lum.u.event.name, ev->name,
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:248: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).
		size_t provider_name_len = strlen(
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:250: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).
		size_t ctx_name_len = strlen(ctx->u.app_ctx.ctx_name) + 1;
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:1919:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(event_name, msg.event_name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-ctl/ustctl.c:2059:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(enum_name, msg.enum_name, LTTNG_UST_SYM_NAME_LEN);
data/ust-2.12.0/liblttng-ust-java-agent/jni/common/lttng_ust_context.c:138: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).
			size += strlen(string) + 1;
data/ust-2.12.0/liblttng-ust-java-agent/jni/common/lttng_ust_context.c:261: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).
				chan->ops->event_write(ctx, str, strlen(str) + 1);
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:52:10:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	void *(*memalign)(size_t alignment, size_t size);
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:380:7:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
void *memalign(size_t alignment, size_t size)
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:392:21:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	retval = cur_alloc.memalign(alignment, size);
data/ust-2.12.0/liblttng-ust-libc-wrapper/lttng-ust-malloc.c:394:30:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
		tracepoint(lttng_ust_libc, memalign,
data/ust-2.12.0/liblttng-ust-libc-wrapper/ust_libc.h:68:34:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
TRACEPOINT_EVENT(lttng_ust_libc, memalign,
data/ust-2.12.0/liblttng-ust/compat.h:72:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(name, bsd_name, LTTNG_UST_PROCNAME_LEN - 1);
data/ust-2.12.0/liblttng-ust/compat.h:103: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).
	int limit = LTTNG_UST_PROCNAME_LEN - strlen(LTTNG_UST_PROCNAME_SUFFIX) - 1;
data/ust-2.12.0/liblttng-ust/compat.h:107: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(name);
data/ust-2.12.0/liblttng-ust/compat.h:113: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 (ret != strlen(LTTNG_UST_PROCNAME_SUFFIX)) {
data/ust-2.12.0/liblttng-ust/lttng-context-perf-counters.c:186:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (caa_unlikely(read(thread_field->fd, &count, sizeof(count))
data/ust-2.12.0/liblttng-ust/lttng-context-provider.c:54: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(name);
data/ust-2.12.0/liblttng-ust/lttng-context-provider.c:67: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).
	size_t name_len = strlen(provider->name);
data/ust-2.12.0/liblttng-ust/lttng-context-provider.c:74:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp("$app.", provider->name, strlen("$app.")) != 0)
data/ust-2.12.0/liblttng-ust/lttng-context.c:43: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).
	if (strncmp(name, "$ctx.", strlen("$ctx.")) == 0) {
data/ust-2.12.0/liblttng-ust/lttng-context.c:44: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).
		subname = name + strlen("$ctx.");
data/ust-2.12.0/liblttng-ust/lttng-context.c:65: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).
	if (strncmp(name, "$ctx.", strlen("$ctx.")) == 0) {
data/ust-2.12.0/liblttng-ust/lttng-context.c:66: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).
		subname = name + strlen("$ctx.");
data/ust-2.12.0/liblttng-ust/lttng-context.c:89: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(name)))
data/ust-2.12.0/liblttng-ust/lttng-context.c:328: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).
				name, strlen(name)) != 0)
data/ust-2.12.0/liblttng-ust/lttng-events.c:261: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).
	size_t name_len = strlen(enum_name);
data/ust-2.12.0/liblttng-ust/lttng-events.c:539: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).
	size_t name_len = strlen(event_name);
data/ust-2.12.0/liblttng-ust/lttng-events.c:760: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).
			name_len = strlen(event_name);
data/ust-2.12.0/liblttng-ust/lttng-events.c:820: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(event_name);
data/ust-2.12.0/liblttng-ust/lttng-events.c:857: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(event_name);
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:1898: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).
			next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter-interpreter.c:1913: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).
			next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:486:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name = zmalloc(strlen(orig_name) + strlen("$app.") + 1);
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:486: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).
	name = zmalloc(strlen(orig_name) + strlen("$app.") + 1);
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:1156: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).
			next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter-specialize.c:1169: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).
			next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter-validator.c:1621: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).
		next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter-validator.c:1634: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).
		next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
data/ust-2.12.0/liblttng-ust/lttng-filter.c:457:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		next_offset = offset + sizeof(uint16_t) + strlen(name) + 1;
data/ust-2.12.0/liblttng-ust/lttng-probes.c:271:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(list_entry->tp.name,
data/ust-2.12.0/liblttng-ust/lttng-probes.c:349:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(list_entry->field.event_name,
data/ust-2.12.0/liblttng-ust/lttng-probes.c:372:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(list_entry->field.event_name,
data/ust-2.12.0/liblttng-ust/lttng-probes.c:376:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(list_entry->field.field_name,
data/ust-2.12.0/liblttng-ust/lttng-ust-abi.c:135:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(obj->u.s.name, name, OBJ_NAME_LEN);
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:369:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + copied, to_copy);
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:974: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).
			ctxlen = strlen("$app.") + lum->u.context.u.app_ctx.provider_name_len - 1
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:975: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(":") + lum->u.context.u.app_ctx.ctx_name_len;
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:983: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).
			p = &ctxstr[strlen("$app.")];
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:984: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).
			recvlen = ctxlen - strlen("$app.");
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:1219:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(wait_shm_fd,
data/ust-2.12.0/liblttng-ust/lttng-ust-comm.c:1289:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(~create_mode);
data/ust-2.12.0/liblttng-ust/tracepoint.c:277: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).
	size_t name_len = strlen(name);
data/ust-2.12.0/liblttng-ust/tracepoint.c:303: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).
	size_t name_len = strlen(name);
data/ust-2.12.0/liblttng-ust/tracepoint.c:304: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).
	size_t sig_len = strlen(signature);
data/ust-2.12.0/liblttng-ust/tracepoint.c:414: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).
	size_t name_len = strlen(name);
data/ust-2.12.0/liblttng-ust/tracepoint.c:470: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).
	size_t name_len = strlen(name);
data/ust-2.12.0/liblttng-ust/ust-core.c:72: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).
	size_t name_len = strlen(enum_desc->name);
data/ust-2.12.0/liblttng-ust/ust-core.c:112: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).
	if (strncmp(name, "$app.", strlen("$app.")) != 0) {
data/ust-2.12.0/libringbuffer/ring_buffer_backend.c:318:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(chanb->name, name, NAME_MAX);
data/ust-2.12.0/snprintf/vfprintf.c:751:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if ((len = strlen(cp)) > INT_MAX)
data/ust-2.12.0/snprintf/vfprintf.c:826: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).
					size = strlen(cp);
data/ust-2.12.0/tests/hello.cxx/hello.cpp:90: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, 15);
data/ust-2.12.0/tests/hello/hello.c:99: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, mybool);
data/ust-2.12.0/tests/test-app-ctx/hello.c:105: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).
		size += strlen("teststr") + 1;
data/ust-2.12.0/tests/test-app-ctx/hello.c:210: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).
		chan->ops->event_write(ctx, str, strlen(str) + 1);
data/ust-2.12.0/tests/test-app-ctx/hello.c:334: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, mybool);

ANALYSIS SUMMARY:

Hits = 302
Lines analyzed = 50185 in approximately 1.18 seconds (42506 lines/second)
Physical Source Lines of Code (SLOC) = 33355
Hits@level = [0] 105 [1]  90 [2] 196 [3]   6 [4]   9 [5]   1
Hits@level+ = [0+] 407 [1+] 302 [2+] 212 [3+]  16 [4+]  10 [5+]   1
Hits/KSLOC@level+ = [0+] 12.2021 [1+] 9.05411 [2+] 6.35587 [3+] 0.479688 [4+] 0.299805 [5+] 0.0299805
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.