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/polybar-3.4.3/lib/xpp/src/tests/requests.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/iterator.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/xproto.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/template.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/event.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/xlib.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/sizeof.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/test.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/xlib-test.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/error_test.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/callable.cpp
Examining data/polybar-3.4.3/lib/xpp/src/tests/resource.cpp
Examining data/polybar-3.4.3/lib/xpp/src/xpp.cpp
Examining data/polybar-3.4.3/lib/xpp/src/examples/demo_01.cpp
Examining data/polybar-3.4.3/lib/xpp/src/examples/demo_02.cpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/valueparam.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/pixmap.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/atom.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/event.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/gcontext.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/connection.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/fontable.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/xpp.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/font.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/cursor.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/core.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/signature.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/factory.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/extension.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/event.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/iterator_traits.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/input_iterator_adapter.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/resource.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/error.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/reply_iterator.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/generic/request.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/colormap.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/window.hpp
Examining data/polybar-3.4.3/lib/xpp/include/xpp/drawable.hpp
Examining data/polybar-3.4.3/lib/concurrentqueue/include/moodycamel/concurrentqueue.h
Examining data/polybar-3.4.3/lib/concurrentqueue/include/moodycamel/blockingconcurrentqueue.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_tool.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/jsontest.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/jsontest.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/autolink.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/version.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/writer.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/features.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/reader.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/assertions.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/json.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/allocator.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/value.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/forwards.h
Examining data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/include/json/config.h
Examining data/polybar-3.4.3/lib/i3ipcpp/3rd/auss/include/auss.hpp
Examining data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/src/ipc.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/test/test_ipc.hpp
Examining data/polybar-3.4.3/lib/i3ipcpp/include/i3ipc++/ipc.hpp
Examining data/polybar-3.4.3/lib/i3ipcpp/include/i3ipc++/ipc-util.hpp
Examining data/polybar-3.4.3/lib/i3ipcpp/include/i3ipc++/log.hpp
Examining data/polybar-3.4.3/lib/i3ipcpp/examples/bar-configs.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/examples/events.cpp
Examining data/polybar-3.4.3/lib/i3ipcpp/examples/workspaces.cpp
Examining data/polybar-3.4.3/tests/common/test.hpp
Examining data/polybar-3.4.3/tests/unit_tests/components/command_line.cpp
Examining data/polybar-3.4.3/tests/unit_tests/components/bar.cpp
Examining data/polybar-3.4.3/tests/unit_tests/components/builder.cpp
Examining data/polybar-3.4.3/tests/unit_tests/components/parser.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/scope.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/memory.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/math.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/string.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/file.cpp
Examining data/polybar-3.4.3/tests/unit_tests/utils/color.cpp
Examining data/polybar-3.4.3/src/events/signal_receiver.cpp
Examining data/polybar-3.4.3/src/events/signal_emitter.cpp
Examining data/polybar-3.4.3/src/components/screen.cpp
Examining data/polybar-3.4.3/src/components/renderer.cpp
Examining data/polybar-3.4.3/src/components/controller.cpp
Examining data/polybar-3.4.3/src/components/command_line.cpp
Examining data/polybar-3.4.3/src/components/bar.cpp
Examining data/polybar-3.4.3/src/components/builder.cpp
Examining data/polybar-3.4.3/src/components/ipc.cpp
Examining data/polybar-3.4.3/src/components/config.cpp
Examining data/polybar-3.4.3/src/components/logger.cpp
Examining data/polybar-3.4.3/src/components/parser.cpp
Examining data/polybar-3.4.3/src/components/taskqueue.cpp
Examining data/polybar-3.4.3/src/utils/concurrency.cpp
Examining data/polybar-3.4.3/src/utils/command.cpp
Examining data/polybar-3.4.3/src/utils/http.cpp
Examining data/polybar-3.4.3/src/utils/string.cpp
Examining data/polybar-3.4.3/src/utils/inotify.cpp
Examining data/polybar-3.4.3/src/utils/factory.cpp
Examining data/polybar-3.4.3/src/utils/bspwm.cpp
Examining data/polybar-3.4.3/src/utils/i3.cpp
Examining data/polybar-3.4.3/src/utils/throttle.cpp
Examining data/polybar-3.4.3/src/utils/process.cpp
Examining data/polybar-3.4.3/src/utils/socket.cpp
Examining data/polybar-3.4.3/src/utils/file.cpp
Examining data/polybar-3.4.3/src/utils/io.cpp
Examining data/polybar-3.4.3/src/utils/env.cpp
Examining data/polybar-3.4.3/src/main.cpp
Examining data/polybar-3.4.3/src/adapters/net_nl.cpp
Examining data/polybar-3.4.3/src/adapters/net_iw.cpp
Examining data/polybar-3.4.3/src/adapters/alsa/mixer.cpp
Examining data/polybar-3.4.3/src/adapters/alsa/control.cpp
Examining data/polybar-3.4.3/src/adapters/pulseaudio.cpp
Examining data/polybar-3.4.3/src/adapters/mpd.cpp
Examining data/polybar-3.4.3/src/adapters/net.cpp
Examining data/polybar-3.4.3/src/modules/fs.cpp
Examining data/polybar-3.4.3/src/modules/memory.cpp
Examining data/polybar-3.4.3/src/modules/pulseaudio.cpp
Examining data/polybar-3.4.3/src/modules/xbacklight.cpp
Examining data/polybar-3.4.3/src/modules/text.cpp
Examining data/polybar-3.4.3/src/modules/battery.cpp
Examining data/polybar-3.4.3/src/modules/systray.cpp
Examining data/polybar-3.4.3/src/modules/menu.cpp
Examining data/polybar-3.4.3/src/modules/bspwm.cpp
Examining data/polybar-3.4.3/src/modules/i3.cpp
Examining data/polybar-3.4.3/src/modules/xwindow.cpp
Examining data/polybar-3.4.3/src/modules/network.cpp
Examining data/polybar-3.4.3/src/modules/xkeyboard.cpp
Examining data/polybar-3.4.3/src/modules/github.cpp
Examining data/polybar-3.4.3/src/modules/backlight.cpp
Examining data/polybar-3.4.3/src/modules/ipc.cpp
Examining data/polybar-3.4.3/src/modules/script.cpp
Examining data/polybar-3.4.3/src/modules/cpu.cpp
Examining data/polybar-3.4.3/src/modules/xworkspaces.cpp
Examining data/polybar-3.4.3/src/modules/mpd.cpp
Examining data/polybar-3.4.3/src/modules/counter.cpp
Examining data/polybar-3.4.3/src/modules/date.cpp
Examining data/polybar-3.4.3/src/modules/alsa.cpp
Examining data/polybar-3.4.3/src/modules/temperature.cpp
Examining data/polybar-3.4.3/src/modules/meta/base.cpp
Examining data/polybar-3.4.3/src/cairo/utils.cpp
Examining data/polybar-3.4.3/src/ipc.cpp
Examining data/polybar-3.4.3/src/drawtypes/iconset.cpp
Examining data/polybar-3.4.3/src/drawtypes/progressbar.cpp
Examining data/polybar-3.4.3/src/drawtypes/label.cpp
Examining data/polybar-3.4.3/src/drawtypes/ramp.cpp
Examining data/polybar-3.4.3/src/drawtypes/animation.cpp
Examining data/polybar-3.4.3/src/x11/tray_client.cpp
Examining data/polybar-3.4.3/src/x11/window.cpp
Examining data/polybar-3.4.3/src/x11/icccm.cpp
Examining data/polybar-3.4.3/src/x11/xresources.cpp
Examining data/polybar-3.4.3/src/x11/winspec.cpp
Examining data/polybar-3.4.3/src/x11/ewmh.cpp
Examining data/polybar-3.4.3/src/x11/tray_manager.cpp
Examining data/polybar-3.4.3/src/x11/registry.cpp
Examining data/polybar-3.4.3/src/x11/atoms.cpp
Examining data/polybar-3.4.3/src/x11/background_manager.cpp
Examining data/polybar-3.4.3/src/x11/cursor.cpp
Examining data/polybar-3.4.3/src/x11/extensions/xkb.cpp
Examining data/polybar-3.4.3/src/x11/extensions/randr.cpp
Examining data/polybar-3.4.3/src/x11/extensions/composite.cpp
Examining data/polybar-3.4.3/src/x11/xembed.cpp
Examining data/polybar-3.4.3/src/x11/connection.cpp
Examining data/polybar-3.4.3/include/events/signal_fwd.hpp
Examining data/polybar-3.4.3/include/events/signal_receiver.hpp
Examining data/polybar-3.4.3/include/events/signal.hpp
Examining data/polybar-3.4.3/include/events/types.hpp
Examining data/polybar-3.4.3/include/events/signal_emitter.hpp
Examining data/polybar-3.4.3/include/components/ipc.hpp
Examining data/polybar-3.4.3/include/components/command_line.hpp
Examining data/polybar-3.4.3/include/components/screen.hpp
Examining data/polybar-3.4.3/include/components/logger.hpp
Examining data/polybar-3.4.3/include/components/taskqueue.hpp
Examining data/polybar-3.4.3/include/components/builder.hpp
Examining data/polybar-3.4.3/include/components/renderer.hpp
Examining data/polybar-3.4.3/include/components/config.hpp
Examining data/polybar-3.4.3/include/components/parser.hpp
Examining data/polybar-3.4.3/include/components/bar.hpp
Examining data/polybar-3.4.3/include/components/types.hpp
Examining data/polybar-3.4.3/include/components/controller.hpp
Examining data/polybar-3.4.3/include/utils/inotify.hpp
Examining data/polybar-3.4.3/include/utils/factory.hpp
Examining data/polybar-3.4.3/include/utils/command.hpp
Examining data/polybar-3.4.3/include/utils/io.hpp
Examining data/polybar-3.4.3/include/utils/http.hpp
Examining data/polybar-3.4.3/include/utils/process.hpp
Examining data/polybar-3.4.3/include/utils/bspwm.hpp
Examining data/polybar-3.4.3/include/utils/env.hpp
Examining data/polybar-3.4.3/include/utils/color.hpp
Examining data/polybar-3.4.3/include/utils/time.hpp
Examining data/polybar-3.4.3/include/utils/scope.hpp
Examining data/polybar-3.4.3/include/utils/functional.hpp
Examining data/polybar-3.4.3/include/utils/concurrency.hpp
Examining data/polybar-3.4.3/include/utils/math.hpp
Examining data/polybar-3.4.3/include/utils/memory.hpp
Examining data/polybar-3.4.3/include/utils/file.hpp
Examining data/polybar-3.4.3/include/utils/throttle.hpp
Examining data/polybar-3.4.3/include/utils/socket.hpp
Examining data/polybar-3.4.3/include/utils/cache.hpp
Examining data/polybar-3.4.3/include/utils/string.hpp
Examining data/polybar-3.4.3/include/utils/i3.hpp
Examining data/polybar-3.4.3/include/utils/mixins.hpp
Examining data/polybar-3.4.3/include/adapters/pulseaudio.hpp
Examining data/polybar-3.4.3/include/adapters/alsa/control.hpp
Examining data/polybar-3.4.3/include/adapters/alsa/mixer.hpp
Examining data/polybar-3.4.3/include/adapters/alsa/generic.hpp
Examining data/polybar-3.4.3/include/adapters/mpd.hpp
Examining data/polybar-3.4.3/include/adapters/net.hpp
Examining data/polybar-3.4.3/include/modules/ipc.hpp
Examining data/polybar-3.4.3/include/modules/xworkspaces.hpp
Examining data/polybar-3.4.3/include/modules/pulseaudio.hpp
Examining data/polybar-3.4.3/include/modules/battery.hpp
Examining data/polybar-3.4.3/include/modules/menu.hpp
Examining data/polybar-3.4.3/include/modules/bspwm.hpp
Examining data/polybar-3.4.3/include/modules/script.hpp
Examining data/polybar-3.4.3/include/modules/counter.hpp
Examining data/polybar-3.4.3/include/modules/cpu.hpp
Examining data/polybar-3.4.3/include/modules/network.hpp
Examining data/polybar-3.4.3/include/modules/temperature.hpp
Examining data/polybar-3.4.3/include/modules/fs.hpp
Examining data/polybar-3.4.3/include/modules/xkeyboard.hpp
Examining data/polybar-3.4.3/include/modules/memory.hpp
Examining data/polybar-3.4.3/include/modules/systray.hpp
Examining data/polybar-3.4.3/include/modules/text.hpp
Examining data/polybar-3.4.3/include/modules/backlight.hpp
Examining data/polybar-3.4.3/include/modules/github.hpp
Examining data/polybar-3.4.3/include/modules/mpd.hpp
Examining data/polybar-3.4.3/include/modules/unsupported.hpp
Examining data/polybar-3.4.3/include/modules/i3.hpp
Examining data/polybar-3.4.3/include/modules/xbacklight.hpp
Examining data/polybar-3.4.3/include/modules/date.hpp
Examining data/polybar-3.4.3/include/modules/alsa.hpp
Examining data/polybar-3.4.3/include/modules/xwindow.hpp
Examining data/polybar-3.4.3/include/modules/meta/timer_module.hpp
Examining data/polybar-3.4.3/include/modules/meta/factory.hpp
Examining data/polybar-3.4.3/include/modules/meta/static_module.hpp
Examining data/polybar-3.4.3/include/modules/meta/event_handler.hpp
Examining data/polybar-3.4.3/include/modules/meta/base.hpp
Examining data/polybar-3.4.3/include/modules/meta/event_module.hpp
Examining data/polybar-3.4.3/include/modules/meta/inotify_module.hpp
Examining data/polybar-3.4.3/include/modules/meta/input_handler.hpp
Examining data/polybar-3.4.3/include/errors.hpp
Examining data/polybar-3.4.3/include/common.hpp
Examining data/polybar-3.4.3/include/cairo/utils.hpp
Examining data/polybar-3.4.3/include/cairo/context.hpp
Examining data/polybar-3.4.3/include/cairo/fwd.hpp
Examining data/polybar-3.4.3/include/cairo/font.hpp
Examining data/polybar-3.4.3/include/cairo/types.hpp
Examining data/polybar-3.4.3/include/cairo/surface.hpp
Examining data/polybar-3.4.3/include/debug.hpp
Examining data/polybar-3.4.3/include/drawtypes/animation.hpp
Examining data/polybar-3.4.3/include/drawtypes/iconset.hpp
Examining data/polybar-3.4.3/include/drawtypes/progressbar.hpp
Examining data/polybar-3.4.3/include/drawtypes/label.hpp
Examining data/polybar-3.4.3/include/drawtypes/ramp.hpp
Examining data/polybar-3.4.3/include/x11/background_manager.hpp
Examining data/polybar-3.4.3/include/x11/xembed.hpp
Examining data/polybar-3.4.3/include/x11/ewmh.hpp
Examining data/polybar-3.4.3/include/x11/connection.hpp
Examining data/polybar-3.4.3/include/x11/tray_client.hpp
Examining data/polybar-3.4.3/include/x11/registry.hpp
Examining data/polybar-3.4.3/include/x11/xresources.hpp
Examining data/polybar-3.4.3/include/x11/cursor.hpp
Examining data/polybar-3.4.3/include/x11/extensions/all.hpp
Examining data/polybar-3.4.3/include/x11/extensions/xkb.hpp
Examining data/polybar-3.4.3/include/x11/extensions/fwd.hpp
Examining data/polybar-3.4.3/include/x11/extensions/randr.hpp
Examining data/polybar-3.4.3/include/x11/extensions/composite.hpp
Examining data/polybar-3.4.3/include/x11/tray_manager.hpp
Examining data/polybar-3.4.3/include/x11/winspec.hpp
Examining data/polybar-3.4.3/include/x11/types.hpp
Examining data/polybar-3.4.3/include/x11/window.hpp
Examining data/polybar-3.4.3/include/x11/atoms.hpp
Examining data/polybar-3.4.3/include/x11/icccm.hpp

