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/babeltrace2-2.0.3/src/fd-cache/fd-cache.h
Examining data/babeltrace2-2.0.3/src/fd-cache/fd-cache.c
Examining data/babeltrace2-2.0.3/src/ctfser/ctfser.c
Examining data/babeltrace2-2.0.3/src/ctfser/ctfser.h
Examining data/babeltrace2-2.0.3/src/argpar/argpar.c
Examining data/babeltrace2-2.0.3/src/argpar/argpar.h
Examining data/babeltrace2-2.0.3/src/param-parse/param-parse.c
Examining data/babeltrace2-2.0.3/src/param-parse/param-parse.h
Examining data/babeltrace2-2.0.3/src/lib/logging.c
Examining data/babeltrace2-2.0.3/src/lib/value.c
Examining data/babeltrace2-2.0.3/src/lib/object-pool.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/clock-snapshot.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/clock-class.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-class.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/packet.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/event-class.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/stream.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/attributes.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/utils.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/stream-class.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/resolve-field-path.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-path.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/trace-class.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/event.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-wrapper.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/trace.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/utils.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/packet.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/event-class.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/stream.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/attributes.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/clock-class.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-class.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/clock-snapshot.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/trace.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-wrapper.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/stream-class.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/resolve-field-path.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/field-path.h
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/trace-class.c
Examining data/babeltrace2-2.0.3/src/lib/trace-ir/event.c
Examining data/babeltrace2-2.0.3/src/lib/error.c
Examining data/babeltrace2-2.0.3/src/lib/integer-range-set.c
Examining data/babeltrace2-2.0.3/src/lib/assert-pre.h
Examining data/babeltrace2-2.0.3/src/lib/func-status.h
Examining data/babeltrace2-2.0.3/src/lib/babeltrace2.c
Examining data/babeltrace2-2.0.3/src/lib/util.c
Examining data/babeltrace2-2.0.3/src/lib/assert-post.h
Examining data/babeltrace2-2.0.3/src/lib/plugin/plugin.h
Examining data/babeltrace2-2.0.3/src/lib/plugin/plugin-so.c
Examining data/babeltrace2-2.0.3/src/lib/plugin/plugin-so.h
Examining data/babeltrace2-2.0.3/src/lib/plugin/plugin.c
Examining data/babeltrace2-2.0.3/src/lib/prio-heap/prio-heap.h
Examining data/babeltrace2-2.0.3/src/lib/prio-heap/prio-heap.c
Examining data/babeltrace2-2.0.3/src/lib/object-pool.h
Examining data/babeltrace2-2.0.3/src/lib/lib-logging.c
Examining data/babeltrace2-2.0.3/src/lib/logging.h
Examining data/babeltrace2-2.0.3/src/lib/value.h
Examining data/babeltrace2-2.0.3/src/lib/object.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component-sink.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component.h
Examining data/babeltrace2-2.0.3/src/lib/graph/iterator.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-class.c
Examining data/babeltrace2-2.0.3/src/lib/graph/interrupter.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component-source.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-class-sink-simple.h
Examining data/babeltrace2-2.0.3/src/lib/graph/graph.h
Examining data/babeltrace2-2.0.3/src/lib/graph/port.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-filter.h
Examining data/babeltrace2-2.0.3/src/lib/graph/connection.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message-iterator-class.h
Examining data/babeltrace2-2.0.3/src/lib/graph/query-executor.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component-descriptor-set.h
Examining data/babeltrace2-2.0.3/src/lib/graph/interrupter.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-class.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-sink.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message-iterator-class.c
Examining data/babeltrace2-2.0.3/src/lib/graph/query-executor.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-descriptor-set.c
Examining data/babeltrace2-2.0.3/src/lib/graph/port.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component-filter.c
Examining data/babeltrace2-2.0.3/src/lib/graph/connection.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/stream.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/packet.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/event.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/discarded-items.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/message.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/iterator.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/message-iterator-inactivity.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/event.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/stream.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/packet.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/message-iterator-inactivity.c
Examining data/babeltrace2-2.0.3/src/lib/graph/message/discarded-items.h
Examining data/babeltrace2-2.0.3/src/lib/graph/message/message.h
Examining data/babeltrace2-2.0.3/src/lib/graph/mip.c
Examining data/babeltrace2-2.0.3/src/lib/graph/graph.c
Examining data/babeltrace2-2.0.3/src/lib/graph/component-source.h
Examining data/babeltrace2-2.0.3/src/lib/graph/component-class-sink-simple.c
Examining data/babeltrace2-2.0.3/src/lib/integer-range-set.h
Examining data/babeltrace2-2.0.3/src/lib/property.h
Examining data/babeltrace2-2.0.3/src/lib/error.h
Examining data/babeltrace2-2.0.3/src/lib/current-thread.c
Examining data/babeltrace2-2.0.3/src/autodisc/autodisc.h
Examining data/babeltrace2-2.0.3/src/autodisc/autodisc.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/trimmer/trimmer.h
Examining data/babeltrace2-2.0.3/src/plugins/utils/trimmer/trimmer.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/muxer/muxer.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/muxer/muxer.h
Examining data/babeltrace2-2.0.3/src/plugins/utils/plugin.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/dummy/dummy.h
Examining data/babeltrace2-2.0.3/src/plugins/utils/dummy/dummy.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/counter/counter.c
Examining data/babeltrace2-2.0.3/src/plugins/utils/counter/counter.h
Examining data/babeltrace2-2.0.3/src/plugins/common/param-validation/param-validation.c
Examining data/babeltrace2-2.0.3/src/plugins/common/param-validation/param-validation.h
Examining data/babeltrace2-2.0.3/src/plugins/common/muxing/muxing.h
Examining data/babeltrace2-2.0.3/src/plugins/common/muxing/muxing.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/metadata.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-viewer-abi.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/data-stream.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-live.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/data-stream.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/metadata.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-live.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/print.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/msg-iter/msg-iter.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/msg-iter/msg-iter.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-value-storing-indexes.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-default-clock-classes.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-text-array-sequence.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-generate-ir.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-stream-class-config.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-validate.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/objstack.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/scanner-symbols.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-warn-meaningless-header-fields.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-meanings.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/logging.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-visitors.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-resolve.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-parent-links.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-semantic-validator.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/objstack.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/lexer.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-update-in-ir.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser-wrap.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/scanner.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ast.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/logging.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-translate.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/bfcr/bfcr.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/common/bfcr/bfcr.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/plugin.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-trace.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-stream.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-stream.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-trace.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/fs.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/file.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/data-stream-file.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/query.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/metadata.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/file.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/fs.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/metadata.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/query.c
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/lttng-index.h
Examining data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/data-stream-file.h
Examining data/babeltrace2-2.0.3/src/plugins/text/dmesg/dmesg.h
Examining data/babeltrace2-2.0.3/src/plugins/text/dmesg/dmesg.c
Examining data/babeltrace2-2.0.3/src/plugins/text/details/obj-lifetime-mgmt.c
Examining data/babeltrace2-2.0.3/src/plugins/text/details/details.h
Examining data/babeltrace2-2.0.3/src/plugins/text/details/write.h
Examining data/babeltrace2-2.0.3/src/plugins/text/details/colors.h
Examining data/babeltrace2-2.0.3/src/plugins/text/details/obj-lifetime-mgmt.h
Examining data/babeltrace2-2.0.3/src/plugins/text/details/write.c
Examining data/babeltrace2-2.0.3/src/plugins/text/details/details.c
Examining data/babeltrace2-2.0.3/src/plugins/text/pretty/pretty.c
Examining data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c
Examining data/babeltrace2-2.0.3/src/plugins/text/pretty/pretty.h
Examining data/babeltrace2-2.0.3/src/plugins/text/plugin.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/crc32.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/debug-info.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/bin-info.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-mapping.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/utils.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/dwarf.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/bin-info.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/crc32.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/debug-info.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/utils.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/dwarf.h
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/trace-ir-mapping.c
Examining data/babeltrace2-2.0.3/src/plugins/lttng-utils/plugin.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/object-pool.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/clock-class.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/stream-class.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/writer.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-types.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/values.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/object.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/attributes.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/utils.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/event-class.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/logging.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/fields.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/visitor.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/clock.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/event.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-path.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-wrapper.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/resolve.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/functor.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/validation.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/trace.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/stream.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/utils.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/event-class.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/values.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/object.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/attributes.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/writer.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-types.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/object-pool.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/clock-class.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/assert-pre.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/stream-class.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/validation.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/trace.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/stream.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/resolve.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/functor.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/event.c
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-path.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/field-wrapper.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/logging.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/fields.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/visitor.h
Examining data/babeltrace2-2.0.3/src/ctf-writer/clock.c
Examining data/babeltrace2-2.0.3/src/logging/log.c
Examining data/babeltrace2-2.0.3/src/logging/log.h
Examining data/babeltrace2-2.0.3/src/logging/comp-logging.h
Examining data/babeltrace2-2.0.3/src/string-format/format-error.c
Examining data/babeltrace2-2.0.3/src/string-format/format-plugin-comp-cls-name.c
Examining data/babeltrace2-2.0.3/src/string-format/format-plugin-comp-cls-name.h
Examining data/babeltrace2-2.0.3/src/string-format/format-error.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_autodisc.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_component_class.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_message_iterator.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_graph.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/logging.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_query_exec.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_mip.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_plugin.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_bt2_objects.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/logging.c
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_value.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_trace_class.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_trace.i.h
Examining data/babeltrace2-2.0.3/src/bindings/python/bt2/bt2/native_bt_error.i.h
Examining data/babeltrace2-2.0.3/src/common/uuid.c
Examining data/babeltrace2-2.0.3/src/common/mmap-align.h
Examining data/babeltrace2-2.0.3/src/common/macros.h
Examining data/babeltrace2-2.0.3/src/common/align.h
Examining data/babeltrace2-2.0.3/src/common/assert.c
Examining data/babeltrace2-2.0.3/src/common/version.h
Examining data/babeltrace2-2.0.3/src/common/common.h
Examining data/babeltrace2-2.0.3/src/common/safe.h
Examining data/babeltrace2-2.0.3/src/common/uuid.h
Examining data/babeltrace2-2.0.3/src/common/assert.h
Examining data/babeltrace2-2.0.3/src/common/list.h
Examining data/babeltrace2-2.0.3/src/common/common.c
Examining data/babeltrace2-2.0.3/src/python-plugin-provider/python-plugin-provider.c
Examining data/babeltrace2-2.0.3/src/python-plugin-provider/python-plugin-provider.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-query.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-plugins.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args-default.c
Examining data/babeltrace2-2.0.3/src/cli/logging.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args-connect.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-query.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg.c
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args-connect.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-plugins.h
Examining data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args-default.h
Examining data/babeltrace2-2.0.3/src/cli/logging.c
Examining data/babeltrace2-2.0.3/src/compat/unistd.h
Examining data/babeltrace2-2.0.3/src/compat/memstream.h
Examining data/babeltrace2-2.0.3/src/compat/time.h
Examining data/babeltrace2-2.0.3/src/compat/fcntl.h
Examining data/babeltrace2-2.0.3/src/compat/mman.h
Examining data/babeltrace2-2.0.3/src/compat/bitfield.h
Examining data/babeltrace2-2.0.3/src/compat/string.h
Examining data/babeltrace2-2.0.3/src/compat/endian.h
Examining data/babeltrace2-2.0.3/src/compat/glib.h
Examining data/babeltrace2-2.0.3/src/compat/stdlib.h
Examining data/babeltrace2-2.0.3/src/compat/socket.h
Examining data/babeltrace2-2.0.3/src/compat/utc.h
Examining data/babeltrace2-2.0.3/src/compat/mman.c
Examining data/babeltrace2-2.0.3/src/compat/stdio.h
Examining data/babeltrace2-2.0.3/src/compat/compiler.h
Examining data/babeltrace2-2.0.3/src/compat/limits.h
Examining data/babeltrace2-2.0.3/src/py-common/py-common.h
Examining data/babeltrace2-2.0.3/src/py-common/py-common.c
Examining data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c
Examining data/babeltrace2-2.0.3/tests/param-validation/test_param_validation.c
Examining data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c
Examining data/babeltrace2-2.0.3/tests/lib/plugin.c
Examining data/babeltrace2-2.0.3/tests/lib/test-plugin-plugins/sfs.c
Examining data/babeltrace2-2.0.3/tests/lib/test-plugin-plugins/minimal.c
Examining data/babeltrace2-2.0.3/tests/lib/test_remove_destruction_listener_in_destruction_listener.c
Examining data/babeltrace2-2.0.3/tests/lib/test_trace_ir_ref.c
Examining data/babeltrace2-2.0.3/tests/lib/test_simple_sink.c
Examining data/babeltrace2-2.0.3/tests/lib/test_graph_topo.c
Examining data/babeltrace2-2.0.3/tests/lib/test_bt_values.c
Examining data/babeltrace2-2.0.3/tests/lib/test_bt_uuid.c
Examining data/babeltrace2-2.0.3/tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
Examining data/babeltrace2-2.0.3/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c
Examining data/babeltrace2-2.0.3/tests/plugins/sink.ctf.fs/succeed/gen-trace-double.c
Examining data/babeltrace2-2.0.3/tests/plugins/sink.ctf.fs/succeed/gen-trace-float.c
Examining data/babeltrace2-2.0.3/tests/plugins/src.ctf.fs/succeed/gen-trace-simple.c
Examining data/babeltrace2-2.0.3/tests/data/plugins/flt.lttng-utils.debug-info/libhello.c
Examining data/babeltrace2-2.0.3/tests/data/plugins/flt.lttng-utils.debug-info/tp.c
Examining data/babeltrace2-2.0.3/tests/data/plugins/flt.lttng-utils.debug-info/tp.h
Examining data/babeltrace2-2.0.3/tests/data/plugins/flt.lttng-utils.debug-info/libhello.h
Examining data/babeltrace2-2.0.3/tests/data/plugins/flt.lttng-utils.debug-info/main.c
Examining data/babeltrace2-2.0.3/tests/utils/common.h
Examining data/babeltrace2-2.0.3/tests/utils/tap/tap.h
Examining data/babeltrace2-2.0.3/tests/utils/tap/tap.c
Examining data/babeltrace2-2.0.3/tests/utils/common.c
Examining data/babeltrace2-2.0.3/include/babeltrace2/babeltrace.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/error-reporting.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/logging.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/func-status.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/connection.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/component-class-dev.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/private-query-executor.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/component.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/interrupter.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/self-component.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/self-message-iterator.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/message.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/query-executor.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/component-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/self-component-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/graph.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/self-component-port.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/component-descriptor-set.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/message-iterator.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/message-iterator-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/graph/port.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/version.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/value.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/logging-defs.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/integer-range-set.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/util.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/types.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/trace-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/stream-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/clock-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/field-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/event-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/trace.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/clock-snapshot.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/event.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/field-path.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/field.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/stream.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/trace-ir/packet.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/plugin/plugin-loading.h
Examining data/babeltrace2-2.0.3/include/babeltrace2/plugin/plugin-dev.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/event-types.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/stream.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/fields.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/event-fields.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/field-types.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/stream-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/clock-class.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/types.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/visitor.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/utils.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/clock.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/writer.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/event.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/object.h
Examining data/babeltrace2-2.0.3/include/babeltrace2-ctf-writer/trace.h
Examining data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/distill.c
Examining data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/dust.c
Examining data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/epitome.c
Examining data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/vestige-plugin.c

