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/sysprof-3.38.1/examples/app.c
Examining data/sysprof-3.38.1/src/helpers.c
Examining data/sysprof-3.38.1/src/helpers.h
Examining data/sysprof-3.38.1/src/libsysprof/binfile.c
Examining data/sysprof-3.38.1/src/libsysprof/binfile.h
Examining data/sysprof-3.38.1/src/libsysprof/demangle.cpp
Examining data/sysprof-3.38.1/src/libsysprof/demangle.h
Examining data/sysprof-3.38.1/src/libsysprof/elfparser.c
Examining data/sysprof-3.38.1/src/libsysprof/elfparser.h
Examining data/sysprof-3.38.1/src/libsysprof/mapped-ring-buffer-source.c
Examining data/sysprof-3.38.1/src/libsysprof/mapped-ring-buffer-source.h
Examining data/sysprof-3.38.1/src/libsysprof/preload/backtrace-helper.h
Examining data/sysprof-3.38.1/src/libsysprof/preload/gconstructor.h
Examining data/sysprof-3.38.1/src/libsysprof/preload/sysprof-memory-collector.c
Examining data/sysprof-3.38.1/src/libsysprof/preload/sysprof-speedtrack-collector.c
Examining data/sysprof-3.38.1/src/libsysprof/rax.c
Examining data/sysprof-3.38.1/src/libsysprof/rax.h
Examining data/sysprof-3.38.1/src/libsysprof/rax_malloc.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-backport-autocleanups.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-callgraph-profile.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-callgraph-profile.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-capture-autocleanups.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-capture-gobject.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-capture-gobject.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-capture-symbol-resolver.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-capture-symbol-resolver.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-control-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-control-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-diskstat-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-diskstat-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-elf-symbol-resolver.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-elf-symbol-resolver.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-flatpak.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-flatpak.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-gjs-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-gjs-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-governor-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-governor-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-helpers.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-helpers.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-jitmap-symbol-resolver.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-jitmap-symbol-resolver.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kallsyms.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kallsyms.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kernel-symbol-resolver.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kernel-symbol-resolver.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kernel-symbol.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-kernel-symbol.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-line-reader.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-line-reader.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-local-profiler.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-local-profiler.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-map-lookaside.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-map-lookaside.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memory-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memory-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memprof-profile.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memprof-profile.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memprof-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-memprof-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-netdev-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-netdev-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-perf-counter.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-perf-counter.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-podman.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-podman.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-polkit-private.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-polkit.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-preload-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-preload-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-private.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-proc-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-proc-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-process-model-item.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-process-model-item.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-process-model.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-process-model.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-profile.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-profile.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-profiler.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-profiler.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-proxy-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-proxy-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-selection.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-selection.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-spawnable.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-spawnable.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-map.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-map.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-resolver.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-resolver.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbols-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-symbols-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-tracefd-source.c
Examining data/sysprof-3.38.1/src/libsysprof/sysprof-tracefd-source.h
Examining data/sysprof-3.38.1/src/libsysprof/sysprof.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/mapped-ring-buffer.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/mapped-ring-buffer.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-address-fallback.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-address.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-address.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-condition.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-condition.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-cursor.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-cursor.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-util-private.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-util.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer-cat.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-clock.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-clock.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-macros-internal.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-macros.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-platform.c
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-platform.h
Examining data/sysprof-3.38.1/src/libsysprof-capture/sysprof-version-macros.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/pointcache.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/pointcache.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/rectangles.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/rectangles.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-aid-icon.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-aid-icon.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-battery-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-battery-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cairo.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-callgraph-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-callgraph-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-callgraph-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-callgraph-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cell-renderer-duration.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cell-renderer-duration.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cell-renderer-percent.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cell-renderer-percent.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-check.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-check.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-color-cycle.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-color-cycle.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-counters-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-counters-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cpu-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-cpu-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-depth-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-depth-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-details-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-details-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-diskstat-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-diskstat-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-display.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-display.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-duplex-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-duplex-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-editor-row.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-editor-row.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-editor.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-editor.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-variable.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ-variable.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-environ.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-failed-state-view.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-failed-state-view.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-line-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-line-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-log-model.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-log-model.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-logs-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-logs-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-logs-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-logs-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-mark-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-mark-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-model.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-model.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memory-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memory-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-memprof-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-model-filter.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-model-filter.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-netdev-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-netdev-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-notebook.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-notebook.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-page.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-page.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-process-model-row.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-process-model-row.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-procs-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-procs-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-profiler-assistant.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-profiler-assistant.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-proxy-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-proxy-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-rapl-aid.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-rapl-aid.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-recording-state-view.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-recording-state-view.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-scrollmap.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-scrollmap.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-tab.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-tab.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-theme-manager.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-theme-manager.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-time-label.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-time-label.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-time-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-time-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-ui-private.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-ui.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-group-header.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-group-header.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-group-private.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-group.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-group.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-ticks.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer-ticks.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizer.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizers-frame.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-visualizers-frame.h
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-zoom-manager.c
Examining data/sysprof-3.38.1/src/libsysprof-ui/sysprof-zoom-manager.h
Examining data/sysprof-3.38.1/src/stackstash.c
Examining data/sysprof-3.38.1/src/stackstash.h
Examining data/sysprof-3.38.1/src/sysprof/sysprof-application.c
Examining data/sysprof-3.38.1/src/sysprof/sysprof-application.h
Examining data/sysprof-3.38.1/src/sysprof/sysprof-credits.h
Examining data/sysprof-3.38.1/src/sysprof/sysprof-window-settings.c
Examining data/sysprof-3.38.1/src/sysprof/sysprof-window-settings.h
Examining data/sysprof-3.38.1/src/sysprof/sysprof-window.c
Examining data/sysprof-3.38.1/src/sysprof/sysprof-window.h
Examining data/sysprof-3.38.1/src/sysprof/sysprof.c
Examining data/sysprof-3.38.1/src/sysprofd/ipc-legacy-impl.c
Examining data/sysprof-3.38.1/src/sysprofd/ipc-legacy-impl.h
Examining data/sysprof-3.38.1/src/sysprofd/ipc-rapl-profiler.c
Examining data/sysprof-3.38.1/src/sysprofd/ipc-rapl-profiler.h
Examining data/sysprof-3.38.1/src/sysprofd/ipc-service-impl.c
Examining data/sysprof-3.38.1/src/sysprofd/ipc-service-impl.h
Examining data/sysprof-3.38.1/src/sysprofd/sysprof-turbostat.c
Examining data/sysprof-3.38.1/src/sysprofd/sysprof-turbostat.h
Examining data/sysprof-3.38.1/src/sysprofd/sysprofd.c
Examining data/sysprof-3.38.1/src/tests/allocs-by-size.c
Examining data/sysprof-3.38.1/src/tests/allocs-within-mark.c
Examining data/sysprof-3.38.1/src/tests/cross-thread-frees.c
Examining data/sysprof-3.38.1/src/tests/find-temp-allocs.c
Examining data/sysprof-3.38.1/src/tests/memory-stack-stash.c
Examining data/sysprof-3.38.1/src/tests/show-page-usage.c
Examining data/sysprof-3.38.1/src/tests/test-addr-decode.c
Examining data/sysprof-3.38.1/src/tests/test-addr-map.c
Examining data/sysprof-3.38.1/src/tests/test-capture-cursor.c
Examining data/sysprof-3.38.1/src/tests/test-capture-view.c
Examining data/sysprof-3.38.1/src/tests/test-capture.c
Examining data/sysprof-3.38.1/src/tests/test-flatpak.c
Examining data/sysprof-3.38.1/src/tests/test-kallsyms.c
Examining data/sysprof-3.38.1/src/tests/test-mapped-ring-buffer.c
Examining data/sysprof-3.38.1/src/tests/test-model-filter.c
Examining data/sysprof-3.38.1/src/tests/test-mountinfo.c
Examining data/sysprof-3.38.1/src/tests/test-process-model.c
Examining data/sysprof-3.38.1/src/tests/test-resolvers.c
Examining data/sysprof-3.38.1/src/tests/test-zoom.c
Examining data/sysprof-3.38.1/src/tools/list-threads.c
Examining data/sysprof-3.38.1/src/tools/sysprof-cat.c
Examining data/sysprof-3.38.1/src/tools/sysprof-cli.c
Examining data/sysprof-3.38.1/src/tools/sysprof-dump.c
Examining data/sysprof-3.38.1/src/tools/sysprof-profiler-ctl.c