FINAL RESULTS:

data/polybar-3.4.3/include/modules/cpu.hpp:12:24:  [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.
    unsigned long long system;
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:24:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf sprintf_s
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:26:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:26:23:  [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 std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:28:18:  [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 _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:31:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:31:18:  [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 snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:34:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:34:23:  [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 std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:39:9:  [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.
#define sscanf std::sscanf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:39:21:  [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.
#define sscanf std::sscanf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1624:13:  [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.
    count = sscanf(buffer, format, &value);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1627:13:  [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.
    count = sscanf(buffer.c_str(), format, &value);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:51:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf sprintf_s
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:53:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:53:23:  [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 std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:55:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:55:18:  [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 _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:58:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:58:18:  [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 snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:61:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:61:23:  [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 std::snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:68:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:68:18:  [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 _snprintf
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:152:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    len = snprintf(buffer, sizeof(buffer), formatString, value);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:156:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "NaN" : "null");
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:158:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "-Infinity" : "-1e+9999");
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:160:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "Infinity" : "1e+9999");
data/polybar-3.4.3/lib/i3ipcpp/src/ipc.cpp:259:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (!(in = popen("i3 --get-socketpath", "r"))) {
data/polybar-3.4.3/src/utils/process.cpp:31:7:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execvp(cmd, args);
data/polybar-3.4.3/src/utils/process.cpp:42:7:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execlp(shell.c_str(), shell.c_str(), "-c", cmd, nullptr);
data/polybar-3.4.3/src/utils/socket.cpp:13: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.
using std::snprintf;
data/polybar-3.4.3/include/adapters/mpd.hpp:145:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    bool random() const;
data/polybar-3.4.3/src/adapters/mpd.cpp:426:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  bool mpdstatus::random() const {
data/polybar-3.4.3/src/modules/mpd.cpp:277:68:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      m_icons->get("random")->m_foreground = m_status && m_status->random() ? m_toggle_on_color : m_toggle_off_color;
data/polybar-3.4.3/src/modules/mpd.cpp:388:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        mpd->set_random(!status->random());
data/polybar-3.4.3/src/utils/env.cpp:12:26:  [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* env{std::getenv(var.c_str())};
data/polybar-3.4.3/src/utils/env.cpp:17:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* value{std::getenv(var.c_str())};
data/polybar-3.4.3/include/cairo/context.hpp:219:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char unicode[6]{'\0'};
data/polybar-3.4.3/include/components/ipc.hpp:18: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 payload[EVENT_SIZE]{'\0'};
data/polybar-3.4.3/include/components/ipc.hpp:22: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 payload[EVENT_SIZE]{'\0'};
data/polybar-3.4.3/include/components/ipc.hpp:26: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 payload[EVENT_SIZE]{'\0'};
data/polybar-3.4.3/include/utils/bspwm.hpp:23: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 data[BUFSIZ]{'\0'};
data/polybar-3.4.3/include/utils/color.hpp:64: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 s[12];
data/polybar-3.4.3/include/utils/file.hpp:66: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).
  void open(int fd);
data/polybar-3.4.3/include/utils/file.hpp:77: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 m_out[bufsize];
data/polybar-3.4.3/include/utils/file.hpp:78:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char m_in[bufsize - 1];
data/polybar-3.4.3/lib/concurrentqueue/include/moodycamel/concurrentqueue.h:1586: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 elements[sizeof(T) * BLOCK_SIZE];
data/polybar-3.4.3/lib/i3ipcpp/include/i3ipc++/ipc-util.hpp:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char magic[6]; ///< Magic string @see I3_IPC_MAGIC
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp:28: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 buffer[32];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp:56: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).
  FILE* file = fopen(path, "rb");
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp:110: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.
      static char buffer[16];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp:156:21:  [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* factual = fopen(actual.c_str(), "wt");
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/jsontestrunner/main.cpp:198: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).
  FILE* fout = fopen(rewritePath.c_str(), "wt");
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:816: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 buffer[18 + 16 + 16 + 1];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1621: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(buffer, token.start_, ulength);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_reader.cpp:1824: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 buffer[18 + 16 + 16 + 1];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_tool.h:68:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char UIntToStringBuffer[uintToStringBufferSize];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:111: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(newString, value, length);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:135: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(newString + sizeof(unsigned), value, length);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:142: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 buffer[32];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:145: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 formatString[6];
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:146: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(formatString, "%%.%dg", precision);
data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp:47:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_data, header, sizeof(header_t));
data/polybar-3.4.3/lib/i3ipcpp/src/ipc.cpp:258: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[512] = {0};
data/polybar-3.4.3/lib/xpp/include/xpp/font.hpp:32:5:  [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(C && c, const std::string & name) noexcept
data/polybar-3.4.3/lib/xpp/src/tests/test.cpp:1034: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 a[2*sizeof(int)];
data/polybar-3.4.3/src/adapters/mpd.cpp:470: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 buffer[32];
data/polybar-3.4.3/src/adapters/mpd.cpp:476: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 buffer[32];
data/polybar-3.4.3/src/adapters/net.cpp:82:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char ip_buffer[NI_MAXHOST];
data/polybar-3.4.3/src/adapters/net.cpp:88:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char ip6_buffer[INET6_ADDRSTRLEN];
data/polybar-3.4.3/src/adapters/net_iw.cpp:76: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 essid[IW_ESSID_MAX_SIZE + 1];
data/polybar-3.4.3/src/components/controller.cpp:305: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 buffer[BUFSIZ];
data/polybar-3.4.3/src/components/ipc.cpp:56: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 buffer[BUFSIZ]{'\0'};
data/polybar-3.4.3/src/modules/battery.cpp:333: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 buffer[256]{0};
data/polybar-3.4.3/src/utils/file.cpp:19:11:  [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).
  m_ptr = fopen(m_path.c_str(), m_mode.c_str());
data/polybar-3.4.3/src/utils/file.cpp:53: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).
  if ((m_fd = open(path.c_str(), flags)) == -1) {
data/polybar-3.4.3/src/utils/file.cpp:118: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).
void fd_streambuf::open(int fd) {
data/polybar-3.4.3/src/utils/inotify.cpp:79: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 buffer[1024];
data/polybar-3.4.3/src/utils/io.cpp:18: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 buffer[BUFSIZ];
data/polybar-3.4.3/src/utils/socket.cpp:76: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 buffer[BUFSIZ];
data/polybar-3.4.3/include/modules/backlight.hpp:14:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      float read() const;
data/polybar-3.4.3/include/modules/battery.hpp:34:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ReturnType read() const {
data/polybar-3.4.3/include/utils/io.hpp:8:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  string read(int read_fd, size_t bytes_to_read);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:144: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).
    *length = static_cast<unsigned>(strlen(prefixed));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:164: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).
  size_t size = (length==0) ? strlen(value) : length;
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:401:79:  [1] (buffer) strlen:
  Does not handle 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_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value)));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:472:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            otherComment.comment_, strlen(otherComment.comment_));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1038: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).
      key, static_cast<unsigned>(strlen(key)), CZString::noDuplication); // NOTE!
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1089: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).
  Value const* found = find(key, key + strlen(key));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1101:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return resolveReference(key, key + strlen(key));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1133:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return get(key, key + strlen(key), defaultValue);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1156: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).
  return removeMember(key, key + strlen(key), removed);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1170:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  removeMember(key, key + strlen(key), &removed);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1215: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).
  return isMember(key, key + strlen(key));
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_value.cpp:1378: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).
  setComment(comment, strlen(comment), placement);
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/lib_json/json_writer.cpp:185:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strlen(value) * 2 + 3; // allescaped+quotes+NULL
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1859: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1876: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1891: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1908: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1925: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1944: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1956: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1974: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:1998: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2010: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2025: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2045: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2065: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2082: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2098: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).
      doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2116: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2126: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2136: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2146: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2155: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2164: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2173: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2182: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2191: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2200: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2209: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2218: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2227: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2237: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2247: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2268: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2279: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2301: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2312: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2334: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/libs/jsoncpp-1.7.7/src/test_lib_json/main.cpp:2387: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).
        doc, doc + std::strlen(doc),