FINAL RESULTS:

data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/dust.c:281:17:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    int count = fscanf(dust_in_iter->file, "%" PRIu64 " %" PRIu64 " %s %[^\n]",
data/babeltrace2-2.0.3/src/argpar/argpar.c:47:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len1 = vsnprintf(NULL, 0, fmt, args);
data/babeltrace2-2.0.3/src/argpar/argpar.c:58:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len2 = vsnprintf(str, len1 + 1, fmt, args2);
data/babeltrace2-2.0.3/src/common/common.c:324:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path, home_dir);
data/babeltrace2-2.0.3/src/common/common.c:325: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(path, HOME_PLUGIN_SUBPATH);
data/babeltrace2-2.0.3/src/common/common.c:1474:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		_count = snprintf(*buf_ch, _size, _tmp_fmt, __VA_ARGS__); \
data/babeltrace2-2.0.3/src/common/common.c:2048:14:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	print_len = vsnprintf(str->str + len, available_len + 1, fmt, ap);
data/babeltrace2-2.0.3/src/common/common.c:2057:15:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		print_len = vsprintf(str->str + len, fmt, ap);
data/babeltrace2-2.0.3/src/common/uuid.c:76:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(str_out, BT_UUID_FMT, BT_UUID_FMT_VALUES(uuid_in));
data/babeltrace2-2.0.3/src/common/uuid.c:94:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	if (sscanf(str_in, BT_UUID_FMT, BT_UUID_SCAN_VALUES(uuid_scan)) != BT_UUID_LEN) {
data/babeltrace2-2.0.3/src/compat/stdlib.h:60:8:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	ret = mktemp(template);
data/babeltrace2-2.0.3/src/lib/lib-logging.c:88:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		_count = snprintf(*buf_ch, _size, (_fmt), __VA_ARGS__);	\
data/babeltrace2-2.0.3/src/logging/log.c:495:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	#define vsnprintf(s, sz, fmt, va) fake_vsnprintf(s, sz, fmt, va)
data/babeltrace2-2.0.3/src/logging/log.c:502:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	#define snprintf(s, sz, ...) fake_snprintf(s, sz, __VA_ARGS__)
data/babeltrace2-2.0.3/src/logging/log.c:1092:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = snprintf(msg->p, nprintf_size(msg),
data/babeltrace2-2.0.3/src/logging/log.c:1186:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = snprintf(msg->p, nprintf_size(msg),
data/babeltrace2-2.0.3/src/logging/log.c:1201:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(msg->p, nprintf_size(msg), fmt, va);
data/babeltrace2-2.0.3/src/plugins/common/param-validation/param-validation.h:37:27:  [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.
# define BT_PRINTF_FORMAT printf
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:167:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(lvalp->s, src);
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:2424:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-generate-ir.c:292:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(prname, "%c%s", prefix, name);
data/babeltrace2-2.0.3/src/plugins/ctf/common/print.h:34: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(PRINT_ERR_STREAM,			\
data/babeltrace2-2.0.3/src/plugins/ctf/common/print.h:43: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(PRINT_ERR_STREAM,			\
data/babeltrace2-2.0.3/src/plugins/ctf/common/print.h:52: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/babeltrace2-2.0.3/src/plugins/text/details/write.c:108:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_start, spec, value);
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:161:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf_start, spec, abs_value);
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1425:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_name, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1426:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_field_name, bt_common_color_fg_cyan());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1427:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_rst, bt_common_color_reset());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1428:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_string_value, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1429:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_number_value, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1430:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_enum_mapping_name, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1431:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_unknown, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1432: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(color_unknown, bt_common_color_fg_bright_red());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1433:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_event_name, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1434: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(color_event_name, bt_common_color_fg_bright_magenta());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1435:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(color_timestamp, bt_common_color_bold());
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:1436: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(color_timestamp, bt_common_color_fg_bright_yellow());
data/babeltrace2-2.0.3/src/plugins/utils/trimmer/trimmer.c:459:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(tmp_arg, "%" PRId64, value);
data/babeltrace2-2.0.3/tests/utils/tap/tap.c:294: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/babeltrace2-2.0.3/tests/utils/tap/tap.h:80:28:  [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.
# define TAP_PRINTF_FORMAT printf
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:970:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	envvar = getenv("BABELTRACE_PLUGIN_PATH");
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:49: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("BABELTRACE_DEBUG") &&
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:50:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			strcmp(getenv("BABELTRACE_DEBUG"), "1") == 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:55: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("BABELTRACE_VERBOSE") &&
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:56:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			strcmp(getenv("BABELTRACE_VERBOSE"), "1") == 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:72:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("LIBBABELTRACE2_INIT_LOG_LEVEL")) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:80:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv(ENV_BABELTRACE_CLI_LOG_LEVEL)) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:85:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (!getenv(*env_var_name)) {
data/babeltrace2-2.0.3/src/cli/babeltrace2.c:2569:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_clash = getenv(ENV_BABELTRACE_WARN_COMMAND_NAME_DIRECTORY_CLASH);
data/babeltrace2-2.0.3/src/common/common.c:147:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	term_env_var = getenv("TERM");
data/babeltrace2-2.0.3/src/common/common.c:158:3:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		getenv("BABELTRACE_TERM_COLOR_BRIGHT_MEANS_BOLD");
data/babeltrace2-2.0.3/src/common/common.c:264:9:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	return g_get_home_dir();
data/babeltrace2-2.0.3/src/common/common.c:275:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	return getenv(name);
data/babeltrace2-2.0.3/src/common/common.c:433:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	term_color_env_var = getenv("BABELTRACE_TERM_COLOR");
data/babeltrace2-2.0.3/src/common/common.c:445:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	term_env_var = getenv("TERM");
data/babeltrace2-2.0.3/src/common/common.c:2113:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_exec_on_abort = getenv(exec_on_abort_env_name);
data/babeltrace2-2.0.3/src/common/uuid.c:49:27:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		uuid_out[i] = (uint8_t) g_rand_int(rand);
data/babeltrace2-2.0.3/src/compat/memstream.h:71:29:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	tmpname = g_build_filename(g_get_tmp_dir(), "babeltrace-tmp-XXXXXX", NULL);
data/babeltrace2-2.0.3/src/compat/memstream.h:132:29:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	tmpname = g_build_filename(g_get_tmp_dir(), "babeltrace-tmp-XXXXXX", NULL);
data/babeltrace2-2.0.3/src/compat/memstream.h:218:29:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	tmpname = g_build_filename(g_get_tmp_dir(), "babeltrace-tmp-XXXXXX", NULL);
data/babeltrace2-2.0.3/src/compat/memstream.h:256:29:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	tmpname = g_build_filename(g_get_tmp_dir(), "babeltrace-tmp-XXXXXX", NULL);
data/babeltrace2-2.0.3/src/lib/plugin/plugin-so.c:138:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *var = getenv("LIBBABELTRACE2_NO_DLCLOSE");
data/babeltrace2-2.0.3/src/lib/plugin/plugin.c:100:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	provider_dir_envvar = getenv(provider_dir_envvar_name);
data/babeltrace2-2.0.3/src/lib/plugin/plugin.c:324:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *envvar = getenv("BABELTRACE_PLUGIN_PATH");
data/babeltrace2-2.0.3/src/logging/log.h:1104:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *varval = getenv(var);
data/babeltrace2-2.0.3/src/python-plugin-provider/python-plugin-provider.c:154:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	dis_python_env = getenv("LIBBABELTRACE2_DISABLE_PYTHON_PLUGINS");
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:682:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:1622:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env_resize_length = getenv("PACKET_RESIZE_TEST_LENGTH");
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:1630:32:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	trace_path = g_build_filename(g_get_tmp_dir(), "ctfwriter_XXXXXX", NULL);
data/babeltrace2-2.0.3/tests/lib/plugin.c:33:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *val = getenv(name);
data/babeltrace2-2.0.3/tests/lib/test_trace_ir_ref.c:461:32:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	trace_path = g_build_filename(g_get_tmp_dir(), "ctfwriter_XXXXXX", NULL);
data/babeltrace2-2.0.3/tests/utils/tap/tap.c:166: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/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/dust.c:205: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 name_buffer[32];
data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/dust.c:206: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 msg_buffer[1024];
data/babeltrace2-2.0.3/doc/api/libbabeltrace2/examples/dust.c:237:26:  [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).
    dust_in_iter->file = fopen(path, "r");
data/babeltrace2-2.0.3/src/argpar/argpar.c:396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[max_len + 1];
data/babeltrace2-2.0.3/src/argpar/argpar.c:419: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, long_opt_arg, long_opt_name_size);
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:1817:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_buf[256] = { 0 };
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:3215:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_buf[256] = { 0 };
data/babeltrace2-2.0.3/src/cli/babeltrace2-log-level.c:86: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 val[2] = { 0 };
data/babeltrace2-2.0.3/src/cli/babeltrace2.c:959:4:  [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).
			fopen(cfg->cmd_data.print_lttng_live_sessions.output_path->str,
data/babeltrace2-2.0.3/src/cli/babeltrace2.c:1100:4:  [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).
			fopen(cfg->cmd_data.print_ctf_metadata.output_path->str,
data/babeltrace2-2.0.3/src/common/common.c:1468:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char _tmp_fmt[64];					\
data/babeltrace2-2.0.3/src/common/common.h:845:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(str->str + len, s, s_len + 1);
data/babeltrace2-2.0.3/src/common/uuid.c:116:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(uuid_dest, uuid_src, BT_UUID_LEN);
data/babeltrace2-2.0.3/src/compat/fcntl.h:152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BABELTRACE_FALLOCATE_BUFLEN];
data/babeltrace2-2.0.3/src/compat/memstream.h:80:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(tmpname, "w+bTD");
data/babeltrace2-2.0.3/src/compat/memstream.h:133:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	ret = mkstemp(tmpname);
data/babeltrace2-2.0.3/src/compat/memstream.h:228:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(tmpname, "w+bTD");
data/babeltrace2-2.0.3/src/compat/memstream.h:258:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	ret = mkstemp(tmpname);
data/babeltrace2-2.0.3/src/compat/string.h:83:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ret, s, navail);
data/babeltrace2-2.0.3/src/compat/time.h:56: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(result, local_res, sizeof(struct tm));
data/babeltrace2-2.0.3/src/compat/time.h:77: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(result, local_res, sizeof(struct tm));
data/babeltrace2-2.0.3/src/ctf-writer/fields.h:664:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data + string_field->size, value, length);
data/babeltrace2-2.0.3/src/ctf-writer/writer.c:163:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	writer->metadata_fd = open(metadata_path,
data/babeltrace2-2.0.3/src/ctfser/ctfser.c:120:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ctfser->fd = open(path, O_RDWR | O_CREAT | O_TRUNC,
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:217: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:228: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:239: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:250: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:279: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:290: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:301: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:312: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(_bt_ctfser_get_addr(ctfser), &v, sizeof(v));
data/babeltrace2-2.0.3/src/ctfser/ctfser.h:542: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(_bt_ctfser_get_addr(ctfser), at, sizeof(*at));
data/babeltrace2-2.0.3/src/fd-cache/fd-cache.c:170:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path, O_RDONLY);
data/babeltrace2-2.0.3/src/lib/lib-logging.c:81:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __thread char lib_logging_buf[LIB_LOGGING_BUF_SIZE];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:521:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:556:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:672:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:714:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.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 tmp_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:802:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:841:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:947:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1072:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1099:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1148:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1245:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_prefix[TMP_PREFIX_LEN];
data/babeltrace2-2.0.3/src/lib/lib-logging.c:1366:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[64];
data/babeltrace2-2.0.3/src/lib/prio-heap/prio-heap.c:81: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_ptrs, heap->ptrs, heap->len * sizeof(void *));
data/babeltrace2-2.0.3/src/lib/prio-heap/prio-heap.c:232:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst->ptrs, src->ptrs, src->len * sizeof(void *));
data/babeltrace2-2.0.3/src/lib/trace-ir/field.c:912:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(data + string_field->length, value, length);
data/babeltrace2-2.0.3/src/logging/log.c:542:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __thread char logging_buf[4 * 4096];
data/babeltrace2-2.0.3/src/logging/log.c:648: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(msg->p, BT_LOG_EOL, eol_len);
data/babeltrace2-2.0.3/src/logging/log.c:945:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, s_p, n);
data/babeltrace2-2.0.3/src/logging/log.c:959:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/babeltrace2-2.0.3/src/logging/log.c:1097:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/babeltrace2-2.0.3/src/plugins/ctf/common/bfcr/bfcr.c:446: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(&bfcr->stitch.buf[stitch_byte_at], &bfcr->buf.addr[buf_byte_at],
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:296: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 oct_buffer[4];
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:308: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 hex_buffer[4];
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:2672:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:2865:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/babeltrace2-2.0.3/src/plugins/ctf/common/msg-iter/msg-iter.c:2034:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[2] = {'\0', '\0'};
data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/fs-sink-trace.c:518:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fh = fopen(trace->metadata_path->str, "wb");
data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c:1727:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c:1730:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "default");
data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c:1733:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "default%u", suffix);
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/file.c:94:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file->fp = fopen(file->path->str, mode);
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/fs.c:402:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char uuid_str[BT_UUID_STR_LEN + 1];
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/fs.c:2144: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 first_trace_uuid_str[BT_UUID_STR_LEN + 1];
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/fs.c:2145: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 this_trace_uuid_str[BT_UUID_STR_LEN + 1];
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/metadata.c:57:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(metadata_path->str, "rb");
data/babeltrace2-2.0.3/src/plugins/ctf/fs-src/query.c:434:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uuid_str[BT_UUID_STR_LEN + 1];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-viewer-abi.h:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[LTTNG_VIEWER_HOST_NAME_MAX];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-viewer-abi.h:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char session_name[LTTNG_VIEWER_NAME_MAX];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-viewer-abi.h:129:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path_name[LTTNG_VIEWER_PATH_MAX];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/lttng-viewer-abi.h:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char channel_name[LTTNG_VIEWER_NAME_MAX];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:290:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_buf[256] = { 0 };
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:346:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:367: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:368: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(cmd_buf + sizeof(cmd), &connect, sizeof(connect));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1076:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1095: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1096: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1199: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1200: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1276: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1277: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1409:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1428: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1429: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1545:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1564: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1565: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1666:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd_buf[cmd_buf_len];
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1688: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(cmd_buf, &cmd, sizeof(cmd));
data/babeltrace2-2.0.3/src/plugins/ctf/lttng-live/viewer-connection.c:1689: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(cmd_buf + sizeof(cmd), &rq, sizeof(rq));
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/bin-info.c:389: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(bin->build_id, build_id, build_id_len);
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/crc32.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSIZ], *p;
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:83:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "0x");
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:135:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf_start, "0x");
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/babeltrace2-2.0.3/src/plugins/text/details/write.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 buf[32];
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:390:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:1712:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:1793:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/babeltrace2-2.0.3/src/plugins/text/dmesg/dmesg.c:690:24:  [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).
		dmesg_msg_iter->fp = fopen(dmesg_comp->params.path->str, "r");
