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/netdata-1.19.0/web/api/queries/average/average.c
Examining data/netdata-1.19.0/web/api/queries/average/average.h
Examining data/netdata-1.19.0/web/api/queries/rrdr.c
Examining data/netdata-1.19.0/web/api/queries/des/des.c
Examining data/netdata-1.19.0/web/api/queries/des/des.h
Examining data/netdata-1.19.0/web/api/queries/query.c
Examining data/netdata-1.19.0/web/api/queries/sum/sum.c
Examining data/netdata-1.19.0/web/api/queries/sum/sum.h
Examining data/netdata-1.19.0/web/api/queries/min/min.h
Examining data/netdata-1.19.0/web/api/queries/min/min.c
Examining data/netdata-1.19.0/web/api/queries/stddev/stddev.c
Examining data/netdata-1.19.0/web/api/queries/stddev/stddev.h
Examining data/netdata-1.19.0/web/api/queries/max/max.h
Examining data/netdata-1.19.0/web/api/queries/max/max.c
Examining data/netdata-1.19.0/web/api/queries/incremental_sum/incremental_sum.c
Examining data/netdata-1.19.0/web/api/queries/incremental_sum/incremental_sum.h
Examining data/netdata-1.19.0/web/api/queries/rrdr.h
Examining data/netdata-1.19.0/web/api/queries/median/median.c
Examining data/netdata-1.19.0/web/api/queries/median/median.h
Examining data/netdata-1.19.0/web/api/queries/query.h
Examining data/netdata-1.19.0/web/api/queries/ses/ses.c
Examining data/netdata-1.19.0/web/api/queries/ses/ses.h
Examining data/netdata-1.19.0/web/api/formatters/charts2json.c
Examining data/netdata-1.19.0/web/api/formatters/json_wrapper.h
Examining data/netdata-1.19.0/web/api/formatters/rrd2json.c
Examining data/netdata-1.19.0/web/api/formatters/rrdset2json.h
Examining data/netdata-1.19.0/web/api/formatters/json_wrapper.c
Examining data/netdata-1.19.0/web/api/formatters/charts2json.h
Examining data/netdata-1.19.0/web/api/formatters/ssv/ssv.c
Examining data/netdata-1.19.0/web/api/formatters/ssv/ssv.h
Examining data/netdata-1.19.0/web/api/formatters/rrd2json.h
Examining data/netdata-1.19.0/web/api/formatters/csv/csv.h
Examining data/netdata-1.19.0/web/api/formatters/csv/csv.c
Examining data/netdata-1.19.0/web/api/formatters/json/json.c
Examining data/netdata-1.19.0/web/api/formatters/json/json.h
Examining data/netdata-1.19.0/web/api/formatters/value/value.c
Examining data/netdata-1.19.0/web/api/formatters/value/value.h
Examining data/netdata-1.19.0/web/api/formatters/rrdset2json.c
Examining data/netdata-1.19.0/web/api/tests/web_api.c
Examining data/netdata-1.19.0/web/api/tests/valid_urls.c
Examining data/netdata-1.19.0/web/api/exporters/allmetrics.c
Examining data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.h
Examining data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.c
Examining data/netdata-1.19.0/web/api/exporters/allmetrics.h
Examining data/netdata-1.19.0/web/api/health/health_cmdapi.h
Examining data/netdata-1.19.0/web/api/health/health_cmdapi.c
Examining data/netdata-1.19.0/web/api/badges/web_buffer_svg.c
Examining data/netdata-1.19.0/web/api/badges/web_buffer_svg.h
Examining data/netdata-1.19.0/web/api/web_api_v1.c
Examining data/netdata-1.19.0/web/api/web_api_v1.h
Examining data/netdata-1.19.0/web/server/web_client_cache.h
Examining data/netdata-1.19.0/web/server/web_server.c
Examining data/netdata-1.19.0/web/server/static/static-threaded.c
Examining data/netdata-1.19.0/web/server/static/static-threaded.h
Examining data/netdata-1.19.0/web/server/web_server.h
Examining data/netdata-1.19.0/web/server/web_client.h
Examining data/netdata-1.19.0/web/server/web_client_cache.c
Examining data/netdata-1.19.0/web/server/web_client.c
Examining data/netdata-1.19.0/collectors/slabinfo.plugin/slabinfo.c
Examining data/netdata-1.19.0/collectors/all.h
Examining data/netdata-1.19.0/collectors/freebsd.plugin/plugin_freebsd.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_ipfw.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getmntinfo.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/plugin_freebsd.h
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_kstat_zfs.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getifaddrs.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c
Examining data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_devstat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_snmp.c
Examining data/netdata-1.19.0/collectors/proc.plugin/plugin_proc.c
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_devices_system_node.c
Examining data/netdata-1.19.0/collectors/proc.plugin/ipc.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_netstat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/plugin_proc.h
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_kernel_mm_ksm.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.h
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_uptime.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_vmstat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_sctp_snmp.c
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_devices_system_edac_mc.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_softnet_stat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_block_zram.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat6.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_loadavg.c
Examining data/netdata-1.19.0/collectors/proc.plugin/zfs_common.h
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_stat_synproxy.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_stat_conntrack.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfs.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfsd.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_meminfo.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_ip_vs_stats.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_spl_kstat_zfs.c
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_net_snmp6.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c
Examining data/netdata-1.19.0/collectors/proc.plugin/zfs_common.c
Examining data/netdata-1.19.0/collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c
Examining data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c
Examining data/netdata-1.19.0/collectors/checks.plugin/plugin_checks.c
Examining data/netdata-1.19.0/collectors/checks.plugin/plugin_checks.h
Examining data/netdata-1.19.0/collectors/nfacct.plugin/plugin_nfacct.c
Examining data/netdata-1.19.0/collectors/diskspace.plugin/plugin_diskspace.c
Examining data/netdata-1.19.0/collectors/diskspace.plugin/plugin_diskspace.h
Examining data/netdata-1.19.0/collectors/freeipmi.plugin/freeipmi_plugin.c
Examining data/netdata-1.19.0/collectors/xenstat.plugin/xenstat_plugin.c
Examining data/netdata-1.19.0/collectors/statsd.plugin/statsd.h
Examining data/netdata-1.19.0/collectors/statsd.plugin/statsd.c
Examining data/netdata-1.19.0/collectors/plugins.d/plugins_d.h
Examining data/netdata-1.19.0/collectors/plugins.d/plugins_d.c
Examining data/netdata-1.19.0/collectors/idlejitter.plugin/plugin_idlejitter.h
Examining data/netdata-1.19.0/collectors/idlejitter.plugin/plugin_idlejitter.c
Examining data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c
Examining data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.h
Examining data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c
Examining data/netdata-1.19.0/collectors/macos.plugin/macos_sysctl.c
Examining data/netdata-1.19.0/collectors/macos.plugin/plugin_macos.c
Examining data/netdata-1.19.0/collectors/macos.plugin/plugin_macos.h
Examining data/netdata-1.19.0/collectors/macos.plugin/macos_mach_smi.c
Examining data/netdata-1.19.0/collectors/macos.plugin/macos_fw.c
Examining data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c
Examining data/netdata-1.19.0/collectors/cups.plugin/cups_plugin.c
Examining data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c
Examining data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.h
Examining data/netdata-1.19.0/collectors/perf.plugin/perf_plugin.c
Examining data/netdata-1.19.0/streaming/rrdpush.h
Examining data/netdata-1.19.0/streaming/rrdpush.c
Examining data/netdata-1.19.0/libnetdata/adaptive_resortable_list/adaptive_resortable_list.h
Examining data/netdata-1.19.0/libnetdata/adaptive_resortable_list/adaptive_resortable_list.c
Examining data/netdata-1.19.0/libnetdata/avl/avl.h
Examining data/netdata-1.19.0/libnetdata/avl/avl.c
Examining data/netdata-1.19.0/libnetdata/libnetdata.h
Examining data/netdata-1.19.0/libnetdata/eval/eval.h
Examining data/netdata-1.19.0/libnetdata/eval/eval.c
Examining data/netdata-1.19.0/libnetdata/inlined.h
Examining data/netdata-1.19.0/libnetdata/threads/threads.h
Examining data/netdata-1.19.0/libnetdata/threads/threads.c
Examining data/netdata-1.19.0/libnetdata/locks/locks.c
Examining data/netdata-1.19.0/libnetdata/locks/locks.h
Examining data/netdata-1.19.0/libnetdata/storage_number/tests/test_storage_number.c
Examining data/netdata-1.19.0/libnetdata/storage_number/storage_number.h
Examining data/netdata-1.19.0/libnetdata/storage_number/storage_number.c
Examining data/netdata-1.19.0/libnetdata/required_dummies.h
Examining data/netdata-1.19.0/libnetdata/tests/test_str2ld.c
Examining data/netdata-1.19.0/libnetdata/popen/popen.h
Examining data/netdata-1.19.0/libnetdata/popen/popen.c
Examining data/netdata-1.19.0/libnetdata/json/jsmn.c
Examining data/netdata-1.19.0/libnetdata/json/jsmn.h
Examining data/netdata-1.19.0/libnetdata/json/json.c
Examining data/netdata-1.19.0/libnetdata/json/json.h
Examining data/netdata-1.19.0/libnetdata/clocks/clocks.h
Examining data/netdata-1.19.0/libnetdata/clocks/clocks.c
Examining data/netdata-1.19.0/libnetdata/dictionary/dictionary.h
Examining data/netdata-1.19.0/libnetdata/dictionary/dictionary.c
Examining data/netdata-1.19.0/libnetdata/buffer/buffer.c
Examining data/netdata-1.19.0/libnetdata/buffer/buffer.h
Examining data/netdata-1.19.0/libnetdata/libnetdata.c
Examining data/netdata-1.19.0/libnetdata/string/utf8.h
Examining data/netdata-1.19.0/libnetdata/statistical/statistical.c
Examining data/netdata-1.19.0/libnetdata/statistical/statistical.h
Examining data/netdata-1.19.0/libnetdata/os.h
Examining data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.c
Examining data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.h
Examining data/netdata-1.19.0/libnetdata/log/log.c
Examining data/netdata-1.19.0/libnetdata/log/log.h
Examining data/netdata-1.19.0/libnetdata/config/appconfig.c
Examining data/netdata-1.19.0/libnetdata/config/appconfig.h
Examining data/netdata-1.19.0/libnetdata/health/health.c
Examining data/netdata-1.19.0/libnetdata/health/health.h
Examining data/netdata-1.19.0/libnetdata/socket/security.h
Examining data/netdata-1.19.0/libnetdata/socket/security.c
Examining data/netdata-1.19.0/libnetdata/socket/socket.c
Examining data/netdata-1.19.0/libnetdata/socket/socket.h
Examining data/netdata-1.19.0/libnetdata/procfile/procfile.h
Examining data/netdata-1.19.0/libnetdata/procfile/procfile.c
Examining data/netdata-1.19.0/libnetdata/os.c
Examining data/netdata-1.19.0/libnetdata/url/url.h
Examining data/netdata-1.19.0/libnetdata/url/url.c
Examining data/netdata-1.19.0/database/rrddim.c
Examining data/netdata-1.19.0/database/rrdvar.c
Examining data/netdata-1.19.0/database/rrdset.c
Examining data/netdata-1.19.0/database/rrddimvar.c
Examining data/netdata-1.19.0/database/rrdcalc.h
Examining data/netdata-1.19.0/database/rrdvar.h
Examining data/netdata-1.19.0/database/rrdcalctemplate.h
Examining data/netdata-1.19.0/database/rrd.h
Examining data/netdata-1.19.0/database/rrd.c
Examining data/netdata-1.19.0/database/rrddimvar.h
Examining data/netdata-1.19.0/database/rrdcalc.c
Examining data/netdata-1.19.0/database/rrdcalctemplate.c
Examining data/netdata-1.19.0/database/rrdfamily.c
Examining data/netdata-1.19.0/database/rrdsetvar.c
Examining data/netdata-1.19.0/database/rrdsetvar.h
Examining data/netdata-1.19.0/database/rrdhost.c
Examining data/netdata-1.19.0/database/engine/journalfile.c
Examining data/netdata-1.19.0/database/engine/rrdenginelib.c
Examining data/netdata-1.19.0/database/engine/pagecache.c
Examining data/netdata-1.19.0/database/engine/datafile.c
Examining data/netdata-1.19.0/database/engine/rrdengine.c
Examining data/netdata-1.19.0/database/engine/rrdengineapi.c
Examining data/netdata-1.19.0/database/engine/rrdenglocking.c
Examining data/netdata-1.19.0/database/engine/rrddiskprotocol.h
Examining data/netdata-1.19.0/database/engine/journalfile.h
Examining data/netdata-1.19.0/database/engine/rrdenginelib.h
Examining data/netdata-1.19.0/database/engine/rrdengine.h
Examining data/netdata-1.19.0/database/engine/rrdenglocking.h
Examining data/netdata-1.19.0/database/engine/pagecache.h
Examining data/netdata-1.19.0/database/engine/datafile.h
Examining data/netdata-1.19.0/database/engine/rrdengineapi.h
Examining data/netdata-1.19.0/registry/registry_url.c
Examining data/netdata-1.19.0/registry/registry_init.c
Examining data/netdata-1.19.0/registry/registry.c
Examining data/netdata-1.19.0/registry/registry_machine.h
Examining data/netdata-1.19.0/registry/registry_internals.c
Examining data/netdata-1.19.0/registry/registry_person.h
Examining data/netdata-1.19.0/registry/registry_url.h
Examining data/netdata-1.19.0/registry/registry_person.c
Examining data/netdata-1.19.0/registry/registry_log.c
Examining data/netdata-1.19.0/registry/registry_machine.c
Examining data/netdata-1.19.0/registry/registry_internals.h
Examining data/netdata-1.19.0/registry/registry.h
Examining data/netdata-1.19.0/registry/registry_db.c
Examining data/netdata-1.19.0/health/health_log.c
Examining data/netdata-1.19.0/health/health_json.c
Examining data/netdata-1.19.0/health/health_config.c
Examining data/netdata-1.19.0/health/health.c
Examining data/netdata-1.19.0/health/health.h
Examining data/netdata-1.19.0/backends/backends.h
Examining data/netdata-1.19.0/backends/opentsdb/opentsdb.c
Examining data/netdata-1.19.0/backends/opentsdb/opentsdb.h
Examining data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis.c
Examining data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis.h
Examining data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis_put_record.h
Examining data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis_put_record.cc
Examining data/netdata-1.19.0/backends/json/json.c
Examining data/netdata-1.19.0/backends/json/json.h
Examining data/netdata-1.19.0/backends/backends.c
Examining data/netdata-1.19.0/backends/graphite/graphite.c
Examining data/netdata-1.19.0/backends/graphite/graphite.h
Examining data/netdata-1.19.0/backends/prometheus/remote_write/remote_write.cc
Examining data/netdata-1.19.0/backends/prometheus/remote_write/remote_write.h
Examining data/netdata-1.19.0/backends/prometheus/backend_prometheus.c
Examining data/netdata-1.19.0/backends/prometheus/backend_prometheus.h
Examining data/netdata-1.19.0/backends/mongodb/mongodb.c
Examining data/netdata-1.19.0/backends/mongodb/mongodb.h
Examining data/netdata-1.19.0/daemon/main.h
Examining data/netdata-1.19.0/daemon/main.c
Examining data/netdata-1.19.0/daemon/daemon.c
Examining data/netdata-1.19.0/daemon/global_statistics.h
Examining data/netdata-1.19.0/daemon/signals.c
Examining data/netdata-1.19.0/daemon/global_statistics.c
Examining data/netdata-1.19.0/daemon/unit_test.h
Examining data/netdata-1.19.0/daemon/signals.h
Examining data/netdata-1.19.0/daemon/unit_test.c
Examining data/netdata-1.19.0/daemon/daemon.h
Examining data/netdata-1.19.0/daemon/common.c
Examining data/netdata-1.19.0/daemon/common.h