data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp:66:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, socket_path.c_str(), sizeof(addr.sun_path) - 1);
data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp:83:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buff->payload, payload.c_str(), buff->header->size);
data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp:126:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int  n = read(sockfd, header + readed, header_size - readed);
data/polybar-3.4.3/lib/i3ipcpp/src/ipc-util.cpp:148:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ((n = read(sockfd, buff->payload + readed, buff->header->size - readed)) == -1) {
data/polybar-3.4.3/src/adapters/net.cpp:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1);
data/polybar-3.4.3/src/adapters/net.cpp:268:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1);
data/polybar-3.4.3/src/adapters/net.cpp:293:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(request.ifr_name, m_interface.c_str(), IFNAMSIZ - 1);
data/polybar-3.4.3/src/components/controller.cpp:306:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read(static_cast<int>(*m_queuefd[PIPE_READ]), &buffer, BUFSIZ) == -1) {
data/polybar-3.4.3/src/components/ipc.cpp:59:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((bytes_read = read(*m_fd, &buffer, BUFSIZ)) == -1) {
data/polybar-3.4.3/src/components/ipc.cpp:65: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).
      m_sig.emit(signals::ipc::command{payload.substr(strlen(ipc_command::prefix))});
data/polybar-3.4.3/src/components/ipc.cpp:67:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      m_sig.emit(signals::ipc::hook{payload.substr(strlen(ipc_hook::prefix))});
data/polybar-3.4.3/src/components/ipc.cpp:69:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      m_sig.emit(signals::ipc::action{payload.substr(strlen(ipc_action::prefix))});
data/polybar-3.4.3/src/modules/alsa.cpp:247:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (cmd.compare(0, strlen(EVENT_TOGGLE_MUTE), EVENT_TOGGLE_MUTE) == 0) {
data/polybar-3.4.3/src/modules/alsa.cpp:251:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (cmd.compare(0, strlen(EVENT_VOLUME_UP), EVENT_VOLUME_UP) == 0) {
data/polybar-3.4.3/src/modules/alsa.cpp:256:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (cmd.compare(0, strlen(EVENT_VOLUME_DOWN), EVENT_VOLUME_DOWN) == 0) {
data/polybar-3.4.3/src/modules/backlight.cpp:22:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  float backlight_module::brightness_handle::read() const {
data/polybar-3.4.3/src/modules/backlight.cpp:69:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_percentage = static_cast<int>(m_val.read() / m_max.read() * 100.0f + 0.5f);
data/polybar-3.4.3/src/modules/backlight.cpp:69:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_percentage = static_cast<int>(m_val.read() / m_max.read() * 100.0f + 0.5f);
data/polybar-3.4.3/src/modules/battery.cpp:18:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  typename ValueReader::return_type read(ValueReader& reader) {
data/polybar-3.4.3/src/modules/battery.cpp:20:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return reader.read();
data/polybar-3.4.3/src/modules/battery.cpp:71:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      unsigned long cap{read(*m_state_reader) ? max - now : now};
data/polybar-3.4.3/src/modules/battery.cpp:190:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(*m_capacity_reader);
data/polybar-3.4.3/src/modules/battery.cpp:286:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read(*m_state_reader)) {
data/polybar-3.4.3/src/modules/battery.cpp:288:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    } else if (read(*m_capacity_reader) < m_fullat) {
data/polybar-3.4.3/src/modules/battery.cpp:299:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(*m_capacity_reader);
data/polybar-3.4.3/src/modules/battery.cpp:313:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(*m_consumption_reader);
data/polybar-3.4.3/src/modules/battery.cpp:324:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    chrono::seconds sec{read(*m_rate_reader)};
data/polybar-3.4.3/src/modules/bspwm.cpp:179: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).
    size_t prefix_len{strlen(BSPWM_STATUS_PREFIX)};
data/polybar-3.4.3/src/modules/bspwm.cpp:465: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).
    if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) {
data/polybar-3.4.3/src/modules/bspwm.cpp:466: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).
      cmd.erase(0, strlen(EVENT_CLICK));
data/polybar-3.4.3/src/modules/bspwm.cpp:484: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).
    if (cmd.compare(0, strlen(EVENT_SCROLL_UP), EVENT_SCROLL_UP) == 0) {
data/polybar-3.4.3/src/modules/bspwm.cpp:486: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).
    } else if (cmd.compare(0, strlen(EVENT_SCROLL_DOWN), EVENT_SCROLL_DOWN) == 0) {
data/polybar-3.4.3/src/modules/i3.cpp:231:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (cmd.compare(0, strlen(EVENT_CLICK), EVENT_CLICK) == 0) {
data/polybar-3.4.3/src/modules/i3.cpp:232: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).
        cmd.erase(0, strlen(EVENT_CLICK));
data/polybar-3.4.3/src/modules/i3.cpp:240:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (cmd.compare(0, strlen(EVENT_SCROLL_UP), EVENT_SCROLL_UP) == 0) {
data/polybar-3.4.3/src/modules/i3.cpp:242:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (cmd.compare(0, strlen(EVENT_SCROLL_DOWN), EVENT_SCROLL_DOWN) == 0) {
data/polybar-3.4.3/src/modules/menu.cpp:129: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).
    if (cmd.compare(0, strlen(EVENT_MENU_OPEN), EVENT_MENU_OPEN) == 0) {
data/polybar-3.4.3/src/modules/menu.cpp:130: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).
      auto level = cmd.substr(strlen(EVENT_MENU_OPEN));
data/polybar-3.4.3/src/modules/mpd.cpp:391:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (cmd.compare(0, strlen(EVENT_SEEK), EVENT_SEEK) == 0) {
data/polybar-3.4.3/src/modules/mpd.cpp:392: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).
        auto s = cmd.substr(strlen(EVENT_SEEK));
data/polybar-3.4.3/src/modules/pulseaudio.cpp:133: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).
    } else if (cmd.compare(0, strlen(EVENT_PREFIX), EVENT_PREFIX) != 0) {
data/polybar-3.4.3/src/modules/pulseaudio.cpp:139:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (cmd.compare(0, strlen(EVENT_TOGGLE_MUTE), EVENT_TOGGLE_MUTE) == 0) {
data/polybar-3.4.3/src/modules/pulseaudio.cpp:141:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (cmd.compare(0, strlen(EVENT_VOLUME_UP), EVENT_VOLUME_UP) == 0) {
data/polybar-3.4.3/src/modules/pulseaudio.cpp:144:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (cmd.compare(0, strlen(EVENT_VOLUME_DOWN), EVENT_VOLUME_DOWN) == 0) {
data/polybar-3.4.3/src/modules/xkeyboard.cpp:211: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).
    if (cmd.compare(0, strlen(EVENT_SWITCH), EVENT_SWITCH) != 0) {
data/polybar-3.4.3/src/modules/xworkspaces.cpp:338: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).
    size_t len{strlen(EVENT_PREFIX)};
data/polybar-3.4.3/src/modules/xworkspaces.cpp:356:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(EVENT_CLICK)) && cmd.compare(0, len, EVENT_CLICK) == 0) {
data/polybar-3.4.3/src/modules/xworkspaces.cpp:358: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).
    } else if ((len = strlen(EVENT_SCROLL_UP)) && cmd.compare(0, len, EVENT_SCROLL_UP) == 0) {
data/polybar-3.4.3/src/modules/xworkspaces.cpp:361: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).
    } else if ((len = strlen(EVENT_SCROLL_DOWN)) && cmd.compare(0, len, EVENT_SCROLL_DOWN) == 0) {
data/polybar-3.4.3/src/utils/env.cpp:13:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return env != nullptr && std::strlen(env) > 0;
data/polybar-3.4.3/src/utils/file.cpp:159:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int bytes(read(m_fd, eback() + pback, bufsize));
data/polybar-3.4.3/src/utils/inotify.cpp:80:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  auto bytes = read(m_fd, buffer, 1024);
data/polybar-3.4.3/src/utils/io.cpp:16:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  string read(int read_fd, size_t bytes_to_read) {
data/polybar-3.4.3/src/utils/socket.cpp:14: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).
using std::strlen;

ANALYSIS SUMMARY:

Hits = 188
Lines analyzed = 50680 in approximately 1.14 seconds (44591 lines/second)
Physical Source Lines of Code (SLOC) = 36294
Hits@level = [0]  70 [1] 106 [2]  43 [3]   6 [4]  33 [5]   0
Hits@level+ = [0+] 258 [1+] 188 [2+]  82 [3+]  39 [4+]  33 [5+]   0
Hits/KSLOC@level+ = [0+] 7.10861 [1+] 5.17992 [2+] 2.25933 [3+] 1.07456 [4+] 0.909241 [5+]   0
Dot directories skipped = 2 (--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.