data/babeltrace2-2.0.3/src/plugins/text/pretty/pretty.c:296:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pretty->out = fopen(pretty->options.output_path, "w");
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:40: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 color_name[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char color_field_name[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:42: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 color_rst[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:43:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char color_string_value[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.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 color_number_value[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char color_enum_mapping_name[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:46: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 color_unknown[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char color_event_name[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:48: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 color_timestamp[32];
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:193: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 timestr[26];
data/babeltrace2-2.0.3/src/plugins/utils/trimmer/trimmer.c:450:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_arg[64];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:157:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char c[TEST_LEN];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:280:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char c[TEST_LEN];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:410:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		signed char c[TEST_LEN];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:542:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char c[TEST_LEN];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:705:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char c[8];
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:752:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		src = atoi(argv[1]);
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:754: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).
			shift = atoi(argv[2]);
data/babeltrace2-2.0.3/tests/bitfield/test_bitfield.c:758:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			len = atoi(argv[3]);
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sysname[BABELTRACE_HOST_NAME_MAX];
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nodename[BABELTRACE_HOST_NAME_MAX];
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:65:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char release[BABELTRACE_HOST_NAME_MAX];
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char version[BABELTRACE_HOST_NAME_MAX];
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c: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 machine[BABELTRACE_HOST_NAME_MAX];
data/babeltrace2-2.0.3/tests/ctf-writer/ctf_writer.c:1625:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			(unsigned int) atoi(env_resize_length);
data/babeltrace2-2.0.3/tests/lib/plugin.c:39:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(val);
data/babeltrace2-2.0.3/tests/lib/test_bt_uuid.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uuid_str[BT_UUID_STR_LEN + 1];
data/babeltrace2-2.0.3/tests/plugins/flt.lttng-utils.debug-info/test_bin_info.c:73: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 func_foo_printf_name[FUNC_FOO_NAME_LEN];
data/babeltrace2-2.0.3/tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c:54:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/babeltrace2-2.0.3/tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c:92:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/babeltrace2-2.0.3/src/argpar/argpar.c:304:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(short_opts) == 0) {
data/babeltrace2-2.0.3/src/argpar/argpar.c:338: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).
			if (!opt_arg || (short_opt_ch[1] && strlen(opt_arg) == 0)) {
data/babeltrace2-2.0.3/src/argpar/argpar.c:401:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(long_opt_arg) == 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:218:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bool has_extra_name = strlen(BT_VERSION_EXTRA_NAME) > 0;
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:219:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bool has_extra_description = strlen(BT_VERSION_EXTRA_DESCRIPTION) > 0;
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:220:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bool has_extra_patch_names = strlen(BT_VERSION_EXTRA_PATCHES) > 0;
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:229:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(BT_VERSION_NAME) > 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:237:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(BT_VERSION_GIT) > 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:246:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(BT_VERSION_DESCRIPTION) > 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:582: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).
	g_scanner_input_text(scanner, arg, strlen(arg));
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:693: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).
	g_scanner_input_text(scanner, arg, strlen(arg));
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:1426:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (end_pos == strlen(non_opt->arg)) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:1619:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(query_object) == 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:2027:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t arg_len = strlen(argpar_item_opt->arg);
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:3124: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).
			input += strlen(non_opt);
data/babeltrace2-2.0.3/src/cli/babeltrace2-cfg-cli-args.c:3130:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(input) > 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2-query.c:95:8:  [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.
			if (usleep(sleep_time_us)) {
data/babeltrace2-2.0.3/src/cli/babeltrace2.c:750:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cfg->cmd_data.help.cfg_component->comp_cls_name->str) == 0) {
data/babeltrace2-2.0.3/src/cli/babeltrace2.c:2533:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				if (usleep(cfg->cmd_data.run.retry_duration_us)) {
data/babeltrace2-2.0.3/src/common/common.c:311: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).
	length = strlen(home_dir) + strlen(HOME_PLUGIN_SUBPATH) + 1;
data/babeltrace2-2.0.3/src/common/common.c:311: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).
	length = strlen(home_dir) + strlen(HOME_PLUGIN_SUBPATH) + 1;
data/babeltrace2-2.0.3/src/common/common.c:348: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).
	end = paths + strlen(paths);
data/babeltrace2-2.0.3/src/common/common.c:364: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).
			next_sep = paths + strlen(paths);
data/babeltrace2-2.0.3/src/common/common.c:734:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(input) == 0) {
data/babeltrace2-2.0.3/src/common/common.c:1472:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(_tmp_fmt, *out_fmt_ch, _tmp_fmt_size);		\
data/babeltrace2-2.0.3/src/common/common.c:1794: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).
	orig_len = strlen(str);
data/babeltrace2-2.0.3/src/common/common.c:1797: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).
	new_len = strlen(str) + sep_count;