FINAL RESULTS:

data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2133:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        ssize_t l = readlink(p->fds[fdid].filename, linkname, FILENAME_MAX);
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:366:31:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
                ssize_t len = readlink(filename, result, result_size - 1);
data/netdata-1.19.0/daemon/daemon.c:31:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        if(chown(dir, uid, gid) == -1)
data/netdata-1.19.0/daemon/daemon.c:55:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
        if(chown(pidfile, uid, gid) == -1)
data/netdata-1.19.0/daemon/main.c:593:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        ret = readlink("/etc/localtime", buffer, FILENAME_MAX);
data/netdata-1.19.0/libnetdata/libnetdata.c:1293:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
            ssize_t l = readlink(s, buffer, FILENAME_MAX);
data/netdata-1.19.0/libnetdata/libnetdata.c:1329:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
            ssize_t l = readlink(s, buffer, FILENAME_MAX);
data/netdata-1.19.0/libnetdata/procfile/procfile.c:30:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    ssize_t l = readlink(buffer, ff->filename, FILENAME_MAX);
data/netdata-1.19.0/libnetdata/socket/socket.c:142:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if(chmod(path, 0777) == -1)
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:51:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf( stderr, fmt, args );
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2010:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fdsname, "%s", fds->kf_path);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2028:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_sa_local.__ss_pad1, fds->kf_sa_local.__ss_pad2);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2030:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(fdsname, "socket: other: %d %s %s", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sa_local.__ss_pad1, fds->kf_un.kf_sock.kf_sa_local.__ss_pad2);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2045:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(fdsname, "other: shm: %s size: %lu", fds->kf_path, fds->kf_un.kf_file.kf_file_size);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2228:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->utime)   fprintf(stderr, " utime=" KERNEL_UINT_FORMAT,   p->utime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2229:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->stime)   fprintf(stderr, " stime=" KERNEL_UINT_FORMAT,   p->stime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2230:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->gtime)   fprintf(stderr, " gtime=" KERNEL_UINT_FORMAT,   p->gtime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2231:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->cutime)  fprintf(stderr, " cutime=" KERNEL_UINT_FORMAT,  p->cutime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2232:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->cstime)  fprintf(stderr, " cstime=" KERNEL_UINT_FORMAT,  p->cstime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2233:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->cgtime)  fprintf(stderr, " cgtime=" KERNEL_UINT_FORMAT,  p->cgtime);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2234:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->minflt)  fprintf(stderr, " minflt=" KERNEL_UINT_FORMAT,  p->minflt);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2235:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->cminflt) fprintf(stderr, " cminflt=" KERNEL_UINT_FORMAT, p->cminflt);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2236:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->majflt)  fprintf(stderr, " majflt=" KERNEL_UINT_FORMAT,  p->majflt);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2237:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(p->cmajflt) fprintf(stderr, " cmajflt=" KERNEL_UINT_FORMAT, p->cmajflt);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:408: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/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:579:38:  [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.
                    (cp->user || cp->system || netdata_zero_metrics_enabled == CONFIG_BOOLEAN_YES)))
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:616:38:  [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.
                    (cp->user || cp->system || netdata_zero_metrics_enabled == CONFIG_BOOLEAN_YES)))
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1409:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(s, this);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1411:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(s, de->d_name);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2352:96:  [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.
            rrddim_set_by_pointer(st_cpu, cg->rd_cpu, cg->cpuacct_stat.user + cg->cpuacct_stat.system);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2782:63:  [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.
            rrddim_set(cg->st_cpu, "system", cg->cpuacct_stat.system);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2849:98:  [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.
                        cpu_usage = (calculated_number)(cg->cpuacct_stat.user + cg->cpuacct_stat.system) * 100;
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_devstat.c:285:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(disk, "%s%d", dstat[i].device_name, dstat[i].unit_number);
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:581:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(likely(access(buffer, R_OK) == 0)) {
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:589:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(likely(access(buffer, R_OK) == 0)) {
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:596:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(likely(access(buffer, R_OK) == 0)) {
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:691:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:697:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:703:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:709:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:715:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:721:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:727:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:733:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:739:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:745:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:751:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:757:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:763:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:769:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:775:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:781:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:787:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if(access(buffer2, R_OK) == 0)
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:518:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if(likely(access(buffer, R_OK) == 0)) {
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:722:76:  [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.
                rrddim_set_by_pointer(cpu_chart->st, cpu_chart->rd_system, system);
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:73:44:  [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.
    declare_btrfs_allocation_section_field(system, total_bytes)
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:74:44:  [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.
    declare_btrfs_allocation_section_field(system, bytes_used)
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:75:44:  [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.
    declare_btrfs_allocation_section_field(system, disk_total)
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:76:44:  [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.
    declare_btrfs_allocation_section_field(system, disk_used)
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:397:45:  [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.
        init_btrfs_allocation_section_field(system, total_bytes);
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:398:45:  [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.
        init_btrfs_allocation_section_field(system, bytes_used);
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:399:45:  [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.
        init_btrfs_allocation_section_field(system, disk_total);
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:400:45:  [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.
        init_btrfs_allocation_section_field(system, disk_used);
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:501:60:  [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.
                 || collect_btrfs_allocation_section_field(system, disk_total) != 0
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:502:60:  [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.
                 || collect_btrfs_allocation_section_field(system, disk_used) != 0) {
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:533:56:  [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.
            if (collect_btrfs_allocation_section_field(system, total_bytes) != 0
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:534:59:  [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.
                || collect_btrfs_allocation_section_field(system, bytes_used) != 0) {
data/netdata-1.19.0/collectors/slabinfo.plugin/slabinfo.c:16:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, ##args); \
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1888:25:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                        strcpy(wildcarded, dim->name);
data/netdata-1.19.0/daemon/main.c:730:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(script, "%s/%s", netdata_configured_primary_plugins_dir, "system-info.sh");
data/netdata-1.19.0/daemon/main.c:731:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (unlikely(access(script, R_OK) != 0)) {
data/netdata-1.19.0/daemon/main.c:777:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(optout_file, "%s/%s", netdata_configured_user_config_dir, ".opt-out-from-anonymous-statistics");
data/netdata-1.19.0/daemon/main.c:778:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (likely(access(optout_file, R_OK) != 0)) {
data/netdata-1.19.0/daemon/main.c:780:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(as_script, "%s/%s", netdata_configured_primary_plugins_dir, "anonymous-statistics.sh");
data/netdata-1.19.0/daemon/main.c:781:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (unlikely(access(as_script, R_OK) != 0)) {
data/netdata-1.19.0/daemon/main.c:801:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command_to_run,"%s '%s' '%s' '%s'", as_script, action, action_result, action_data);
data/netdata-1.19.0/daemon/unit_test.c:22:23:  [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.
    char netdata[50], system[50];
data/netdata-1.19.0/daemon/unit_test.c:26:19:  [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.
        snprintfz(system, 49, "%0.12" LONG_DOUBLE_MODIFIER, (LONG_DOUBLE)values[i].n);
data/netdata-1.19.0/daemon/unit_test.c:34:74:  [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.
        fprintf(stderr, "'%s' (system) printed as '%s' (netdata): %s\n", system, netdata, ok?"OK":"FAILED");
data/netdata-1.19.0/daemon/unit_test.c:122:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr,
data/netdata-1.19.0/daemon/unit_test.c:164:30:  [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 user, system, total, mine, their;
data/netdata-1.19.0/daemon/unit_test.c:217:21:  [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.
    total  = user + system;
data/netdata-1.19.0/daemon/unit_test.c:220:179:  [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.
    fprintf(stderr, "user %0.5" LONG_DOUBLE_MODIFIER", system %0.5" LONG_DOUBLE_MODIFIER ", total %0.5" LONG_DOUBLE_MODIFIER "\n", (LONG_DOUBLE)(user / 1000000.0), (LONG_DOUBLE)(system / 1000000.0), (LONG_DOUBLE)(total / 1000000.0));
data/netdata-1.19.0/daemon/unit_test.c:241:21:  [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.
    total  = user + system;
data/netdata-1.19.0/daemon/unit_test.c:244:180:  [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.
    fprintf(stderr, "user %0.5" LONG_DOUBLE_MODIFIER ", system %0.5" LONG_DOUBLE_MODIFIER ", total %0.5" LONG_DOUBLE_MODIFIER "\n", (LONG_DOUBLE)(user / 1000000.0), (LONG_DOUBLE)(system / 1000000.0), (LONG_DOUBLE)(total / 1000000.0));
data/netdata-1.19.0/daemon/unit_test.c:275:21:  [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.
    total  = user + system;
data/netdata-1.19.0/daemon/unit_test.c:278:180:  [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.
    fprintf(stderr, "user %0.5" LONG_DOUBLE_MODIFIER ", system %0.5" LONG_DOUBLE_MODIFIER ", total %0.5" LONG_DOUBLE_MODIFIER "\n", (LONG_DOUBLE)(user / 1000000.0), (LONG_DOUBLE)(system / 1000000.0), (LONG_DOUBLE)(total / 1000000.0));
data/netdata-1.19.0/database/engine/datafile.c:54: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.
    (void) snprintf(str, maxlen, "%s/" DATAFILE_PREFIX RRDENG_FILE_NUMBER_PRINT_TMPL DATAFILE_EXTENSION,
data/netdata-1.19.0/database/engine/datafile.c:286:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        ret = sscanf(dent.name, DATAFILE_PREFIX RRDENG_FILE_NUMBER_SCAN_TMPL DATAFILE_EXTENSION, &tier, &no);
data/netdata-1.19.0/database/engine/journalfile.c:97: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.
    (void) snprintf(str, maxlen, "%s/" WALFILE_PREFIX RRDENG_FILE_NUMBER_PRINT_TMPL WALFILE_EXTENSION,
data/netdata-1.19.0/database/rrddim.c:303:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(rd->magic, RRDDIMENSION_MAGIC);
data/netdata-1.19.0/database/rrdset.c:540:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(config_section, fullid);
data/netdata-1.19.0/database/rrdset.c:668:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(st->cache_filename, fullfilename);
data/netdata-1.19.0/database/rrdset.c:669:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(st->magic, RRDSET_MAGIC);
data/netdata-1.19.0/database/rrdset.c:671:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(st->id, fullid);
data/netdata-1.19.0/libnetdata/buffer/buffer.c:10:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(&b->buffer[b->size + 1], BUFFER_OVERFLOW_EOF);
data/netdata-1.19.0/libnetdata/config/appconfig.c:286:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, "%0.5" LONG_DOUBLE_MODIFIER, value);
data/netdata-1.19.0/libnetdata/config/appconfig.c:396:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, "%0.5" LONG_DOUBLE_MODIFIER, value);
data/netdata-1.19.0/libnetdata/json/json.c:402:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(c,"%s%s%s", e->fullname, e->fullname[0]?".":"", ne.name);
data/netdata-1.19.0/libnetdata/libnetdata.c:143:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(t, s);
data/netdata-1.19.0/libnetdata/libnetdata.c:1100:16:  [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.
    int size = vsnprintf(dst, n, fmt, args);
data/netdata-1.19.0/libnetdata/log/log.c:688:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/netdata-1.19.0/libnetdata/log/log.c:725:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf( stderr, fmt, args );
data/netdata-1.19.0/libnetdata/log/log.c:781:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf( stderr, fmt, args );
data/netdata-1.19.0/libnetdata/log/log.c:814:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf( stderr, fmt, args );
data/netdata-1.19.0/libnetdata/log/log.c:854:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf( stdaccess, fmt, args );
data/netdata-1.19.0/libnetdata/os.h:54:30:  [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.
#error unsupported operating system
data/netdata-1.19.0/libnetdata/socket/socket.c:355:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, definition);
data/netdata-1.19.0/libnetdata/socket/socket.c:759:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer, definition);
data/netdata-1.19.0/libnetdata/statistical/statistical.c:13:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, "%" LONG_DOUBLE_MODIFIER, *value);
data/netdata-1.19.0/registry/registry_person.c:24:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(u->url, url);
data/netdata-1.19.0/web/api/formatters/charts2json.c:180:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(name, "%s:%s", col.plugin, col.module);
data/netdata-1.19.0/web/api/tests/valid_urls.c:134:5:  [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(fmt, args);
data/netdata-1.19.0/web/api/tests/valid_urls.c:147:5:  [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(fmt, args);
data/netdata-1.19.0/web/api/tests/valid_urls.c:162:5:  [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(fmt, args);
data/netdata-1.19.0/web/api/tests/valid_urls.c:175:5:  [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(fmt, args);
data/netdata-1.19.0/web/api/tests/web_api.c:129: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(log_buffer + cur, sizeof(log_buffer) - cur, fmt, args);
data/netdata-1.19.0/web/api/tests/web_api.c:145: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(log_buffer + cur, sizeof(log_buffer) - cur, fmt, args);
data/netdata-1.19.0/web/api/tests/web_api.c:163: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(log_buffer + cur, sizeof(log_buffer) - cur, fmt, args);
data/netdata-1.19.0/web/api/tests/web_api.c:177:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(fmt, args);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:4083:38:  [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.
    netdata_configured_host_prefix = getenv("NETDATA_HOST_PREFIX");
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:4086:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    user_config_dir = getenv("NETDATA_USER_CONFIG_DIR");
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:4093:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    stock_config_dir = getenv("NETDATA_STOCK_CONFIG_DIR");
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:273:12:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
        if(chroot(".") < 0)
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:657:38:  [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.
    netdata_configured_host_prefix = getenv("NETDATA_HOST_PREFIX");
data/netdata-1.19.0/daemon/daemon.c:146:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *s = getenv("OOMScoreAdjust");
data/netdata-1.19.0/daemon/main.c:571:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *tz = getenv("TZ");
data/netdata-1.19.0/daemon/main.c:680:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char path[1024 + 1], *p = getenv("PATH");
data/netdata-1.19.0/daemon/main.c:686: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.
    p = getenv("PYTHONPATH");
data/netdata-1.19.0/daemon/main.c:877:23:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while( (opt = getopt(argc, argv, optstring)) != -1 ) {
data/netdata-1.19.0/daemon/unit_test.c:2011:13:  [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.
        i = random() % DSET_CHARTS;
data/netdata-1.19.0/daemon/unit_test.c:2013:13:  [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.
        j = random() % DSET_DIMS;
data/netdata-1.19.0/daemon/unit_test.c:2021:37:  [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.
            time_after = time_min + random() % (MAX(time_max - time_min, 1));
data/netdata-1.19.0/daemon/unit_test.c:2022:24:  [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.
            duration = random() % 3600;
data/netdata-1.19.0/database/engine/pagecache.c:273:25:  [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.
                slots = random() % (2LU << MIN(failures, FAILURES_CEILING));
data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis.c:27: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis.c:30: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[CONFIG_FILE_LINE_MAX + 1], *s;
data/netdata-1.19.0/backends/aws_kinesis/aws_kinesis.c:34: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/backends/backends.c:167: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 sample[1024];
data/netdata-1.19.0/backends/backends.c:841:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char partition_key[KINESIS_PARTITION_KEY_MAX + 1];
data/netdata-1.19.0/backends/backends.c:858:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char error_message[ERROR_LINE_MAX + 1] = "";
data/netdata-1.19.0/backends/graphite/graphite.c:24: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/graphite/graphite.c:25: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/graphite/graphite.c:58: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/graphite/graphite.c:59: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/mongodb/mongodb.c:122: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/backends/mongodb/mongodb.c:125: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[CONFIG_FILE_LINE_MAX + 1], *s;
data/netdata-1.19.0/backends/mongodb/mongodb.c:129: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:24: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:25: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:61: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:62: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:121: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 message[1024];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:122: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:123: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:171: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:172: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 dimension_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/backends/opentsdb/opentsdb.c:176: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 message[1024];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[PROMETHEUS_VARIABLE_MAX+1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:229: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 hostname[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:232: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 labels[PROMETHEUS_LABELS_MAX + 1] = "";
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:297: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 chart[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:298: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 context[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:299: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 family[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:300: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 units[PROMETHEUS_ELEMENT_MAX + 1] = "";
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:336:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char dimension[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:595: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 hostname[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:601: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 tags[PROMETHEUS_LABELS_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:603: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 *words[PROMETHEUS_LABELS_MAX_NUMBER] = {NULL};
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:618: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 chart[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:619: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 context[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:620: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 family[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:621: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 units[PROMETHEUS_ELEMENT_MAX + 1] = "";
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:650:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[PROMETHEUS_LABELS_MAX + 1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:651:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char dimension[PROMETHEUS_ELEMENT_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:210: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 compare[MAX_COMPARE_NAME + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:214: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 id[MAX_NAME + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:217:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_NAME + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:313: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 comm[MAX_COMPARE_NAME + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:541: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:891: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1124:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char cmdline[MAX_CMDLINE + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1138: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1143:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(p->cmdline_filename, procfile_open_flags, 0666);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1300: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1351: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1514: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1572:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char filename[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1947: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 fdsname[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2007:25:  [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(fdsname, "other: inode: %lu", fds->kf_un.kf_file.kf_file_fileid);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2017:33:  [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(fdsname, "socket: %d %lx", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sock_inpcb);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2019:33:  [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(fdsname, "socket: %d %lx", fds->kf_sock_protocol, fds->kf_un.kf_sock.kf_sock_pcb);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2023:29:  [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(fdsname, "socket: %lx %lx", fds->kf_un.kf_sock.kf_sock_pcb, fds->kf_un.kf_sock.kf_sock_unpconn);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2035:21:  [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(fdsname, "pipe: %lu %lu", fds->kf_un.kf_pipe.kf_pipe_addr, fds->kf_un.kf_pipe.kf_pipe_peer);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2039:21:  [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(fdsname, "other: pts: %u", fds->kf_un.kf_pts.kf_pts_dev);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2041:21:  [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(fdsname, "other: pts: %lu", fds->kf_un.kf_pts.kf_pts_dev);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2048:21:  [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(fdsname, "other: sem: %u", fds->kf_un.kf_sem.kf_sem_value);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2051:21:  [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(fdsname, "other: pid: %d fd: %d", fds->kf_un.kf_proc.kf_pid, fds->kf_fd);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2069: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 dirname[FILENAME_MAX+1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2078: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 linkname[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2127: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 fdname[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2213: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[indent + 1];
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2650:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char uptime_filename[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2656: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 dirname[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:12:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char environment_variable2[FILENAME_MAX + 50] = "";
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:66: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:79: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:93: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:203: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:205:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, O_RDONLY);
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:312:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, procfile_open_flags);
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:324: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[100 + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:329:15:  [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(s);
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:343: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:373: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:506: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 command[CGROUP_NETWORK_INTERFACE_MAX_LINE + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:517: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 buffer[CGROUP_NETWORK_INTERFACE_MAX_LINE + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/cgroup-network.c:680:15:  [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(argv[2]);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:116: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 filename[FILENAME_MAX + 1], *s;
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:971: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 command[CGROUP_NETWORK_INTERFACE_MAX_LINE + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:988: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[CGROUP_NETWORK_INTERFACE_MAX_LINE + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1072: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 command[CGROUP_CHARTID_LINE_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1080: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 buffer[CGROUP_CHARTID_LINE_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1165: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 buffer[CGROUP_CHARTID_LINE_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1199: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 option[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1401:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char option[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1538: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1809: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 title[CHART_TITLE_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2686:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[30 + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2712: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 type[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2713: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 title[CHART_TITLE_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2872: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 id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:3096:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/diskspace.plugin/plugin_diskspace.c:119: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 var_name[4096 + 1];
data/netdata-1.19.0/collectors/diskspace.plugin/plugin_diskspace.c:259:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[4096 + 1];
data/netdata-1.19.0/collectors/diskspace.plugin/plugin_diskspace.c:301:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[4096 + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_devstat.c:276:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char disk[DEVSTAT_NAME_LEN + MAX_INT_DIGITS + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_devstat.c:292:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            char var_name[4096 + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getifaddrs.c:412:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char var_name[4096 + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getmntinfo.c:179:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[4096 + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getmntinfo.c:186:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char var_name[4096 + 1];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_ipfw.c:49: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 rule_num_str[12];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_ipfw.c:236:21:  [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(rule_num_str, "%d_%d", rule->rulenum, rule->id);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_ipfw.c:285:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(&dyn_rule->rule, &rulenum, sizeof(rulenum));
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_ipfw.c:348:17:  [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(rule_num_str, "%d", dyn_rules_num[srn].rule_num);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:396:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char cpuid[MAX_INT_DIGITS + 4];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:466: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 char_mib[MAX_INT_DIGITS + 21];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:467: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 char_rd[MAX_INT_DIGITS + 9];
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:477:13:  [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(char_mib, "dev.cpu.%d.temperature", i);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:516:13:  [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(char_rd, "cpu%d.temp", i);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_sysctl.c:1671: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 netisr_cpuid[MAX_INT_DIGITS + 17];
data/netdata-1.19.0/collectors/freeipmi.plugin/freeipmi_plugin.c:1311:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char oem_data[64];
data/netdata-1.19.0/collectors/macos.plugin/macos_fw.c:48: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 name[MAXDRIVENAME];
data/netdata-1.19.0/collectors/macos.plugin/macos_fw.c: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 mntonname[MNAMELEN + 1];
data/netdata-1.19.0/collectors/macos.plugin/macos_fw.c:77: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 title[4096 + 1];
data/netdata-1.19.0/collectors/nfacct.plugin/plugin_nfacct.c:83: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.
    const char *attr2name[CTA_STATS_MAX+1];
data/netdata-1.19.0/collectors/nfacct.plugin/plugin_nfacct.c:87: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.
    const char *attr2name_exp[CTA_STATS_EXP_MAX+1];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:5:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *plugin_directories[PLUGINSD_MAX_DIRECTORIES] = { NULL };
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:103: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 plugins_dirs[(FILENAME_MAX * 2) + 1];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:145:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[256];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:187: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(output, input, length);
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:193: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(output, input, length);
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:227: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 line[PLUGINSD_LINE_MAX + 1];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:229: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 *words[PLUGINSD_MAX_WORDS] = { NULL };
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:251: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 tmpbuffer[PLUGINSD_LINE_MAX];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:821:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char pluginname[CONFIG_MAX_NAME + 1];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:865:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char tag[NETDATA_THREAD_TAG_MAX + 1];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *plugin_directories[PLUGINSD_MAX_DIRECTORIES];
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:41: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 id[CONFIG_MAX_NAME+1];         // config node id
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:43: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 filename[FILENAME_MAX+1];      // just the filename
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:44: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 fullfilename[FILENAME_MAX+1];  // with path
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:45: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 cmd[PLUGINSD_CMD_MAX+1];       // the command that it executes
data/netdata-1.19.0/collectors/proc.plugin/ipc.c:76:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char filename[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/collectors/proc.plugin/ipc.c:297: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/ipc.c:450:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/plugin_proc.c:202:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:172: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[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:310: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 buffer[CONFIG_MAX_NAME + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:346:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:362: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:429: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 result[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:450: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 var_name[4096 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:576: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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:688: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 buffer2[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:820: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:870: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c: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 name[MAX_INTERRUPT_NAME + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:29:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define irrindex(base, line, cpus) ((struct interrupt *)&((char *)(base))[(line) * recordsize(cpus)])
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:66: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:209:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[50+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:212:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[100+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_loadavg.c:17: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c:66: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 id[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c:98: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c:287: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c:410: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 id[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_mdstat.c:411: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 family[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_meminfo.c:122: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:275: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[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:447: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:515: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_ip_vs_stats.c:19: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_netstat.c:233: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfs.c:9:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[30];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfs.c:149: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfsd.c:8:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[30];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_rpc_nfsd.c:232: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sctp_snmp.c:98: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_snmp.c:223: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_snmp6.c:251: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c:41: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c:46: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[200 + 1], *start, *end;
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c:75: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c:116:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char     *keys[7]  = { NULL };
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat.c:182: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat6.c:34:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char     *keys[6]  = { NULL };
data/netdata-1.19.0/collectors/proc.plugin/proc_net_sockstat6.c:75: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_softnet_stat.c:30: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_softnet_stat.c:114: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 id[50+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_softnet_stat.c:119:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[100+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_stat_conntrack.c:21: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_net_stat_synproxy.c:24: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:75:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char ff_path[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:213:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[3+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:216:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[20+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:236: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 setid[13+1+2+1+MAX_ZONETYPE_NAME+1+MAX_PAGETYPE_NAME+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:244: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 setname[4+1+MAX_ZONETYPE_NAME+1+MAX_PAGETYPE_NAME +1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:263:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dimid[3+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_pagetypeinfo.c:265:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dimname[20+1];
data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c:180: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c:17:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_INTERRUPT_NAME + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c:28:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define irrindex(base, line, cpus) ((struct interrupt *)&((char *)(base))[(line) * recordsize(cpus)])
data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c:65: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c:200:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_softirqs.c:203:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char title[100 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_spl_kstat_zfs.c:117: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:58: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 buf[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:70:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            f->fd = open(f->filename, O_RDONLY);
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:372: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:373:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char next_state_filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:411: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 name_buf[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:414:22:  [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).
            int fd = open(filename, O_RDONLY, 0666);
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:446: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).
            cs->time_fd = open(cs->time_filename, O_RDONLY);
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:454: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 time_buf[50 + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:535: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:566: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:643:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:932: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:1022:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char cpuidle_chart_id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:1041:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char cpuidle_dim_id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_sys_kernel_random_entropy_avail.c:11: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_uptime.c:10: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/proc_vmstat.c:70: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_block_zram.c:60: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 chart_name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_block_zram.c:134: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:129: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:171:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:193:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:241:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[30 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:244:40:  [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).
                    ps->capacity->fd = open(ps->capacity->filename, O_RDONLY, 0666);
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:286:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[30 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:289:42:  [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).
                                pd->fd = open(pd->filename, O_RDONLY, 0666);
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:374:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[RRD_ID_LENGTH_MAX + 1], context[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_devices_system_edac_mc.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_devices_system_node.c:16:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:128: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:251: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:308: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 label[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:466: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:551:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[RRD_ID_LENGTH_MAX + 1], name[RRD_ID_LENGTH_MAX + 1], title[200 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:609:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[RRD_ID_LENGTH_MAX + 1], name[RRD_ID_LENGTH_MAX + 1], title[200 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:652:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[RRD_ID_LENGTH_MAX + 1], name[RRD_ID_LENGTH_MAX + 1], title[200 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_fs_btrfs.c:697:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char id[RRD_ID_LENGTH_MAX + 1], name[RRD_ID_LENGTH_MAX + 1], title[200 + 1];
data/netdata-1.19.0/collectors/proc.plugin/sys_kernel_mm_ksm.c:8: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:776: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[STATSD_UDP_BUFFER_SIZE];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1121: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1184:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char lineandfile[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1215:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char lineandfile[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1284:44:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                app->rrd_history_entries = atol(value);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1319:35:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                chart->priority = atol(value);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1326:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *words[10];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1478: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 type[RRD_ID_LENGTH_MAX + 1], id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1481: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 context[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1484: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 title[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1520: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 type[RRD_ID_LENGTH_MAX + 1], id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1523: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 context[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1526: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 title[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1562: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 type[RRD_ID_LENGTH_MAX + 1], id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1565: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 context[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1568: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 title[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1604: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 type[RRD_ID_LENGTH_MAX + 1], id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1607: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 context[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1610: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 title[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1886:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char wildcarded[wildcarded_len];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1961: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 metric[ len + 1 ];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:2175: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 buffer[100 + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:2239: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 tag[NETDATA_THREAD_TAG_MAX + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:2432: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 id[100 + 1];
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:2433: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 title[100 + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:215: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 var_name[CONFIG_MAX_NAME + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:436: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 id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:437: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 name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:460:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:491: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 id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:492: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 name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:515:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:546: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 id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:547: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 name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:570:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:602: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 id[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:603: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 name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:627:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:872: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 command[FILENAME_MAX + 1];
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:873: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 *words[PLUGINSD_MAX_WORDS] = { NULL };
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:905: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 buffer[TC_LINE_MAX+1] = "";
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:973:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char leafbuf[20 + 1] = "";
data/netdata-1.19.0/collectors/xenstat.plugin/xenstat_plugin.c:426: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 uuid[LIBXL_UUID_FMTLEN + 1];
data/netdata-1.19.0/collectors/xenstat.plugin/xenstat_plugin.c:765: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 type[TYPE_LENGTH_MAX + 1];
data/netdata-1.19.0/daemon/daemon.c:6:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pidfile[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/daemon/daemon.c:133: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 buf[30 + 1];
data/netdata-1.19.0/daemon/daemon.c:181:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open("/proc/self/oom_score_adj", O_WRONLY);
data/netdata-1.19.0/daemon/daemon.c:414: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).
        pidfd = open(pidfile, O_WRONLY | O_CREAT, 0644);
data/netdata-1.19.0/daemon/daemon.c:419: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 b[100];
data/netdata-1.19.0/daemon/daemon.c:420:13:  [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(b, "%d\n", getpid());
data/netdata-1.19.0/daemon/global_statistics.c:165: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(gs, (const void *)&global_statistics, sizeof(struct global_statistics));
data/netdata-1.19.0/daemon/main.c:390: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/daemon/main.c:402: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/daemon/main.c:412: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 deffacility[8];
data/netdata-1.19.0/daemon/main.c:475: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 buf[HOSTNAME_MAX + 1];
data/netdata-1.19.0/daemon/main.c:575: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[FILENAME_MAX + 1] = "";
data/netdata-1.19.0/daemon/main.c:635: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 tmp[len + 1];
data/netdata-1.19.0/daemon/main.c:659: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 b[16];
data/netdata-1.19.0/daemon/main.c:680: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 path[1024 + 1], *p = getenv("PATH");
data/netdata-1.19.0/daemon/main.c:743: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 buffer[200 + 1];
data/netdata-1.19.0/daemon/main.c:755:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char n[51], v[101];
data/netdata-1.19.0/daemon/main.c:806: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 buffer[100 + 1];
data/netdata-1.19.0/daemon/main.c:814: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/daemon/main.c:861: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 optstring[(num_opts * 2) + 1];
data/netdata-1.19.0/daemon/main.c:1001:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            char wildcarded[len];
data/netdata-1.19.0/daemon/signals.c:46:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[200 + 1];
data/netdata-1.19.0/daemon/unit_test.c:22: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 netdata[50], system[50];
data/netdata-1.19.0/daemon/unit_test.c:99: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[100];
data/netdata-1.19.0/daemon/unit_test.c:169: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[100];
data/netdata-1.19.0/daemon/unit_test.c:392: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 string[2048 + 1];
data/netdata-1.19.0/daemon/unit_test.c:393: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 final[9000 + 1];
data/netdata-1.19.0/daemon/unit_test.c:428:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[100];
data/netdata-1.19.0/daemon/unit_test.c:429: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 description[1024];
data/netdata-1.19.0/daemon/unit_test.c:1128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[101];
data/netdata-1.19.0/daemon/unit_test.c:1380:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[101];
data/netdata-1.19.0/daemon/unit_test.c:1532:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[101];
data/netdata-1.19.0/daemon/unit_test.c:1883:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/database/engine/datafile.c:63: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/datafile.c:84: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/datafile.c:125: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/datafile.c:210: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/datafile.c:253: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 path1[RRDENG_PATH_MAX], path2[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/datafile.c:345: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/journalfile.c:113: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/journalfile.c:133: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/journalfile.c:174: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/journalfile.c:443: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/rrddiskprotocol.h:28: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 magic_number[RRDENG_MAGIC_SZ];
data/netdata-1.19.0/database/engine/rrddiskprotocol.h:29: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 version[RRDENG_VER_SZ];
data/netdata-1.19.0/database/engine/rrddiskprotocol.h:75: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 magic_number[RRDENG_MAGIC_SZ];
data/netdata-1.19.0/database/engine/rrddiskprotocol.h: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 version[RRDENG_VER_SZ];
data/netdata-1.19.0/database/engine/rrdengine.c:120: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.
            (void) memcpy(page, xt_io_descr->buf + payload_offset + page_offset, descr->page_length);
data/netdata-1.19.0/database/engine/rrdengine.c:122: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.
            (void) memcpy(page, uncompressed_buf + page_offset, descr->page_length);
data/netdata-1.19.0/database/engine/rrdengine.c:231: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(jf_metric_data->descr, df_header->descr, descr_size);
data/netdata-1.19.0/database/engine/rrdengine.c:387:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy(xt_io_descr->descr_array, eligible_pages, sizeof(struct rrdeng_page_descr *) * count);
data/netdata-1.19.0/database/engine/rrdengine.c:418:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void) memcpy(xt_io_descr->buf + pos, descr->pg_cache_descr->page, descr->page_length);
data/netdata-1.19.0/database/engine/rrdengine.c:436:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void) memcpy(xt_io_descr->buf + payload_offset, compressed_buf, compressed_size);
data/netdata-1.19.0/database/engine/rrdengine.c:477: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 path[RRDENG_PATH_MAX];
data/netdata-1.19.0/database/engine/rrdengine.c:697: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 buf[4096];
data/netdata-1.19.0/database/engine/rrdengine.h:170: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 dbfiles_path[FILENAME_MAX+1];
data/netdata-1.19.0/database/engine/rrdengineapi.c:23: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 hash_value[EVP_MAX_MD_SIZE];
data/netdata-1.19.0/database/engine/rrdenginelib.c:10: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 uuid_str[UUID_STR_LEN];
data/netdata-1.19.0/database/engine/rrdenginelib.c:11: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 str[BUFSIZE + 1];
data/netdata-1.19.0/database/engine/rrdenginelib.c:33: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 uuid_str[UUID_STR_LEN];
data/netdata-1.19.0/database/engine/rrdenginelib.c:34: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 str[BUFSIZE + 1];
data/netdata-1.19.0/database/rrd.c:145: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 b[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrd.c:146: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 n[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrd.h:230: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 magic[sizeof(RRDDIMENSION_MAGIC) + 1];     // a string to be saved, used to identify our data file
data/netdata-1.19.0/database/rrd.h:384: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 id[RRD_ID_LENGTH_MAX + 1];                 // id of the data set
data/netdata-1.19.0/database/rrd.h:424: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 cache_filename[FILENAME_MAX+1];            // the filename to store this set
data/netdata-1.19.0/database/rrd.h:474: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 magic[sizeof(RRDSET_MAGIC) + 1];           // our magic
data/netdata-1.19.0/database/rrd.h:622: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 machine_guid[GUID_LEN + 1];                // the unique ID of this host
data/netdata-1.19.0/database/rrdcalc.c:72: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 fullname[RRDVAR_MAX_LENGTH + 1];
data/netdata-1.19.0/database/rrdcalc.c:276: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(move, name, namelen);
data/netdata-1.19.0/database/rrdcalc.c:280: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(move, dim, dimlen);
data/netdata-1.19.0/database/rrddim.c:46: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 varname[CONFIG_MAX_NAME + 1];
data/netdata-1.19.0/database/rrddim.c:208: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrddim.c:209: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 fullfilename[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrddim.c:211: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 varname[CONFIG_MAX_NAME + 1];
data/netdata-1.19.0/database/rrddimvar.c:87: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[RRDDIMVAR_ID_MAX + 1];
data/netdata-1.19.0/database/rrdhost.c:208: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrdhost.c:241: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 dbenginepath[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrdset.c:105: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 buf[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/database/rrdset.c:146: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 b[CONFIG_MAX_VALUE + 1];
data/netdata-1.19.0/database/rrdset.c:147: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 n[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/database/rrdset.c:507: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 fullid[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/database/rrdset.c:533: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 fullfilename[FILENAME_MAX + 1];
data/netdata-1.19.0/database/rrdset.c:538: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 config_section[RRD_ID_LENGTH_MAX + 1];
data/netdata-1.19.0/database/rrdsetvar.c:60: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[RRDVAR_MAX_LENGTH + 1];
data/netdata-1.19.0/health/health.c:25: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[FILENAME_MAX + 1];
data/netdata-1.19.0/health/health.c:38: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[FILENAME_MAX + 1];
data/netdata-1.19.0/health/health.c:49: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 *fd = fopen(silencers_filename, "r");
data/netdata-1.19.0/health/health.c:255:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char command_to_run[ALARM_EXEC_COMMAND_LENGTH + 1];
data/netdata-1.19.0/health/health.c:321: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[100 + 1];
data/netdata-1.19.0/health/health_config.c:248: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 buf[100+1] = "";
data/netdata-1.19.0/health/health_config.c:463: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[FILENAME_MAX + 1];
data/netdata-1.19.0/health/health_config.c:502: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[HEALTH_CONF_MAX_LINE + 1];
data/netdata-1.19.0/health/health_config.c:527: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/health/health_json.c:117: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 value_string[100 + 1];
data/netdata-1.19.0/health/health_log.c:13:27:  [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).
    host->health_log_fp = fopen(host->health_log_filename, "a");
data/netdata-1.19.0/health/health_log.c:43:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char old_filename[FILENAME_MAX + 1];
data/netdata-1.19.0/health/health_log.c:56:31:  [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).
        host->health_log_fp = fopen(host->health_log_filename, "w");
data/netdata-1.19.0/health/health_log.c:140: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 *pointers[max_entries];
data/netdata-1.19.0/health/health_log.c:307: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 value_string[100 + 1];
data/netdata-1.19.0/health/health_log.c:350: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/health/health_log.c:352: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/health/health_log.c:361:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(host->health_log_filename, "r");
data/netdata-1.19.0/health/health_log.c:424: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 value_string[100 + 1];
data/netdata-1.19.0/libnetdata/avl/avl.c:50: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 da[AVL_MAX_HEIGHT]; /* Cached comparison results. */
data/netdata-1.19.0/libnetdata/avl/avl.c:142: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 da[AVL_MAX_HEIGHT];    /* |avl_link[]| indexes. */
data/netdata-1.19.0/libnetdata/config/appconfig.c:274: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[100], *s;
data/netdata-1.19.0/libnetdata/config/appconfig.c:275:5:  [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(buffer, "%lld", value);
data/netdata-1.19.0/libnetdata/config/appconfig.c:285: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[100], *s;
data/netdata-1.19.0/libnetdata/config/appconfig.c:385: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[100];
data/netdata-1.19.0/libnetdata/config/appconfig.c:386:5:  [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(buffer, "%lld", value);
data/netdata-1.19.0/libnetdata/config/appconfig.c:395: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[100];
data/netdata-1.19.0/libnetdata/config/appconfig.c:444: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[CONFIG_FILE_LINE_MAX + 1], *s;
data/netdata-1.19.0/libnetdata/config/appconfig.c:450: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 *fp = fopen(filename, "r");
data/netdata-1.19.0/libnetdata/dictionary/dictionary.c:93: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(nv->value, value, value_len);
data/netdata-1.19.0/libnetdata/dictionary/dictionary.c:203: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(new, value, value_len);
data/netdata-1.19.0/libnetdata/eval/eval.c:374: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 b[100+1], *s;
data/netdata-1.19.0/libnetdata/eval/eval.c:912: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 variable_buffer[EVAL_MAX_VARIABLE_NAME_LENGTH + 1];
data/netdata-1.19.0/libnetdata/inlined.h:252:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, O_RDONLY, 0666);
data/netdata-1.19.0/libnetdata/inlined.h:271: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[30 + 1];
data/netdata-1.19.0/libnetdata/inlined.h:285: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[30 + 1];
data/netdata-1.19.0/libnetdata/json/json.c:96: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 txt[50];
data/netdata-1.19.0/libnetdata/json/json.c:105:13:  [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(txt,"ARRAY[%lu]", e->data.items);
data/netdata-1.19.0/libnetdata/json/json.c:114:13:  [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(txt,"%Lf", e->data.number);
data/netdata-1.19.0/libnetdata/json/json.c:142: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(e->name,key,length);
data/netdata-1.19.0/libnetdata/json/json.c:299: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(&ne, e, sizeof(JSON_ENTRY));
data/netdata-1.19.0/libnetdata/json/json.c:366: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(&ne, e, sizeof(JSON_ENTRY));
data/netdata-1.19.0/libnetdata/json/json.h:26:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[JSON_NAME_LEN + 1];
data/netdata-1.19.0/libnetdata/json/json.h:27: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 fullname[JSON_FULLNAME_LEN + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:67: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(&old, &memory_statistics, sizeof(struct memory_statistics));
data/netdata-1.19.0/libnetdata/libnetdata.c:228:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char netdata_map_chart_names[256] = {
data/netdata-1.19.0/libnetdata/libnetdata.c:493:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char netdata_map_chart_ids[256] = {
data/netdata-1.19.0/libnetdata/libnetdata.c:926:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, O_RDWR | O_CREAT | O_NOATIME, 0664);
data/netdata-1.19.0/libnetdata/libnetdata.c:1049: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 tmpfilename[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:1053:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(tmpfilename, O_RDWR | O_CREAT | O_NOATIME, 0664);
data/netdata-1.19.0/libnetdata/libnetdata.c:1153: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 fullpath[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:1213: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[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:1274: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[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:1292: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/libnetdata.c:1328: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 buffer[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/log/log.c:512:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f = open(filename, O_WRONLY | O_APPEND | O_CREAT, 0664);
data/netdata-1.19.0/libnetdata/log/log.c:608: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:629: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:651: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:683: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:717: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:773: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:785: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 buf[1024];
data/netdata-1.19.0/libnetdata/log/log.c:806: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/log/log.c:822: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 action_data[70+1];
data/netdata-1.19.0/libnetdata/log/log.c:824:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char action_result[60+1];
data/netdata-1.19.0/libnetdata/log/log.c:849: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 date[LOG_DATE_LENGTH];
data/netdata-1.19.0/libnetdata/os.c:35: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/os.c:92: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/procfile/procfile.c:27: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[FILENAME_MAX + 1];
data/netdata-1.19.0/libnetdata/procfile/procfile.c:370:56:  [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 procfile_set_open_close(procfile *ff, const char *open, const char *close) {
data/netdata-1.19.0/libnetdata/procfile/procfile.c:380:18:  [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(unlikely(!open || !*open || !close || !*close))
data/netdata-1.19.0/libnetdata/procfile/procfile.c:380:28:  [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(unlikely(!open || !*open || !close || !*close))
data/netdata-1.19.0/libnetdata/procfile/procfile.c:384:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    const char *s = open;
data/netdata-1.19.0/libnetdata/procfile/procfile.c:397:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, procfile_open_flags, 0666);
data/netdata-1.19.0/libnetdata/procfile/procfile.c:433:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff->fd = open(filename, procfile_open_flags, 0666);
data/netdata-1.19.0/libnetdata/procfile/procfile.h:50: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 filename[FILENAME_MAX + 1]; // not populated until profile_filename() is called
data/netdata-1.19.0/libnetdata/procfile/procfile.h:79:63:  [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).
extern void procfile_set_open_close(procfile *ff, const char *open, const char *close);
data/netdata-1.19.0/libnetdata/socket/security.c:110: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 lerror[512];
data/netdata-1.19.0/libnetdata/socket/security.c:254:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 char buf[256];
data/netdata-1.19.0/libnetdata/socket/security.c:293: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 error[512];
data/netdata-1.19.0/libnetdata/socket/security.c:325: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 buf[256];
data/netdata-1.19.0/libnetdata/socket/socket.c:88: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[100 + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:354: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[strlen(definition) + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:357: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 buffer2[10 + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:477: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 rip[INET_ADDRSTRLEN + INET6_ADDRSTRLEN] = "INVALID";
data/netdata-1.19.0/libnetdata/socket/socket.c:548: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 buf[e - s + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:635: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 hostBfr[NI_MAXHOST + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:636: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 servBfr[NI_MAXSERV + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:758: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[strlen(definition) + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:761: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 default_service[10 + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:849: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 buf[e - s + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:1030:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(client_host,"UNKNOWN");
data/netdata-1.19.0/libnetdata/socket/socket.c:1038:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(client_host,"UNKNOWN");
data/netdata-1.19.0/libnetdata/socket/socket.c:1044: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 address[INET6_ADDRSTRLEN];
data/netdata-1.19.0/libnetdata/socket/socket.c:1065:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(client_host,"UNKNOWN");
data/netdata-1.19.0/libnetdata/socket/socket.c:1345: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[1024 + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:1440:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char client_ip[INET6_ADDRSTRLEN];
data/netdata-1.19.0/libnetdata/socket/socket.c:1441:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char client_port[NI_MAXSERV];
data/netdata-1.19.0/libnetdata/socket/socket.c:1442:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char client_host[NI_MAXHOST];
data/netdata-1.19.0/libnetdata/socket/socket.h:46: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 *fds_names[MAX_LISTEN_FDS];    // descriptions for the open sockets
data/netdata-1.19.0/libnetdata/statistical/statistical.c:111: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(copy, series, sizeof(LONG_DOUBLE) * entries);
data/netdata-1.19.0/libnetdata/statistical/statistical.c:354: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.
    if(gamma > 0) memcpy(season, s, *period * sizeof(LONG_DOUBLE));
data/netdata-1.19.0/libnetdata/storage_number/storage_number.c:183: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 integral_str[50], fractional_str[50];
data/netdata-1.19.0/libnetdata/storage_number/tests/test_storage_number.c:12: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 value[50];
data/netdata-1.19.0/libnetdata/threads/threads.c:118: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 threadname[16];
data/netdata-1.19.0/registry/registry.c:26: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 edate[100];
data/netdata-1.19.0/registry/registry_db.c:115: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 tmp_filename[FILENAME_MAX + 1];
data/netdata-1.19.0/registry/registry_db.c:116: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 old_filename[FILENAME_MAX + 1];
data/netdata-1.19.0/registry/registry_db.c:122: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 *fp = fopen(tmp_filename, "w");
data/netdata-1.19.0/registry/registry_db.c:214: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 *s, buf[4096 + 1];
data/netdata-1.19.0/registry/registry_db.c:221: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 *fp = fopen(registry.db_filename, "r");
data/netdata-1.19.0/registry/registry_init.c:7: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/registry/registry_internals.c:84: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 pbuf[GUID_LEN + 1], mbuf[GUID_LEN + 1];
data/netdata-1.19.0/registry/registry_internals.c:224: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 mbuf[GUID_LEN + 1];
data/netdata-1.19.0/registry/registry_internals.c:285:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char guid[GUID_LEN + 1] = "";
data/netdata-1.19.0/registry/registry_internals.c:291:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(registry.machine_guid_filename, O_RDONLY);
data/netdata-1.19.0/registry/registry_internals.c:293: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 buf[GUID_LEN + 1];
data/netdata-1.19.0/registry/registry_internals.c:319:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(registry.machine_guid_filename, O_WRONLY|O_CREAT|O_TRUNC, 444);
data/netdata-1.19.0/registry/registry_log.c:33:23:  [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).
    registry.log_fp = fopen(registry.log_filename, "a");
data/netdata-1.19.0/registry/registry_log.c:56:27:  [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).
        registry.log_fp = fopen(registry.log_filename, "w");
data/netdata-1.19.0/registry/registry_log.c:73: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 *fp = fopen(registry.log_filename, "r");
data/netdata-1.19.0/registry/registry_log.c:77: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 *s, buf[4096 + 1];
data/netdata-1.19.0/registry/registry_machine.c:63: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 buf[GUID_LEN + 1];
data/netdata-1.19.0/registry/registry_machine.h:25: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 guid[GUID_LEN + 1];    // the GUID
data/netdata-1.19.0/registry/registry_person.c:21: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 buf[sizeof(REGISTRY_URL) + strlen(url)];
data/netdata-1.19.0/registry/registry_person.c:187: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 buf[GUID_LEN + 1];
data/netdata-1.19.0/registry/registry_person.h:24: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 machine_name[1];       // the name of the machine, as known by the user
data/netdata-1.19.0/registry/registry_person.h:31: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 guid[GUID_LEN + 1];    // the person GUID
data/netdata-1.19.0/registry/registry_url.c:30: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 buf[sizeof(REGISTRY_URL) + urllen]; // no need for +1, 1 is already in REGISTRY_URL
data/netdata-1.19.0/registry/registry_url.h:21: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 url[1];    // the URL - dynamically allocated to more size
data/netdata-1.19.0/streaming/rrdpush.c:504: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 http[HTTP_HEADER_SIZE + 1];
data/netdata-1.19.0/streaming/rrdpush.c:675: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 connected_to[CONNECTED_TO_SIZE + 1] = "";
data/netdata-1.19.0/streaming/rrdpush.c:792:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[1000 + 1];
data/netdata-1.19.0/streaming/rrdpush.c:1248: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 tag[NETDATA_THREAD_TAG_MAX + 1];
data/netdata-1.19.0/streaming/rrdpush.c:1283: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 buf[GUID_LEN + 1];
data/netdata-1.19.0/streaming/rrdpush.c:1452: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 tag[FILENAME_MAX + 1];
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:192:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(dst, "&amp;");
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:202:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(dst, "&lt;");
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:212:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(dst, "&gt;");
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:222:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(dst, "&quot;");
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:232:21:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                    strcpy(dst, "&apos;");
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:562: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 color_buffer[256 + 1] = "";
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:563: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 value_buffer[256 + 1] = "";
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:692: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    value_color_buffer[COLOR_STRING_SIZE + 1]
data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.c:32: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 chart[SHELL_ELEMENT_MAX + 1];
data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.c:43:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char dimension[SHELL_ELEMENT_MAX + 1];
data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.c:71: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 chart[SHELL_ELEMENT_MAX + 1];
data/netdata-1.19.0/web/api/exporters/shell/allmetrics_shell.c:74: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 alarm[SHELL_ELEMENT_MAX + 1];
data/netdata-1.19.0/web/api/formatters/charts2json.c:11: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[FILENAME_MAX + 1];
data/netdata-1.19.0/web/api/formatters/charts2json.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[500];
data/netdata-1.19.0/web/api/formatters/json/json.c:13: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 kq[2] = "",                    // key quote
data/netdata-1.19.0/web/api/formatters/json/json.c:44:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(post_line,          "]}");
data/netdata-1.19.0/web/api/formatters/json/json.c:46:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(finish,             "\n  ]\n}");
data/netdata-1.19.0/web/api/formatters/json/json.c:73:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(pre_date, "      { ");
data/netdata-1.19.0/web/api/formatters/json/json.c:75:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(pre_date, "      [ ");
data/netdata-1.19.0/web/api/formatters/json/json.c:76:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(pre_label,  ", \"");
data/netdata-1.19.0/web/api/formatters/json/json.c:78:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(pre_value,  ", ");
data/netdata-1.19.0/web/api/formatters/json/json.c:84:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(finish,             "\n  ]\n}");
data/netdata-1.19.0/web/api/formatters/json_wrapper.c:13: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 kq[2] = "",                    // key quote
data/netdata-1.19.0/web/api/formatters/json_wrapper.c:201: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 kq[2] = "",                    // key quote
data/netdata-1.19.0/web/api/health/health_cmdapi.c:95: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 *fd = fopen(silencers_filename, "wb");
data/netdata-1.19.0/web/api/tests/valid_urls.c:75: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 url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:227: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:255: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:283: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:313: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:350: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:380: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 debug[4096];
data/netdata-1.19.0/web/api/tests/valid_urls.c:410: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:414: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:436: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:440: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:458: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:462: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:481: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:485: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:504: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:508: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:527: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:531: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:550: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:554: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:573: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:577: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:596: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:600: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:619: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:623: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:642: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:646: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:665: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:669: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:688: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(
data/netdata-1.19.0/web/api/tests/valid_urls.c:693: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:697: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:717: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 debug[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:721: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/valid_urls.c:742: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 debug[2048];
data/netdata-1.19.0/web/api/tests/valid_urls.c:746: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 expected_url_repr[160];
data/netdata-1.19.0/web/api/tests/web_api.c:75: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 url_repr[160];
data/netdata-1.19.0/web/api/tests/web_api.c:118:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char log_buffer[10240] = { 0 };
data/netdata-1.19.0/web/api/tests/web_api.c:265:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[80];
data/netdata-1.19.0/web/api/tests/web_api.c:291: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_repr[1024];
data/netdata-1.19.0/web/api/tests/web_api.c:338:13:  [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(
data/netdata-1.19.0/web/api/tests/web_api.c:364:13:  [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(
data/netdata-1.19.0/web/api/web_api_v1.c:96:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char uuid_str[37];
data/netdata-1.19.0/web/api/web_api_v1.c:101: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 filename[FILENAME_MAX + 1];
data/netdata-1.19.0/web/api/web_api_v1.c:104:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char guid[GUID_LEN + 1] = "";
data/netdata-1.19.0/web/api/web_api_v1.c:110:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(api_key_filename, O_RDONLY);
data/netdata-1.19.0/web/api/web_api_v1.c:112: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 buf[GUID_LEN + 1];
data/netdata-1.19.0/web/api/web_api_v1.c:136:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(api_key_filename, O_WRONLY|O_CREAT|O_TRUNC, 444);
data/netdata-1.19.0/web/api/web_api_v1.c:579: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 person_guid[GUID_LEN + 1] = "";
data/netdata-1.19.0/web/server/static/static-threaded.c:171: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 test[8];
data/netdata-1.19.0/web/server/static/static-threaded.c:332: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 id[100 + 1];
data/netdata-1.19.0/web/server/static/static-threaded.c:333: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 title[100 + 1];
data/netdata-1.19.0/web/server/static/static-threaded.c:492:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tag[50 + 1];
data/netdata-1.19.0/web/server/web_client.c:376: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 webfilename[FILENAME_MAX + 1];
data/netdata-1.19.0/web/server/web_client.c:417:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    w->ifd = open(webfilename, O_NONBLOCK, O_RDONLY);
data/netdata-1.19.0/web/server/web_client.c:847: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 hostname[256];
data/netdata-1.19.0/web/server/web_client.c:854:21:  [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(hostname,copyme,length);
data/netdata-1.19.0/web/server/web_client.c:858:21:  [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(hostname,"not available",13);
data/netdata-1.19.0/web/server/web_client.c:863: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(hostname,"not available",13);
data/netdata-1.19.0/web/server/web_client.c:1022: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 *ptr_variables[WEB_FIELDS_MAX];
data/netdata-1.19.0/web/server/web_client.c:1140: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 date[32], edate[32];
data/netdata-1.19.0/web/server/web_client.c:1151: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 headerbegin[8328];
data/netdata-1.19.0/web/server/web_client.c:1153: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(headerbegin,"\r\nLocation: https://",20);
data/netdata-1.19.0/web/server/web_client.c:1155: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(&headerbegin[20],w->server_host,headerlength);
data/netdata-1.19.0/web/server/web_client.c:1158: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(&headerbegin[headerlength],w->last_url,tmp);
data/netdata-1.19.0/web/server/web_client.c:1160: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(&headerbegin[headerlength],"\r\n",2);
data/netdata-1.19.0/web/server/web_client.c:1164: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(headerbegin,"\r\n",2);
data/netdata-1.19.0/web/server/web_client.c:1480: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 filename[FILENAME_MAX+1];
data/netdata-1.19.0/web/server/web_client.c:1543:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(w->last_url, "too big request");
data/netdata-1.19.0/web/server/web_client.c:1641: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 buf[24];
data/netdata-1.19.0/web/server/web_client.c:1643:22:  [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.
    bytes = (ssize_t)sprintf(buf, "%zX\r\n", len);
data/netdata-1.19.0/web/server/web_client.h:157: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 client_ip[INET6_ADDRSTRLEN];   // Defined buffer sizes include null-terminators
data/netdata-1.19.0/web/server/web_client.h:158: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 client_port[NI_MAXSERV];
data/netdata-1.19.0/web/server/web_client.h:159: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 server_host[NI_MAXHOST];
data/netdata-1.19.0/web/server/web_client.h:160: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 client_host[NI_MAXHOST];
data/netdata-1.19.0/web/server/web_client.h:162: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 decoded_url[NETDATA_WEB_REQUEST_URL_SIZE + 1];  // we decode the URL in this buffer
data/netdata-1.19.0/web/server/web_client.h:163: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 decoded_query_string[NETDATA_WEB_REQUEST_URL_SIZE + 1];  // we decode the Query String in this buffer
data/netdata-1.19.0/web/server/web_client.h:164: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 last_url[NETDATA_WEB_REQUEST_URL_SIZE+1];       // we keep a copy of the decoded URL here
data/netdata-1.19.0/web/server/web_client.h:171: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 cookie1[NETDATA_WEB_REQUEST_COOKIE_SIZE+1];
data/netdata-1.19.0/web/server/web_client.h:172: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 cookie2[NETDATA_WEB_REQUEST_COOKIE_SIZE+1];
data/netdata-1.19.0/web/server/web_client.h:173: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 origin[NETDATA_WEB_REQUEST_ORIGIN_HEADER_SIZE+1];
data/netdata-1.19.0/backends/prometheus/backend_prometheus.c:602:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(tags, host->tags, PROMETHEUS_LABELS_MAX);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:413:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned char read:1;           // 1 when we have already read this process for this iteration
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:705: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).
    w->comparelen = strlen(w->compare);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:753: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).
    w->comparelen = strlen(w->compare);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:851:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(w->compare);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:862: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).
    w->comparelen = strlen(w->compare);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1090:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t pclen  = strlen(p->comm);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:1146:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t i, bytes = read(fd, cmdline, MAX_CMDLINE);
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2511:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(unlikely(!p || p->read)) return 0;
data/netdata-1.19.0/collectors/apps.plugin/apps_plugin.c:2550:129:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(unlikely(debug_enabled && include_exited_childs && all_pids_count && p->ppid && all_pids[p->ppid] && !all_pids[p->ppid]->read))
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1168:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buffer, cg->id, CGROUP_CHARTID_LINE_MAX);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1176: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).
            size_t len = strlen(s);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1181: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).
            len = strlen(s);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1364:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t dirlen = strlen(this), baselen = strlen(base);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1364:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t dirlen = strlen(this), baselen = strlen(base);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1408:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *s = mallocz(dirlen + strlen(de->d_name) + 2);
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:1410:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(s, "/");
data/netdata-1.19.0/collectors/cgroups.plugin/sys_fs_cgroup.c:2550:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(buffer, "cgroup_root", len);
data/netdata-1.19.0/collectors/checks.plugin/plugin_checks.c:79:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(susec);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_devstat.c:168: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).
    dm->len = strlen(dm->name);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getifaddrs.c:125: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).
    ifm->len = strlen(ifm->name);
data/netdata-1.19.0/collectors/freebsd.plugin/freebsd_getmntinfo.c:106:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    m->len = strlen(m->name);
data/netdata-1.19.0/collectors/freeipmi.plugin/freeipmi_plugin.c:726:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            fatal("cannot allocate %zu bytes of memory.", strlen(sensor_name));
data/netdata-1.19.0/collectors/freeipmi.plugin/freeipmi_plugin.c:1051:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strlen (sensor_name))
data/netdata-1.19.0/collectors/freeipmi.plugin/freeipmi_plugin.c:1464: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).
            if (!strlen (sensor_name))
data/netdata-1.19.0/collectors/perf.plugin/perf_plugin.c:402:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t read_size = read(current_event->fd[cpu], &read_result, sizeof(read_result));
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:192: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).
                length = strlen(input);
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:420:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(type);
data/netdata-1.19.0/collectors/plugins.d/plugins_d.c:814: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).
                int len = (int) strlen(file->d_name);
data/netdata-1.19.0/collectors/plugins.d/plugins_d.h:21: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).
#define PLUGINSD_FILE_SUFFIX_LEN strlen(PLUGINSD_FILE_SUFFIX)
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:435:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(result, disk, FILENAME_MAX);
data/netdata-1.19.0/collectors/proc.plugin/proc_diskstats.c:438:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(result, disk, FILENAME_MAX);
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:116: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).
        size_t idlen = strlen(irr->id);
data/netdata-1.19.0/collectors/proc.plugin/proc_interrupts.c:132: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).
            size_t nlen = strlen(irr->name);
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:400:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    d->len = strlen(d->name);
data/netdata-1.19.0/collectors/proc.plugin/proc_net_dev.c:497: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).
        size_t len = strlen(name);
data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c:82:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t solen = strlen(super_options);
data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c:166:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(s);
data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c:300:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            if(strlen(mi->mount_point) < strlen(mt->mount_point))
data/netdata-1.19.0/collectors/proc.plugin/proc_self_mountinfo.c:300:58:  [1] (buffer) strlen:
  Does not handle 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(mi->mount_point) < strlen(mt->mount_point))
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:77:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t ret = read(f->fd, buf, 50);
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:342:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t ret = read(*fd, buf, 50);
data/netdata-1.19.0/collectors/proc.plugin/proc_stat.c:421:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ssize_t r = read(fd, name_buf, 50);
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:254:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    ssize_t r = read(ps->capacity->fd, buffer, 30);
data/netdata-1.19.0/collectors/proc.plugin/sys_class_power_supply.c:298:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            ssize_t r = read(pd->fd, buffer, 30);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1165: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).
        int len = (int) strlen(s);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1256: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).
            dictionary_set(dict, name, value, strlen(value) + 1);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1884: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).
                        size_t dim_name_len = strlen(dim->name);
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1885:64:  [1] (buffer) strlen:
  Does not handle 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 wildcarded_len = dim_name_len + strlen(m->name) + 1;
data/netdata-1.19.0/collectors/statsd.plugin/statsd.c:1960: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).
        size_t len = strlen(dim->metric) + 100;
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:974:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if(leafid && leafid[strlen(leafid) - 1] == ':') {
data/netdata-1.19.0/collectors/tc.plugin/plugin_tc.c:976:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(leafbuf, "1");
data/netdata-1.19.0/daemon/daemon.c:184: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).
        ssize_t len = strlen(buf);
data/netdata-1.19.0/daemon/daemon.c:421: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).
            ssize_t i = write(pidfd, b, strlen(b));
data/netdata-1.19.0/daemon/daemon.c:429:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(0007);
data/netdata-1.19.0/daemon/main.c:289:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int len_arg = (int)strlen(option_definitions[i].arg_name);
data/netdata-1.19.0/daemon/main.c:599:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t cmp_len = strlen(cmp);
data/netdata-1.19.0/daemon/main.c:634: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).
        size_t len = strlen(timezone);
data/netdata-1.19.0/daemon/main.c:729: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).
    script = mallocz(sizeof(char) * (strlen(netdata_configured_primary_plugins_dir) + strlen("system-info.sh") + 2));
data/netdata-1.19.0/daemon/main.c:729:87:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    script = mallocz(sizeof(char) * (strlen(netdata_configured_primary_plugins_dir) + strlen("system-info.sh") + 2));
data/netdata-1.19.0/daemon/main.c:751:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(value)>1) {
data/netdata-1.19.0/daemon/main.c:752:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    char *newline = value + strlen(value) - 1;
data/netdata-1.19.0/daemon/main.c:776: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).
        char *optout_file = mallocz(sizeof(char) * (strlen(netdata_configured_user_config_dir) +strlen(".opt-out-from-anonymous-statistics") + 2));
data/netdata-1.19.0/daemon/main.c:776:97:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *optout_file = mallocz(sizeof(char) * (strlen(netdata_configured_user_config_dir) +strlen(".opt-out-from-anonymous-statistics") + 2));
data/netdata-1.19.0/daemon/main.c:779:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            as_script = mallocz(sizeof(char) * (strlen(netdata_configured_primary_plugins_dir) + strlen("anonymous-statistics.sh") + 2));
data/netdata-1.19.0/daemon/main.c:779:98:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            as_script = mallocz(sizeof(char) * (strlen(netdata_configured_primary_plugins_dir) + strlen("anonymous-statistics.sh") + 2));
data/netdata-1.19.0/daemon/main.c:798:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *command_to_run=mallocz(sizeof(char) * (strlen(action) + strlen(action_result) + strlen(action_data) + strlen(as_script) + 10));
data/netdata-1.19.0/daemon/main.c:798:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *command_to_run=mallocz(sizeof(char) * (strlen(action) + strlen(action_result) + strlen(action_data) + strlen(as_script) + 10));
data/netdata-1.19.0/daemon/main.c:798:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *command_to_run=mallocz(sizeof(char) * (strlen(action) + strlen(action_result) + strlen(action_data) + strlen(as_script) + 10));
data/netdata-1.19.0/daemon/main.c:798:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *command_to_run=mallocz(sizeof(char) * (strlen(action) + strlen(action_result) + strlen(action_data) + strlen(as_script) + 10));
data/netdata-1.19.0/daemon/main.c:901:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(pidfile, optarg, FILENAME_MAX);
data/netdata-1.19.0/daemon/main.c:947:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        else if(strncmp(optarg, createdataset_string, strlen(createdataset_string)) == 0) {
data/netdata-1.19.0/daemon/main.c:948:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            optarg += strlen(createdataset_string);
data/netdata-1.19.0/daemon/main.c:953:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        else if(strncmp(optarg, stresstest_string, strlen(stresstest_string)) == 0) {
data/netdata-1.19.0/daemon/main.c:958:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            optarg += strlen(stresstest_string);
data/netdata-1.19.0/daemon/main.c:1000:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            size_t len = strlen(needle) + 1;
data/netdata-1.19.0/daemon/main.c:1016:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        else if(strncmp(optarg, stacksize_string, strlen(stacksize_string)) == 0) {
data/netdata-1.19.0/daemon/main.c:1017:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            optarg += strlen(stacksize_string);
data/netdata-1.19.0/daemon/main.c:1020:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        else if(strncmp(optarg, debug_flags_string, strlen(debug_flags_string)) == 0) {
data/netdata-1.19.0/daemon/main.c:1021:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            optarg += strlen(debug_flags_string);
data/netdata-1.19.0/daemon/signals.c:48:49:  [1] (buffer) strlen:
  Does not handle 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(write(STDERR_FILENO, buffer, strlen(buffer)) == -1) {
data/netdata-1.19.0/daemon/signals.c:189:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(10000);
data/netdata-1.19.0/daemon/unit_test.c:132:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(len != strlen(buffer)) fprintf(stderr, "ERROR: printed number %s is reported to have length %zu but it has %zu\n", buffer, len, strlen(buffer));
data/netdata-1.19.0/daemon/unit_test.c:132:140:  [1] (buffer) strlen:
  Does not handle 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(buffer)) fprintf(stderr, "ERROR: printed number %s is reported to have length %zu but it has %zu\n", buffer, len, strlen(buffer));
data/netdata-1.19.0/daemon/unit_test.c:141: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).
    if(len != strlen(buffer)) return 1;
data/netdata-1.19.0/daemon/unit_test.c:406:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(buffer_strlen(wb) != strlen(final) || strcmp(s, final) != 0) {
data/netdata-1.19.0/daemon/unit_test.c:408:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fprintf(stderr, "\nstring  : %s (length %zu)\n", string, strlen(string));
data/netdata-1.19.0/daemon/unit_test.c:410:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fprintf(stderr, "\nexpected: %s (length %zu)\n", final, strlen(final));
data/netdata-1.19.0/database/engine/datafile.c:141:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(superblock->magic_number, RRDENG_DF_MAGIC, RRDENG_MAGIC_SZ);
data/netdata-1.19.0/database/engine/datafile.c:142:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(superblock->version, RRDENG_DF_VER, RRDENG_VER_SZ);
data/netdata-1.19.0/database/engine/journalfile.c:190:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(superblock->magic_number, RRDENG_JF_MAGIC, RRDENG_MAGIC_SZ);
data/netdata-1.19.0/database/engine/journalfile.c:191:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy(superblock->version, RRDENG_JF_VER, RRDENG_VER_SZ);
data/netdata-1.19.0/database/engine/rrdengine.c:14: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).
    BUILD_BUG_ON(strlen(RRDENG_DF_MAGIC) > RRDENG_MAGIC_SZ);
data/netdata-1.19.0/database/engine/rrdengine.c:15: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).
    BUILD_BUG_ON(strlen(RRDENG_JF_MAGIC) > RRDENG_MAGIC_SZ);
data/netdata-1.19.0/database/engine/rrdengine.c:18: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).
    BUILD_BUG_ON(strlen(RRDENG_DF_VER) > RRDENG_VER_SZ);
data/netdata-1.19.0/database/engine/rrdengine.c:19: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).
    BUILD_BUG_ON(strlen(RRDENG_JF_VER) > RRDENG_VER_SZ);
data/netdata-1.19.0/database/engine/rrdengineapi.c:35: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).
    EVP_DigestUpdate(evpctx, rd->id, strlen(rd->id));
data/netdata-1.19.0/database/engine/rrdengineapi.c:36:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EVP_DigestUpdate(evpctx, rd->rrdset->id, strlen(rd->rrdset->id));
data/netdata-1.19.0/database/rrddim.c:164:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *usename = alarm_name_with_dim(rrdc->name, strlen(rrdc->name), rd->name, strlen(rd->name));
data/netdata-1.19.0/database/rrddim.c:164:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *usename = alarm_name_with_dim(rrdc->name, strlen(rrdc->name), rd->name, strlen(rd->name));
data/netdata-1.19.0/database/rrddim.c:418:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(200000);
data/netdata-1.19.0/database/rrdhost.c:101:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(host->machine_guid, machine_guid, GUID_LEN);
data/netdata-1.19.0/database/rrdset.c:107:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(buf, ".");
data/netdata-1.19.0/database/rrdset.c:108: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).
    int len = (int) strlen(buf);
data/netdata-1.19.0/health/health_config.c:545: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).
        append = strlen(s);
data/netdata-1.19.0/libnetdata/buffer/buffer.c:151: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).
        len = strlen(txt);
data/netdata-1.19.0/libnetdata/clocks/clocks.c:191:15:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    int ret = usleep(usec);
data/netdata-1.19.0/libnetdata/clocks/clocks.c:197:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(999999);
data/netdata-1.19.0/libnetdata/clocks/clocks.c:199:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(usec % 999999);
data/netdata-1.19.0/libnetdata/config/appconfig.c:466: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).
        int len = (int) strlen(s);
data/netdata-1.19.0/libnetdata/eval/eval.c:377: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).
    s = &b[strlen(b) - 1];
data/netdata-1.19.0/libnetdata/inlined.h:258:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t r = read(fd, buffer, size);
data/netdata-1.19.0/libnetdata/json/json.c:140:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(key);
data/netdata-1.19.0/libnetdata/json/json.c:313:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(e->name) > JSON_NAME_LEN  - 24 || strlen(e->fullname) > JSON_FULLNAME_LEN -24) {
data/netdata-1.19.0/libnetdata/json/json.c:313: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).
        if (strlen(e->name) > JSON_NAME_LEN  - 24 || strlen(e->fullname) > JSON_FULLNAME_LEN -24) {
data/netdata-1.19.0/libnetdata/json/json.c:398:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(ne.name, &js[t[start].start], len);
data/netdata-1.19.0/libnetdata/json/json.c:400: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).
                    len=strlen(e->fullname) + strlen(e->fullname[0]?".":"") + strlen(ne.name);
data/netdata-1.19.0/libnetdata/json/json.c:400: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).
                    len=strlen(e->fullname) + strlen(e->fullname[0]?".":"") + strlen(ne.name);
data/netdata-1.19.0/libnetdata/json/json.c:400: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).
                    len=strlen(e->fullname) + strlen(e->fullname[0]?".":"") + strlen(ne.name);
data/netdata-1.19.0/libnetdata/json/json.c:404:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(ne.fullname, c, len);
data/netdata-1.19.0/libnetdata/json/json.c:516: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).
        jsmntok_t *tokens = json_tokenise(js, strlen(js), &count);
data/netdata-1.19.0/libnetdata/libnetdata.c:129:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(s) + 1;
data/netdata-1.19.0/libnetdata/libnetdata.c:880: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).
    ssize_t l = strlen(s);
data/netdata-1.19.0/libnetdata/libnetdata.c:991:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(fd, mem, size) != (ssize_t) size)
data/netdata-1.19.0/libnetdata/libnetdata.c:1255:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(path);
data/netdata-1.19.0/libnetdata/libnetdata.c:1385:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(de->d_name);
data/netdata-1.19.0/libnetdata/libnetdata.c:1432:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(de->d_name);
data/netdata-1.19.0/libnetdata/os.c:89:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(unlikely(read)) return pid_max;
data/netdata-1.19.0/libnetdata/procfile/procfile.c:281:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(ff->fd, &ff->data[s], ff->size - s);
data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.c:40:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(s);
data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.c:61: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).
        m->len = strlen(m->match);
data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.c:92: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).
    char *buf = mallocz(strlen(list) + 1);
data/netdata-1.19.0/libnetdata/simple_pattern/simple_pattern.c:230:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(str);
data/netdata-1.19.0/libnetdata/socket/socket.c:128:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name.sun_path, path, sizeof(name.sun_path)-1);
data/netdata-1.19.0/libnetdata/socket/socket.c:354: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).
    char buffer[strlen(definition) + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:587:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(addr.sun_path, path, sizeof(addr.sun_path)-1);
data/netdata-1.19.0/libnetdata/socket/socket.c:758: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).
    char buffer[strlen(definition) + 1];
data/netdata-1.19.0/libnetdata/socket/socket.c:855:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(connected_to, buf, connected_to_size);
data/netdata-1.19.0/libnetdata/socket/socket.c:1094:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(client_ip, "localhost", ipsize);
data/netdata-1.19.0/libnetdata/socket/socket.c:1110:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(client_port, "UNIX", portsize);
data/netdata-1.19.0/libnetdata/socket/socket.c:1120: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).
                    memmove(client_ip, &client_ip[7], strlen(&client_ip[7]) + 1);
data/netdata-1.19.0/libnetdata/socket/socket.c:1457:33:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                                usleep(1000); // 10ms
data/netdata-1.19.0/libnetdata/url/url.c:25: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).
    pbuf = buf = mallocz(strlen(str) * 3 + 1);
data/netdata-1.19.0/libnetdata/url/url.c:364: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).
            length = strlen(begin);
data/netdata-1.19.0/libnetdata/url/url.c:377: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).
        length = strlen(output);
data/netdata-1.19.0/registry/registry_db.c:301:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                u = registry_url_get(url, strlen(url));
data/netdata-1.19.0/registry/registry_db.c:308:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                REGISTRY_PERSON_URL *pu = registry_person_url_allocate(p, m, u, &s[69], strlen(&s[69]), first_t);
data/netdata-1.19.0/registry/registry_db.c:329:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                u = registry_url_get(&s[32], strlen(&s[32]));
data/netdata-1.19.0/registry/registry_internals.c:294:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(read(fd, buf, GUID_LEN) != GUID_LEN)
data/netdata-1.19.0/registry/registry_person.c:21: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).
    char buf[sizeof(REGISTRY_URL) + strlen(url)];
data/netdata-1.19.0/registry/registry_person.c:98:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        registry.persons_urls_memory -= sizeof(REGISTRY_PERSON_URL) + strlen(tpu->machine_name);
data/netdata-1.19.0/streaming/rrdpush.c:576:67:  [1] (buffer) strlen:
  Does not handle 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(send_timeout(&host->ssl,host->rrdpush_sender_socket, http, strlen(http), 0, timeout) == -1) {
data/netdata-1.19.0/streaming/rrdpush.c:578: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).
    if(send_timeout(host->rrdpush_sender_socket, http, strlen(http), 0, timeout) == -1) {
data/netdata-1.19.0/streaming/rrdpush.c:597:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strncmp(http, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT)) != 0) {
data/netdata-1.19.0/streaming/rrdpush.c:793:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read(host->rrdpush_sender_pipe[PIPE_READ], buffer, 1000) == -1)
data/netdata-1.19.0/streaming/rrdpush.c:1084: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).
    if(send_timeout(ssl,fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) {
data/netdata-1.19.0/streaming/rrdpush.c:1084:95:  [1] (buffer) strlen:
  Does not handle 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(send_timeout(ssl,fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) {
data/netdata-1.19.0/streaming/rrdpush.c:1086:49:  [1] (buffer) strlen:
  Does not handle 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(send_timeout(fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) {
data/netdata-1.19.0/streaming/rrdpush.c:1086:91:  [1] (buffer) strlen:
  Does not handle 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(send_timeout(fd, START_STREAMING_PROMPT, strlen(START_STREAMING_PROMPT), 0, 60) != strlen(START_STREAMING_PROMPT)) {
data/netdata-1.19.0/web/api/badges/web_buffer_svg.c:494:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(value_string, "-");
data/netdata-1.19.0/web/api/formatters/json/json.c:43:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(post_value,         "}");
data/netdata-1.19.0/web/api/formatters/json/json.c:77:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(post_label, "\"");
data/netdata-1.19.0/web/api/formatters/json/json.c:80:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(post_line, "}");
data/netdata-1.19.0/web/api/formatters/json/json.c:82:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(post_line, "]");
data/netdata-1.19.0/web/api/tests/valid_urls.c:76:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    repr(url_repr, sizeof(url_repr), url, strlen(url));
data/netdata-1.19.0/web/api/tests/valid_urls.c:199:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(w->origin, "*"); // Simulate web_client_create_on_fd()
data/netdata-1.19.0/web/api/tests/web_api.c:76:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    repr(url_repr, sizeof(url_repr), url, strlen(url));
data/netdata-1.19.0/web/api/tests/web_api.c:126:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:128: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:130: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:142:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:144: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:146: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:160:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:162: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:164: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).
    cur = strlen(log_buffer);
data/netdata-1.19.0/web/api/tests/web_api.c:235:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(w->origin, "*"); // Simulate web_client_create_on_fd()
data/netdata-1.19.0/web/api/tests/web_api.c:278: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).
    if (def->prev != NULL && !def->prev->completed && strlen(log_buffer) > 0) {
data/netdata-1.19.0/web/api/web_api_v1.c:113:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(read(fd, buf, GUID_LEN) != GUID_LEN)
data/netdata-1.19.0/web/server/static/static-threaded.c:24:36:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    if(unlikely(!*w->client_ip))   strcpy(w->client_ip,   "-");
data/netdata-1.19.0/web/server/static/static-threaded.c:25:36:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    if(unlikely(!*w->client_port)) strcpy(w->client_port, "-");
data/netdata-1.19.0/web/server/web_client.c:935: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).
    w->url_path_length = strlen(s);
data/netdata-1.19.0/web/server/web_client.c:1154: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 headerlength = strlen(w->server_host);
data/netdata-1.19.0/web/server/web_client.c:1157: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).
        size_t tmp = strlen(w->last_url);
data/netdata-1.19.0/web/server/web_client.c:1646: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).
    bytes = web_client_send_data(w,buf,strlen(buf),0);
data/netdata-1.19.0/web/server/web_client.c:1889:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t bytes = read(w->ifd, &w->response.data->buffer[w->response.data->len], (size_t)left);

ANALYSIS SUMMARY:

Hits = 934
Lines analyzed = 98699 in approximately 2.65 seconds (37185 lines/second)
Physical Source Lines of Code (SLOC) = 73914
Hits@level = [0] 746 [1] 186 [2] 613 [3]  15 [4] 111 [5]   9
Hits@level+ = [0+] 1680 [1+] 934 [2+] 748 [3+] 135 [4+] 120 [5+]   9
Hits/KSLOC@level+ = [0+] 22.7291 [1+] 12.6363 [2+] 10.1199 [3+] 1.82645 [4+] 1.62351 [5+] 0.121763
Dot directories skipped = 3 (--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.