FINAL RESULTS:

data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:665: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.
    sl = vsnprintf (NULL, 0, message_format, args);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:679: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.
        vsnprintf (ev->message, sl + 1, message_format, args2);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:742:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (formatted, sizeof (formatted), format, args);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-macros.h:114:67:  [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 SYSPROF_PRINTF(format_idx, arg_idx) __attribute__((format(printf, format_idx, arg_idx)))
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-depth-visualizer.c:252:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  GdkRGBA system;
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-depth-visualizer.c:263:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  gdk_rgba_parse (&system, "#3584e4");
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-depth-visualizer.c:326:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      gdk_cairo_set_source_rgba (cr, &system);
data/sysprof-3.38.1/src/libsysprof/rax.c:65:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(__VA_ARGS__);                                                   \
data/sysprof-3.38.1/src/libsysprof/rax.c:1874:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(branch,n->data[i]);
data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.c:156:29:  [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.
                      ret = sscanf (line, "%s %ld %ld %ld %ld %ld %ld %ld %ld %ld %ld",
data/sysprof-3.38.1/src/libsysprof/sysprof-memory-source.c:128:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  sscanf (buf,
data/sysprof-3.38.1/src/libsysprof/sysprof-netdev-source.c:273:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      sscanf (ptr,
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1355:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!(fdstr = getenv ("SYSPROF_TRACE_FD")))
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:317:27:  [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 *fdstr = getenv ("SYSPROF_CONTROL_FD");
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:430: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.
    if (getenv ("SYSPROF_CONTROL_FD") != NULL)
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-platform.c:73: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.
    tmpdir = getenv ("TMPDIR");
data/sysprof-3.38.1/src/libsysprof/sysprof-flatpak.c:82:43:  [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.
  g_ptr_array_add (ret, g_build_filename (g_get_home_dir (), ".local", "share", "flatpak", NULL));
data/sysprof-3.38.1/src/libsysprof/sysprof-spawnable.c:278:46:  [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.
    g_subprocess_launcher_set_cwd (launcher, g_get_home_dir ());
data/sysprof-3.38.1/src/tests/test-mapped-ring-buffer.c:67:19:  [3] (random) g_random_int_range:
  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.
  for (i = 0; i < g_random_int_range (1, 4000); i++)
data/sysprof-3.38.1/src/helpers.c:301:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         -1 != (*out_fd = open (canon, O_RDONLY | O_CLOEXEC));
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-condition.c:355: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 (self->u.where_type_in.data, types, sizeof (SysprofCaptureFrameType) * n_types);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-condition.c:406: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 (self->u.where_pid_in.data, pids, sizeof (int32_t) * n_pids);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-condition.c:434:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (self->u.where_counter_in.data, counters, sizeof (unsigned int) * n_counters);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:274:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (-1 == (fd = open (filename, O_RDONLY, 0)))
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:633:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)log)[log->frame.len - 1] = 0;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:675:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)mark)[mark->frame.len - 1] = 0;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:719:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)metadata)[metadata->frame.len - 1] = 0;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:803:7:  [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 (&addr, buf, sizeof addr);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:1049:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (-1 == (fd = open (filename, O_CREAT | O_WRONLY, 0640)))
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:1189: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 (copy->buf, self->buf, self->bufsz);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:1374: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 (files, self->list_files, sizeof (char *) * self->n_list_files);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:1565:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (addr, real_iter->buf, sizeof (*addr));
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:150: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     capture_time[64];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:153: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     suffix[168];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:179:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                filename[0];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:196: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                cmdline[0];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:236: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                       category[32];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:237:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                       name[32];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:238: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                       description[52];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:285: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                group[24];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                name[40];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:287: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                message[0];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:295: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                id[40];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:296:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                metadata[0];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:307: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                domain[32];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:308:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                message[0];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-types.h:319:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char                path[256];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-util.c:187:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char buf[4096*4];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:99: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 addr_buf[4096*4];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:418:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dst, &addr, sizeof addr);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:425:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dst, str, len - sizeof addr);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:472: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 now_str[sizeof ("2020-06-30T14:34:00Z")];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:560:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((-1 == (fd = open (filename, O_CREAT | O_RDWR, 0640))) ||
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:654: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 (ev->message, message, message_len);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:698: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 (ev->metadata, metadata, metadata_len);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:790: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 (ev->addrs, addrs, (n_addrs * sizeof (SysprofCaptureAddress)));
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:941:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (-1 == (fd = open (filename, O_CREAT | O_RDWR, 0640)))
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1361:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if (!(fd = atoi (fdstr)))
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1417: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 (ev->message, message, message_len);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1455: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 (ev->data, data, data_len);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1587: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 (ev->addrs, addrs, sizeof (SysprofCaptureAddress) * n_addrs);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1613: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 (begin, fr, fr->len);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:320: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).
        peer_fd = atoi (fdstr);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:613:9:  [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 (ev->message, message, sl);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:719:9:  [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 (ev->message, message, sl);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:735: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 formatted[2048];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:762:9:  [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 (ev->message, formatted, sl);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:793:9:  [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 (def->counters, counters, sizeof *counters * n_counters);
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-line-visualizer.c:139: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 (ret->data, ar->data, ar->len * g_array_get_element_size (ret));
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-marks-model.c:390:19:  [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 (&item.value, &values->values[j], sizeof item.value);
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-time-visualizer.c:112: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 (ret->data, ar->data, ar->len * g_array_get_element_size (ret));
data/sysprof-3.38.1/src/libsysprof/binfile.c:314:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char file[256];
data/sysprof-3.38.1/src/libsysprof/preload/sysprof-memory-collector.c:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4092];
data/sysprof-3.38.1/src/libsysprof/preload/sysprof-speedtrack-collector.c:97:1:  [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).
open (const char *filename,
data/sysprof-3.38.1/src/libsysprof/rax.c:112:13:  [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(ts->stack,ts->static_items,sizeof(void*)*ts->maxitems);
data/sysprof-3.38.1/src/libsysprof/rax.c:232:9:  [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(ndata,&data,sizeof(data));
data/sysprof-3.38.1/src/libsysprof/rax.c:383:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(childfield,&child,sizeof(child));
data/sysprof-3.38.1/src/libsysprof/rax.c:423:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(n->data,s,len);
data/sysprof-3.38.1/src/libsysprof/rax.c:426:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(childfield,child,sizeof(*child));
data/sysprof-3.38.1/src/libsysprof/rax.c:530:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (h) memcpy(parentlink,&h,sizeof(h));
data/sysprof-3.38.1/src/libsysprof/rax.c:738:13:  [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(parentlink,&splitnode,sizeof(splitnode));
data/sysprof-3.38.1/src/libsysprof/rax.c:742:13:  [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(trimmed->data,h->data,j);
data/sysprof-3.38.1/src/libsysprof/rax.c:751:13:  [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(cp,&splitnode,sizeof(splitnode));
data/sysprof-3.38.1/src/libsysprof/rax.c:752:13:  [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(parentlink,&trimmed,sizeof(trimmed));
data/sysprof-3.38.1/src/libsysprof/rax.c:765:13:  [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(postfix->data,h->data+j+1,postfixlen);
data/sysprof-3.38.1/src/libsysprof/rax.c:767:13:  [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(cp,&next,sizeof(next));
data/sysprof-3.38.1/src/libsysprof/rax.c:776:9:  [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(splitchild,&postfix,sizeof(postfix));
data/sysprof-3.38.1/src/libsysprof/rax.c:816:9:  [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(postfix->data,h->data+j,postfixlen);
data/sysprof-3.38.1/src/libsysprof/rax.c:819:9:  [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(cp,&next,sizeof(next));
data/sysprof-3.38.1/src/libsysprof/rax.c:827:9:  [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(trimmed->data,h->data,j);
data/sysprof-3.38.1/src/libsysprof/rax.c:828:9:  [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(parentlink,&trimmed,sizeof(trimmed));
data/sysprof-3.38.1/src/libsysprof/rax.c:837:9:  [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(cp,&postfix,sizeof(postfix));
data/sysprof-3.38.1/src/libsysprof/rax.c:862:13:  [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(parentlink,&h,sizeof(h));
data/sysprof-3.38.1/src/libsysprof/rax.c:871:13:  [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(parentlink,&h,sizeof(h));
data/sysprof-3.38.1/src/libsysprof/rax.c:883:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(parentlink,&h,sizeof(h));
data/sysprof-3.38.1/src/libsysprof/rax.c:1073:17:  [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(parentlink,&new,sizeof(new));
data/sysprof-3.38.1/src/libsysprof/rax.c:1190:17:  [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->data+comprsize,h->data,h->size);
data/sysprof-3.38.1/src/libsysprof/rax.c:1203:13:  [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(cp,&h,sizeof(h));
data/sysprof-3.38.1/src/libsysprof/rax.c:1208:17:  [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(parentlink,&new,sizeof(new));
data/sysprof-3.38.1/src/libsysprof/rax.c:1283:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (old == NULL) memcpy(it->key,it->key_static_string,it->key_len);
data/sysprof-3.38.1/src/libsysprof/rax.c:1342:17:  [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(cp,&it->node,sizeof(it->node));
data/sysprof-3.38.1/src/libsysprof/rax.c:1398:29:  [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(cp,&it->node,sizeof(it->node));
data/sysprof-3.38.1/src/libsysprof/rax.h:182:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 key_static_string[RAX_ITER_STATIC_LEN];
data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.c:117:27:  [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).
        bat.charge_full = atoi (charge_full_data);
data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.c:125:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      bat.charge_now_fd = open (charge_now_path, O_RDONLY);
data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.c:202: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).
  val = atoi (buf);
data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.c:409:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  self->stat_fd = open ("/proc/stat", O_RDONLY);
data/sysprof-3.38.1/src/libsysprof/sysprof-local-profiler.c:657:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          pid = atoi (ident);
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-counter.c:273:11:  [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 (b, info->data + (tail & mask), n_before);
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-counter.c:274:11:  [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 (b + n_before, info->data, n_after);
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-counter.h:83:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[0];
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c:319:7:  [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 (&time, event->comm.comm + offset, sizeof time);
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c:374:7:  [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 (&time, event->mmap.filename + offset, sizeof time);
data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-map.c:112: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 (&addr, &ele->addr, sizeof addr);
data/sysprof-3.38.1/src/sysprofd/ipc-service-impl.c:69: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_WRONLY, 0644);
data/sysprof-3.38.1/src/sysprofd/ipc-service-impl.c:165:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      gint fd = open (canon, O_RDONLY | O_CLOEXEC);
data/sysprof-3.38.1/src/tests/show-page-usage.c:82:7:  [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 (&addr, it.key, sizeof addr);
data/sysprof-3.38.1/src/tests/show-page-usage.c:138:7:  [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 (&addr, it.key, sizeof addr);
data/sysprof-3.38.1/src/tests/test-capture.c:161:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cmdline[32];
data/sysprof-3.38.1/src/tests/test-capture.c:174:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[32];
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-reader.c:1571: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).
  real_iter->buf += strlen (_name) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-util.c:108:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read (fd, buf, count);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:398: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).
  len = sizeof addr + strlen (str) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:592:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = sizeof *ev + strlen (filename) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:637: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).
  message_len = strlen (message) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:683:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    metadata_len = strlen (metadata);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:740:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = sizeof *ev + strlen (cmdline) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1399: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).
  message_len = strlen (message) + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-capture-writer.c:1480:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n_read = read (fd, data, sizeof data);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:600: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).
    sl = strlen (message);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:705: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).
    sl = strlen (message);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-collector.c:748: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).
    sl = strlen (formatted);
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-platform.c:120: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).
  template_len = strlen (tmpdir) + 1 + strlen ("sysprof-XXXXXX") + 1;
data/sysprof-3.38.1/src/libsysprof-capture/sysprof-platform.c:120: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).
  template_len = strlen (tmpdir) + 1 + strlen ("sysprof-XXXXXX") + 1;
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-diskstat-aid.c:138:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  other = g_strdup_printf ("Total Writes%s", name + strlen ("Total Reads"));
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-diskstat-aid.c:229:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                title = g_strdup_printf ("Disk Reads/Writes%s", ctr->name + strlen ("Total Reads"));
data/sysprof-3.38.1/src/libsysprof-ui/sysprof-netdev-aid.c:228:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                title = g_strdup_printf ("Network Bytes%s", ctr->name + strlen ("RX Bytes"));
data/sysprof-3.38.1/src/libsysprof/binfile.c:105: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).
    if (strlen (build_id) < 4)
data/sysprof-3.38.1/src/libsysprof/binfile.c:317:25:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            int count = sscanf (
data/sysprof-3.38.1/src/libsysprof/binfile.c:362: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).
      real_filename = filename + strlen ("/var/run/host");
data/sysprof-3.38.1/src/libsysprof/elfparser.c:722:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        offset += strlen (name);
data/sysprof-3.38.1/src/libsysprof/elfparser.c:749:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen (result) + 1;
data/sysprof-3.38.1/src/libsysprof/preload/gconstructor.h:36:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  __pragma(section(".CRT$XCU",read)) \
data/sysprof-3.38.1/src/libsysprof/preload/gconstructor.h:42:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  __pragma(section(".CRT$XCU",read)) \
data/sysprof-3.38.1/src/libsysprof/preload/gconstructor.h:54:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  section(".CRT$XCU",read)
data/sysprof-3.38.1/src/libsysprof/preload/gconstructor.h:61:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  section(".CRT$XCU",read)
data/sysprof-3.38.1/src/libsysprof/preload/sysprof-memory-collector.c:226:1:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
memalign (size_t alignment,
data/sysprof-3.38.1/src/libsysprof/preload/sysprof-speedtrack-collector.c:296:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read (int     fd,
data/sysprof-3.38.1/src/libsysprof/sysprof-battery-source.c:191:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read (battery->charge_now_fd, buf, sizeof buf - 1);
data/sysprof-3.38.1/src/libsysprof/sysprof-diskstat-source.c:188:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read (self->diskstat_fd, buf, sizeof buf - 1);
data/sysprof-3.38.1/src/libsysprof/sysprof-elf-symbol-resolver.c:202:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        alternate += strlen ("/newroot");
data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.c:98:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read (self->stat_fd, self->stat_buf, PROC_STAT_BUF_SIZE);
data/sysprof-3.38.1/src/libsysprof/sysprof-hostinfo-source.c:225:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      len = read (freq->stat_fd, buf, sizeof buf - 1);
data/sysprof-3.38.1/src/libsysprof/sysprof-kallsyms.c:56: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).
  self->buflen = strlen (self->buf);
data/sysprof-3.38.1/src/libsysprof/sysprof-kernel-symbol-resolver.c:107:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      gssize len = read (data_fd, buf, sizeof buf);
data/sysprof-3.38.1/src/libsysprof/sysprof-line-reader.c:67:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length = strlen (contents);
data/sysprof-3.38.1/src/libsysprof/sysprof-memory-source.c:215:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((r = read (st->stat_fd, stat_buf, BUF_SIZE)) < 0)
data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.c:130:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = g_build_filename (m->host_path, path + strlen (m->mount_path), NULL);
data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.c:200:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  subvol = g_strdup (opts[k] + strlen ("subvol="));
data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.c:316: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).
  gsize alen = strlen (mpa->mount_path);
data/sysprof-3.38.1/src/libsysprof/sysprof-mountinfo.c:317: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).
  gsize blen = strlen (mpb->mount_path);
data/sysprof-3.38.1/src/libsysprof/sysprof-netdev-source.c:226:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  len = read (self->netdev_fd, buf, sizeof buf - 1);
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c:316: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).
      offset = strlen (event->comm.comm) + 1;
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c:371: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).
      offset = strlen (event->mmap.filename) + 1;
data/sysprof-3.38.1/src/libsysprof/sysprof-perf-source.c:478:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      offset = g_ascii_strtoll (match + strlen (pattern),
data/sysprof-3.38.1/src/libsysprof/sysprof-proc-source.c:109:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      r = sscanf (maps [i],
data/sysprof-3.38.1/src/libsysprof/sysprof-process-model-item.c:246:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       pos += strlen (pos) + 1)
data/sysprof-3.38.1/src/libsysprof/sysprof-symbol-map.c:432: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).
      g_byte_array_append (ar, (guint8 *)str, strlen (str) + 1);
data/sysprof-3.38.1/src/sysprofd/ipc-service-impl.c:63: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).
    len = strlen (contents);
data/sysprof-3.38.1/src/tests/test-capture.c:700:103:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sysprof_capture_writer_add_metadata (writer, SYSPROF_CAPTURE_CURRENT_TIME, -1, -1, "aid.mem", STR2, strlen (STR2));

ANALYSIS SUMMARY:

Hits = 170
Lines analyzed = 63068 in approximately 1.33 seconds (47254 lines/second)
Physical Source Lines of Code (SLOC) = 42601
Hits@level = [0]  16 [1]  50 [2] 101 [3]   7 [4]  12 [5]   0
Hits@level+ = [0+] 186 [1+] 170 [2+] 120 [3+]  19 [4+]  12 [5+]   0
Hits/KSLOC@level+ = [0+] 4.36609 [1+] 3.99052 [2+] 2.81684 [3+] 0.445999 [4+] 0.281684 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.