data/babeltrace2-2.0.3/src/common/common.c:1900:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) == 0) {
data/babeltrace2-2.0.3/src/common/common.c:1917:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(*line) == 0) {
data/babeltrace2-2.0.3/src/common/common.c:1949:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					tmp_line->len - 1 + strlen(*word) >= content_length) {
data/babeltrace2-2.0.3/src/common/common.h:457:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + i, count - i);
data/babeltrace2-2.0.3/src/common/common.h:838:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s_len = strlen(s);
data/babeltrace2-2.0.3/src/compat/stdio.h:91:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = fgetc(stream);
data/babeltrace2-2.0.3/src/compat/string.h:73:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	navail = strlen(s) + 1;
data/babeltrace2-2.0.3/src/ctf-writer/event-class.h:248:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (emf_uri && strlen(emf_uri) == 0) {
data/babeltrace2-2.0.3/src/ctf-writer/field-types.c:1556:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(string) == 0) {
data/babeltrace2-2.0.3/src/ctf-writer/field-types.c:1646:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(string) == 0) {
data/babeltrace2-2.0.3/src/ctf-writer/fields.h:677: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(value));
data/babeltrace2-2.0.3/src/ctf-writer/fields.h:691:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		value, strlen(value));
data/babeltrace2-2.0.3/src/ctf-writer/resolve.c:277: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(absolute_path_prefixes[scope]))) {
data/babeltrace2-2.0.3/src/ctf-writer/stream-class.h:187:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(name) == 0) {
data/babeltrace2-2.0.3/src/ctf-writer/values.c:690:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	BT_LOGD("Creating string value object: val-len=%zu", strlen(val));
data/babeltrace2-2.0.3/src/ctf-writer/writer.c:355: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(metadata_string));
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:48: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).
	return strlen(BT_VERSION_DEV_STAGE) == 0 ? NULL : BT_VERSION_DEV_STAGE;
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:53: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).
	return strlen(BT_VERSION_GIT) == 0 ? NULL : BT_VERSION_GIT;
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:58: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).
	return strlen(BT_VERSION_NAME) == 0 ? NULL : BT_VERSION_NAME;
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:63: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).
	return strlen(BT_VERSION_DESCRIPTION) == 0 ? NULL :
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:69: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).
	return strlen(BT_VERSION_EXTRA_NAME) == 0 ? NULL :
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:75: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).
	return strlen(BT_VERSION_EXTRA_DESCRIPTION) == 0 ? NULL :
data/babeltrace2-2.0.3/src/lib/babeltrace2.c:81: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).
	return strlen(BT_VERSION_EXTRA_PATCHES) == 0 ? NULL :
data/babeltrace2-2.0.3/src/lib/graph/component.c:215: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).
	BT_ASSERT_PRE(strlen(name) > 0, "Name is empty");
data/babeltrace2-2.0.3/src/lib/graph/port.c:62: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).
	BT_ASSERT(strlen(name) > 0);
data/babeltrace2-2.0.3/src/lib/plugin/plugin-so.c:1454:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	path_len = strlen(path);
data/babeltrace2-2.0.3/src/lib/plugin/plugin.c:615: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).
	BT_ASSERT(strlen(path) < PATH_MAX);
data/babeltrace2-2.0.3/src/lib/trace-ir/field.c:874: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).
		(uint64_t) strlen(value));
data/babeltrace2-2.0.3/src/lib/trace-ir/field.c:883:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		value, (uint64_t) strlen(value));
data/babeltrace2-2.0.3/src/lib/value.c:720:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	BT_LOGD("Creating string value object: val-len=%zu", strlen(val));
data/babeltrace2-2.0.3/src/logging/log.c:1283:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char *rst_color_e = rst_color_p + strlen(rst_color_p);
data/babeltrace2-2.0.3/src/logging/log.c:1290: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).
		color_e = color_p + strlen(color_p);
data/babeltrace2-2.0.3/src/logging/log.c:1294: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).
		color_e = color_p + strlen(color_p);
data/babeltrace2-2.0.3/src/logging/log.c:1299: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).
		color_e = color_p + strlen(color_p);
data/babeltrace2-2.0.3/src/param-parse/param-parse.c:87:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strchr(state->arg, '\n') || strlen(state->arg) == 0) {
data/babeltrace2-2.0.3/src/param-parse/param-parse.c:673:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	g_scanner_input_text(state.scanner, arg, strlen(arg));
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-resolve.c:271: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(absolute_path_prefixes[scope]))) {
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-translate.c:626:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cc->name->str) > 0) {
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/ctf-meta-translate.c:631:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(cc->description->str) > 0) {
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder.c:219:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(buf) == 0) {
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/decoder.c:225: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).
		fp = bt_fmemopen(buf, strlen(buf), "rb");
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/lexer.c:896:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/lexer.c:2188:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:166:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	lvalp->s = objstack_alloc(scanner->objstack, strlen(src) + 1);
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:348: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(src) + 1;
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:1105: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).
#define yystrlen strlen
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/parser.c:2572:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-generate-ir.c:286: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).
	char *prname = g_new(char, strlen(name) + 2);
data/babeltrace2-2.0.3/src/plugins/ctf/common/metadata/visitor-generate-ir.c:3191:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(right) == 0) {
data/babeltrace2-2.0.3/src/plugins/ctf/fs-sink/translate-trace-ir-to-ctf-ir.c:151:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(name) == 0) {
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/bin-info.c:550: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).
	build_id_suffix_char_len = strlen(BUILD_ID_SUFFIX) + 1;
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/crc32.c:119:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((nr = read(fd, buf, sizeof(buf))) > 0) {
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/debug-info.c:1250: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(LTTNG_UST_STATEDUMP_PREFIX)) == 0) {
data/babeltrace2-2.0.3/src/plugins/lttng-utils/debug-info/utils.c:31: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_t i = strlen(path);
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:90:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(buf, "0");
data/babeltrace2-2.0.3/src/plugins/text/details/write.c:142:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(buf_start, "0");
data/babeltrace2-2.0.3/src/plugins/text/dmesg/dmesg.c:582: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(line);
data/babeltrace2-2.0.3/src/plugins/text/pretty/print.c:624: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).
	for (i = 0; i < strlen(str); i++) {
data/babeltrace2-2.0.3/src/python-plugin-provider/python-plugin-provider.c:654:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	path_len = strlen(path);
data/babeltrace2-2.0.3/tests/lib/test_bt_values.c:1101:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	bt_bool equal;
data/babeltrace2-2.0.3/tests/lib/test_bt_values.c:1106:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/babeltrace2-2.0.3/tests/utils/tap/tap.c:308: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(val);

ANALYSIS SUMMARY:

Hits = 307
Lines analyzed = 200434 in approximately 4.93 seconds (40697 lines/second)
Physical Source Lines of Code (SLOC) = 120671
Hits@level = [0] 426 [1]  89 [2] 145 [3]  32 [4]  41 [5]   0
Hits@level+ = [0+] 733 [1+] 307 [2+] 218 [3+]  73 [4+]  41 [5+]   0
Hits/KSLOC@level+ = [0+] 6.07437 [1+] 2.54411 [2+] 1.80656 [3+] 0.604951 [4+] 0.339767 [5+]   0
Dot directories skipped = 5 (--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.