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/icinga2-2.12.2/icinga-app/icinga.cpp
Examining data/icinga2-2.12.2/icinga-installer/icinga-installer.cpp
Examining data/icinga2-2.12.2/lib/base/application-environment.cpp
Examining data/icinga2-2.12.2/lib/base/application-version.cpp
Examining data/icinga2-2.12.2/lib/base/application.cpp
Examining data/icinga2-2.12.2/lib/base/application.hpp
Examining data/icinga2-2.12.2/lib/base/array-script.cpp
Examining data/icinga2-2.12.2/lib/base/array.cpp
Examining data/icinga2-2.12.2/lib/base/array.hpp
Examining data/icinga2-2.12.2/lib/base/atomic.hpp
Examining data/icinga2-2.12.2/lib/base/base64.cpp
Examining data/icinga2-2.12.2/lib/base/base64.hpp
Examining data/icinga2-2.12.2/lib/base/boolean-script.cpp
Examining data/icinga2-2.12.2/lib/base/boolean.cpp
Examining data/icinga2-2.12.2/lib/base/boolean.hpp
Examining data/icinga2-2.12.2/lib/base/configobject-script.cpp
Examining data/icinga2-2.12.2/lib/base/configobject.cpp
Examining data/icinga2-2.12.2/lib/base/configobject.hpp
Examining data/icinga2-2.12.2/lib/base/configtype.cpp
Examining data/icinga2-2.12.2/lib/base/configtype.hpp
Examining data/icinga2-2.12.2/lib/base/configuration.cpp
Examining data/icinga2-2.12.2/lib/base/configuration.hpp
Examining data/icinga2-2.12.2/lib/base/configwriter.cpp
Examining data/icinga2-2.12.2/lib/base/configwriter.hpp
Examining data/icinga2-2.12.2/lib/base/console.cpp
Examining data/icinga2-2.12.2/lib/base/console.hpp
Examining data/icinga2-2.12.2/lib/base/context.cpp
Examining data/icinga2-2.12.2/lib/base/context.hpp
Examining data/icinga2-2.12.2/lib/base/convert.cpp
Examining data/icinga2-2.12.2/lib/base/convert.hpp
Examining data/icinga2-2.12.2/lib/base/datetime-script.cpp
Examining data/icinga2-2.12.2/lib/base/datetime.cpp
Examining data/icinga2-2.12.2/lib/base/datetime.hpp
Examining data/icinga2-2.12.2/lib/base/debug.hpp
Examining data/icinga2-2.12.2/lib/base/debuginfo.cpp
Examining data/icinga2-2.12.2/lib/base/debuginfo.hpp
Examining data/icinga2-2.12.2/lib/base/defer.hpp
Examining data/icinga2-2.12.2/lib/base/dependencygraph.cpp
Examining data/icinga2-2.12.2/lib/base/dependencygraph.hpp
Examining data/icinga2-2.12.2/lib/base/dictionary-script.cpp
Examining data/icinga2-2.12.2/lib/base/dictionary.cpp
Examining data/icinga2-2.12.2/lib/base/dictionary.hpp
Examining data/icinga2-2.12.2/lib/base/exception.cpp
Examining data/icinga2-2.12.2/lib/base/exception.hpp
Examining data/icinga2-2.12.2/lib/base/fifo.cpp
Examining data/icinga2-2.12.2/lib/base/fifo.hpp
Examining data/icinga2-2.12.2/lib/base/filelogger.cpp
Examining data/icinga2-2.12.2/lib/base/filelogger.hpp
Examining data/icinga2-2.12.2/lib/base/function-script.cpp
Examining data/icinga2-2.12.2/lib/base/function.cpp
Examining data/icinga2-2.12.2/lib/base/function.hpp
Examining data/icinga2-2.12.2/lib/base/functionwrapper.hpp
Examining data/icinga2-2.12.2/lib/base/i2-base.hpp
Examining data/icinga2-2.12.2/lib/base/initialize.cpp
Examining data/icinga2-2.12.2/lib/base/initialize.hpp
Examining data/icinga2-2.12.2/lib/base/io-engine.cpp
Examining data/icinga2-2.12.2/lib/base/io-engine.hpp
Examining data/icinga2-2.12.2/lib/base/json-script.cpp
Examining data/icinga2-2.12.2/lib/base/json.cpp
Examining data/icinga2-2.12.2/lib/base/json.hpp
Examining data/icinga2-2.12.2/lib/base/lazy-init.hpp
Examining data/icinga2-2.12.2/lib/base/library.cpp
Examining data/icinga2-2.12.2/lib/base/library.hpp
Examining data/icinga2-2.12.2/lib/base/loader.cpp
Examining data/icinga2-2.12.2/lib/base/loader.hpp
Examining data/icinga2-2.12.2/lib/base/logger.cpp
Examining data/icinga2-2.12.2/lib/base/logger.hpp
Examining data/icinga2-2.12.2/lib/base/math-script.cpp
Examining data/icinga2-2.12.2/lib/base/namespace-script.cpp
Examining data/icinga2-2.12.2/lib/base/namespace.cpp
Examining data/icinga2-2.12.2/lib/base/namespace.hpp
Examining data/icinga2-2.12.2/lib/base/netstring.cpp
Examining data/icinga2-2.12.2/lib/base/netstring.hpp
Examining data/icinga2-2.12.2/lib/base/networkstream.cpp
Examining data/icinga2-2.12.2/lib/base/networkstream.hpp
Examining data/icinga2-2.12.2/lib/base/number-script.cpp
Examining data/icinga2-2.12.2/lib/base/number.cpp
Examining data/icinga2-2.12.2/lib/base/number.hpp
Examining data/icinga2-2.12.2/lib/base/object-packer.cpp
Examining data/icinga2-2.12.2/lib/base/object-packer.hpp
Examining data/icinga2-2.12.2/lib/base/object-script.cpp
Examining data/icinga2-2.12.2/lib/base/object.cpp
Examining data/icinga2-2.12.2/lib/base/object.hpp
Examining data/icinga2-2.12.2/lib/base/objectlock.cpp
Examining data/icinga2-2.12.2/lib/base/objectlock.hpp
Examining data/icinga2-2.12.2/lib/base/objecttype.cpp
Examining data/icinga2-2.12.2/lib/base/objecttype.hpp
Examining data/icinga2-2.12.2/lib/base/perfdatavalue.cpp
Examining data/icinga2-2.12.2/lib/base/perfdatavalue.hpp
Examining data/icinga2-2.12.2/lib/base/primitivetype.cpp
Examining data/icinga2-2.12.2/lib/base/primitivetype.hpp
Examining data/icinga2-2.12.2/lib/base/process.cpp
Examining data/icinga2-2.12.2/lib/base/process.hpp
Examining data/icinga2-2.12.2/lib/base/reference-script.cpp
Examining data/icinga2-2.12.2/lib/base/reference.cpp
Examining data/icinga2-2.12.2/lib/base/reference.hpp
Examining data/icinga2-2.12.2/lib/base/registry.hpp
Examining data/icinga2-2.12.2/lib/base/ringbuffer.cpp
Examining data/icinga2-2.12.2/lib/base/ringbuffer.hpp
Examining data/icinga2-2.12.2/lib/base/scriptframe.cpp
Examining data/icinga2-2.12.2/lib/base/scriptframe.hpp
Examining data/icinga2-2.12.2/lib/base/scriptglobal.cpp
Examining data/icinga2-2.12.2/lib/base/scriptglobal.hpp
Examining data/icinga2-2.12.2/lib/base/scriptutils.cpp
Examining data/icinga2-2.12.2/lib/base/scriptutils.hpp
Examining data/icinga2-2.12.2/lib/base/serializer.cpp
Examining data/icinga2-2.12.2/lib/base/serializer.hpp
Examining data/icinga2-2.12.2/lib/base/shared-object.hpp
Examining data/icinga2-2.12.2/lib/base/shared.hpp
Examining data/icinga2-2.12.2/lib/base/singleton.hpp
Examining data/icinga2-2.12.2/lib/base/socket.cpp
Examining data/icinga2-2.12.2/lib/base/socket.hpp
Examining data/icinga2-2.12.2/lib/base/spinlock.cpp
Examining data/icinga2-2.12.2/lib/base/spinlock.hpp
Examining data/icinga2-2.12.2/lib/base/stacktrace.cpp
Examining data/icinga2-2.12.2/lib/base/stacktrace.hpp
Examining data/icinga2-2.12.2/lib/base/statsfunction.hpp
Examining data/icinga2-2.12.2/lib/base/stdiostream.cpp
Examining data/icinga2-2.12.2/lib/base/stdiostream.hpp
Examining data/icinga2-2.12.2/lib/base/stream.cpp
Examining data/icinga2-2.12.2/lib/base/stream.hpp
Examining data/icinga2-2.12.2/lib/base/streamlogger.cpp
Examining data/icinga2-2.12.2/lib/base/streamlogger.hpp
Examining data/icinga2-2.12.2/lib/base/string-script.cpp
Examining data/icinga2-2.12.2/lib/base/string.cpp
Examining data/icinga2-2.12.2/lib/base/string.hpp
Examining data/icinga2-2.12.2/lib/base/stringbuilder.cpp
Examining data/icinga2-2.12.2/lib/base/stringbuilder.hpp
Examining data/icinga2-2.12.2/lib/base/sysloglogger.cpp
Examining data/icinga2-2.12.2/lib/base/sysloglogger.hpp
Examining data/icinga2-2.12.2/lib/base/tcpsocket.cpp
Examining data/icinga2-2.12.2/lib/base/tcpsocket.hpp
Examining data/icinga2-2.12.2/lib/base/threadpool.cpp
Examining data/icinga2-2.12.2/lib/base/threadpool.hpp
Examining data/icinga2-2.12.2/lib/base/timer.cpp
Examining data/icinga2-2.12.2/lib/base/timer.hpp
Examining data/icinga2-2.12.2/lib/base/tlsstream.cpp
Examining data/icinga2-2.12.2/lib/base/tlsstream.hpp
Examining data/icinga2-2.12.2/lib/base/tlsutility.cpp
Examining data/icinga2-2.12.2/lib/base/tlsutility.hpp
Examining data/icinga2-2.12.2/lib/base/type.cpp
Examining data/icinga2-2.12.2/lib/base/type.hpp
Examining data/icinga2-2.12.2/lib/base/typetype-script.cpp
Examining data/icinga2-2.12.2/lib/base/unix.hpp
Examining data/icinga2-2.12.2/lib/base/unixsocket.cpp
Examining data/icinga2-2.12.2/lib/base/unixsocket.hpp
Examining data/icinga2-2.12.2/lib/base/utility.hpp
Examining data/icinga2-2.12.2/lib/base/value-operators.cpp
Examining data/icinga2-2.12.2/lib/base/value.cpp
Examining data/icinga2-2.12.2/lib/base/value.hpp
Examining data/icinga2-2.12.2/lib/base/win32.hpp
Examining data/icinga2-2.12.2/lib/base/workqueue.cpp
Examining data/icinga2-2.12.2/lib/base/workqueue.hpp
Examining data/icinga2-2.12.2/lib/base/utility.cpp
Examining data/icinga2-2.12.2/lib/checker/checkercomponent.cpp
Examining data/icinga2-2.12.2/lib/checker/checkercomponent.hpp
Examining data/icinga2-2.12.2/lib/cli/apisetupcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/apisetupcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/apisetuputility.cpp
Examining data/icinga2-2.12.2/lib/cli/apisetuputility.hpp
Examining data/icinga2-2.12.2/lib/cli/calistcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/calistcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/caremovecommand.cpp
Examining data/icinga2-2.12.2/lib/cli/caremovecommand.hpp
Examining data/icinga2-2.12.2/lib/cli/carestorecommand.cpp
Examining data/icinga2-2.12.2/lib/cli/carestorecommand.hpp
Examining data/icinga2-2.12.2/lib/cli/casigncommand.cpp
Examining data/icinga2-2.12.2/lib/cli/casigncommand.hpp
Examining data/icinga2-2.12.2/lib/cli/clicommand.cpp
Examining data/icinga2-2.12.2/lib/cli/clicommand.hpp
Examining data/icinga2-2.12.2/lib/cli/consolecommand.hpp
Examining data/icinga2-2.12.2/lib/cli/daemoncommand.cpp
Examining data/icinga2-2.12.2/lib/cli/daemoncommand.hpp
Examining data/icinga2-2.12.2/lib/cli/daemonutility.cpp
Examining data/icinga2-2.12.2/lib/cli/daemonutility.hpp
Examining data/icinga2-2.12.2/lib/cli/editline.hpp
Examining data/icinga2-2.12.2/lib/cli/featuredisablecommand.cpp
Examining data/icinga2-2.12.2/lib/cli/featuredisablecommand.hpp
Examining data/icinga2-2.12.2/lib/cli/featureenablecommand.cpp
Examining data/icinga2-2.12.2/lib/cli/featureenablecommand.hpp
Examining data/icinga2-2.12.2/lib/cli/featurelistcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/featurelistcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/featureutility.cpp
Examining data/icinga2-2.12.2/lib/cli/featureutility.hpp
Examining data/icinga2-2.12.2/lib/cli/i2-cli.hpp
Examining data/icinga2-2.12.2/lib/cli/internalsignalcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/internalsignalcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/nodesetupcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/nodesetupcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/nodeutility.cpp
Examining data/icinga2-2.12.2/lib/cli/nodeutility.hpp
Examining data/icinga2-2.12.2/lib/cli/nodewizardcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/nodewizardcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/objectlistcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/objectlistcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/objectlistutility.cpp
Examining data/icinga2-2.12.2/lib/cli/objectlistutility.hpp
Examining data/icinga2-2.12.2/lib/cli/pkinewcacommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkinewcacommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkinewcertcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkinewcertcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkirequestcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkirequestcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkisavecertcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkisavecertcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkisigncsrcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkisigncsrcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkiticketcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkiticketcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/pkiverifycommand.cpp
Examining data/icinga2-2.12.2/lib/cli/pkiverifycommand.hpp
Examining data/icinga2-2.12.2/lib/cli/variablegetcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/variablegetcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/variablelistcommand.cpp
Examining data/icinga2-2.12.2/lib/cli/variablelistcommand.hpp
Examining data/icinga2-2.12.2/lib/cli/variableutility.cpp
Examining data/icinga2-2.12.2/lib/cli/variableutility.hpp
Examining data/icinga2-2.12.2/lib/cli/consolecommand.cpp
Examining data/icinga2-2.12.2/lib/compat/checkresultreader.cpp
Examining data/icinga2-2.12.2/lib/compat/checkresultreader.hpp
Examining data/icinga2-2.12.2/lib/compat/compatlogger.cpp
Examining data/icinga2-2.12.2/lib/compat/compatlogger.hpp
Examining data/icinga2-2.12.2/lib/compat/externalcommandlistener.cpp
Examining data/icinga2-2.12.2/lib/compat/externalcommandlistener.hpp
Examining data/icinga2-2.12.2/lib/compat/statusdatawriter.cpp
Examining data/icinga2-2.12.2/lib/compat/statusdatawriter.hpp
Examining data/icinga2-2.12.2/lib/config/activationcontext.cpp
Examining data/icinga2-2.12.2/lib/config/activationcontext.hpp
Examining data/icinga2-2.12.2/lib/config/applyrule.cpp
Examining data/icinga2-2.12.2/lib/config/applyrule.hpp
Examining data/icinga2-2.12.2/lib/config/configcompiler.cpp
Examining data/icinga2-2.12.2/lib/config/configcompiler.hpp
Examining data/icinga2-2.12.2/lib/config/configcompilercontext.cpp
Examining data/icinga2-2.12.2/lib/config/configcompilercontext.hpp
Examining data/icinga2-2.12.2/lib/config/configfragment.hpp
Examining data/icinga2-2.12.2/lib/config/configitem.cpp
Examining data/icinga2-2.12.2/lib/config/configitem.hpp
Examining data/icinga2-2.12.2/lib/config/configitembuilder.cpp
Examining data/icinga2-2.12.2/lib/config/configitembuilder.hpp
Examining data/icinga2-2.12.2/lib/config/expression.cpp
Examining data/icinga2-2.12.2/lib/config/expression.hpp
Examining data/icinga2-2.12.2/lib/config/i2-config.hpp
Examining data/icinga2-2.12.2/lib/config/objectrule.cpp
Examining data/icinga2-2.12.2/lib/config/objectrule.hpp
Examining data/icinga2-2.12.2/lib/config/vmops.hpp
Examining data/icinga2-2.12.2/lib/db_ido/commanddbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/commanddbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbconnection.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbconnection.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbevents.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbevents.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbquery.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbquery.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbreference.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbreference.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbtype.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbtype.hpp
Examining data/icinga2-2.12.2/lib/db_ido/dbvalue.cpp
Examining data/icinga2-2.12.2/lib/db_ido/dbvalue.hpp
Examining data/icinga2-2.12.2/lib/db_ido/endpointdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/endpointdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/hostdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/hostdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/hostgroupdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/hostgroupdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/i2-db_ido.hpp
Examining data/icinga2-2.12.2/lib/db_ido/idochecktask.cpp
Examining data/icinga2-2.12.2/lib/db_ido/idochecktask.hpp
Examining data/icinga2-2.12.2/lib/db_ido/servicedbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/servicedbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/servicegroupdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/servicegroupdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/timeperioddbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/timeperioddbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/userdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/userdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/usergroupdbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/usergroupdbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido/zonedbobject.cpp
Examining data/icinga2-2.12.2/lib/db_ido/zonedbobject.hpp
Examining data/icinga2-2.12.2/lib/db_ido_mysql/idomysqlconnection.cpp
Examining data/icinga2-2.12.2/lib/db_ido_mysql/idomysqlconnection.hpp
Examining data/icinga2-2.12.2/lib/db_ido_pgsql/idopgsqlconnection.cpp
Examining data/icinga2-2.12.2/lib/db_ido_pgsql/idopgsqlconnection.hpp
Examining data/icinga2-2.12.2/lib/icinga/apiactions.cpp
Examining data/icinga2-2.12.2/lib/icinga/apiactions.hpp
Examining data/icinga2-2.12.2/lib/icinga/apievents.cpp
Examining data/icinga2-2.12.2/lib/icinga/apievents.hpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-check.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-comment.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-dependency.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-downtime.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-event.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-flapping.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-notification.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable-script.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkable.hpp
Examining data/icinga2-2.12.2/lib/icinga/checkcommand.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkcommand.hpp
Examining data/icinga2-2.12.2/lib/icinga/checkresult.cpp
Examining data/icinga2-2.12.2/lib/icinga/checkresult.hpp
Examining data/icinga2-2.12.2/lib/icinga/cib.cpp
Examining data/icinga2-2.12.2/lib/icinga/cib.hpp
Examining data/icinga2-2.12.2/lib/icinga/clusterevents-check.cpp
Examining data/icinga2-2.12.2/lib/icinga/clusterevents.cpp
Examining data/icinga2-2.12.2/lib/icinga/clusterevents.hpp
Examining data/icinga2-2.12.2/lib/icinga/command.cpp
Examining data/icinga2-2.12.2/lib/icinga/command.hpp
Examining data/icinga2-2.12.2/lib/icinga/comment.cpp
Examining data/icinga2-2.12.2/lib/icinga/comment.hpp
Examining data/icinga2-2.12.2/lib/icinga/compatutility.cpp
Examining data/icinga2-2.12.2/lib/icinga/compatutility.hpp
Examining data/icinga2-2.12.2/lib/icinga/customvarobject.cpp
Examining data/icinga2-2.12.2/lib/icinga/customvarobject.hpp
Examining data/icinga2-2.12.2/lib/icinga/dependency-apply.cpp
Examining data/icinga2-2.12.2/lib/icinga/dependency.cpp
Examining data/icinga2-2.12.2/lib/icinga/dependency.hpp
Examining data/icinga2-2.12.2/lib/icinga/downtime.cpp
Examining data/icinga2-2.12.2/lib/icinga/downtime.hpp
Examining data/icinga2-2.12.2/lib/icinga/eventcommand.cpp
Examining data/icinga2-2.12.2/lib/icinga/eventcommand.hpp
Examining data/icinga2-2.12.2/lib/icinga/externalcommandprocessor.cpp
Examining data/icinga2-2.12.2/lib/icinga/externalcommandprocessor.hpp
Examining data/icinga2-2.12.2/lib/icinga/host.cpp
Examining data/icinga2-2.12.2/lib/icinga/host.hpp
Examining data/icinga2-2.12.2/lib/icinga/hostgroup.cpp
Examining data/icinga2-2.12.2/lib/icinga/hostgroup.hpp
Examining data/icinga2-2.12.2/lib/icinga/i2-icinga.hpp
Examining data/icinga2-2.12.2/lib/icinga/icingaapplication.cpp
Examining data/icinga2-2.12.2/lib/icinga/icingaapplication.hpp
Examining data/icinga2-2.12.2/lib/icinga/legacytimeperiod.cpp
Examining data/icinga2-2.12.2/lib/icinga/legacytimeperiod.hpp
Examining data/icinga2-2.12.2/lib/icinga/macroprocessor.cpp
Examining data/icinga2-2.12.2/lib/icinga/macroprocessor.hpp
Examining data/icinga2-2.12.2/lib/icinga/macroresolver.hpp
Examining data/icinga2-2.12.2/lib/icinga/notification-apply.cpp
Examining data/icinga2-2.12.2/lib/icinga/notification.cpp
Examining data/icinga2-2.12.2/lib/icinga/notification.hpp
Examining data/icinga2-2.12.2/lib/icinga/notificationcommand.cpp
Examining data/icinga2-2.12.2/lib/icinga/notificationcommand.hpp
Examining data/icinga2-2.12.2/lib/icinga/objectutils.cpp
Examining data/icinga2-2.12.2/lib/icinga/objectutils.hpp
Examining data/icinga2-2.12.2/lib/icinga/pluginutility.cpp
Examining data/icinga2-2.12.2/lib/icinga/pluginutility.hpp
Examining data/icinga2-2.12.2/lib/icinga/scheduleddowntime-apply.cpp
Examining data/icinga2-2.12.2/lib/icinga/scheduleddowntime.cpp
Examining data/icinga2-2.12.2/lib/icinga/scheduleddowntime.hpp
Examining data/icinga2-2.12.2/lib/icinga/service-apply.cpp
Examining data/icinga2-2.12.2/lib/icinga/service.cpp
Examining data/icinga2-2.12.2/lib/icinga/service.hpp
Examining data/icinga2-2.12.2/lib/icinga/servicegroup.cpp
Examining data/icinga2-2.12.2/lib/icinga/servicegroup.hpp
Examining data/icinga2-2.12.2/lib/icinga/timeperiod.cpp
Examining data/icinga2-2.12.2/lib/icinga/timeperiod.hpp
Examining data/icinga2-2.12.2/lib/icinga/user.cpp
Examining data/icinga2-2.12.2/lib/icinga/user.hpp
Examining data/icinga2-2.12.2/lib/icinga/usergroup.cpp
Examining data/icinga2-2.12.2/lib/icinga/usergroup.hpp
Examining data/icinga2-2.12.2/lib/icingadb/icingadb-objects.cpp
Examining data/icinga2-2.12.2/lib/icingadb/icingadb-stats.cpp
Examining data/icinga2-2.12.2/lib/icingadb/icingadb-utility.cpp
Examining data/icinga2-2.12.2/lib/icingadb/icingadb.cpp
Examining data/icinga2-2.12.2/lib/icingadb/icingadb.hpp
Examining data/icinga2-2.12.2/lib/icingadb/redisconnection.cpp
Examining data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp
Examining data/icinga2-2.12.2/lib/livestatus/aggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/aggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/andfilter.cpp
Examining data/icinga2-2.12.2/lib/livestatus/andfilter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/attributefilter.cpp
Examining data/icinga2-2.12.2/lib/livestatus/attributefilter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/avgaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/avgaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/column.cpp
Examining data/icinga2-2.12.2/lib/livestatus/column.hpp
Examining data/icinga2-2.12.2/lib/livestatus/combinerfilter.cpp
Examining data/icinga2-2.12.2/lib/livestatus/combinerfilter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/commandstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/commandstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/commentstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/commentstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/contactgroupstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/contactgroupstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/contactstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/contactstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/countaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/countaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/downtimestable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/downtimestable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/endpointstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/endpointstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/filter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/historytable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/hostgroupstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/hostgroupstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/hoststable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/hoststable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/i2-livestatus.hpp
Examining data/icinga2-2.12.2/lib/livestatus/invavgaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/invavgaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/invsumaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/invsumaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatuslistener.cpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatuslistener.hpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.hpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatusquery.cpp
Examining data/icinga2-2.12.2/lib/livestatus/livestatusquery.hpp
Examining data/icinga2-2.12.2/lib/livestatus/logtable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/logtable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/maxaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/maxaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/minaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/minaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/negatefilter.cpp
Examining data/icinga2-2.12.2/lib/livestatus/negatefilter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/orfilter.cpp
Examining data/icinga2-2.12.2/lib/livestatus/orfilter.hpp
Examining data/icinga2-2.12.2/lib/livestatus/servicegroupstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/servicegroupstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/servicestable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/servicestable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/statehisttable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/statehisttable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/statustable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/statustable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/stdaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/stdaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/sumaggregator.cpp
Examining data/icinga2-2.12.2/lib/livestatus/sumaggregator.hpp
Examining data/icinga2-2.12.2/lib/livestatus/table.cpp
Examining data/icinga2-2.12.2/lib/livestatus/table.hpp
Examining data/icinga2-2.12.2/lib/livestatus/timeperiodstable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/timeperiodstable.hpp
Examining data/icinga2-2.12.2/lib/livestatus/zonestable.cpp
Examining data/icinga2-2.12.2/lib/livestatus/zonestable.hpp
Examining data/icinga2-2.12.2/lib/methods/clusterchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/clusterchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/clusterzonechecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/clusterzonechecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/dummychecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/dummychecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/exceptionchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/exceptionchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/i2-methods.hpp
Examining data/icinga2-2.12.2/lib/methods/icingachecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/icingachecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/nullchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/nullchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/nulleventtask.cpp
Examining data/icinga2-2.12.2/lib/methods/nulleventtask.hpp
Examining data/icinga2-2.12.2/lib/methods/pluginchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/pluginchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/plugineventtask.cpp
Examining data/icinga2-2.12.2/lib/methods/plugineventtask.hpp
Examining data/icinga2-2.12.2/lib/methods/pluginnotificationtask.cpp
Examining data/icinga2-2.12.2/lib/methods/pluginnotificationtask.hpp
Examining data/icinga2-2.12.2/lib/methods/randomchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/randomchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/sleepchecktask.cpp
Examining data/icinga2-2.12.2/lib/methods/sleepchecktask.hpp
Examining data/icinga2-2.12.2/lib/methods/timeperiodtask.cpp
Examining data/icinga2-2.12.2/lib/methods/timeperiodtask.hpp
Examining data/icinga2-2.12.2/lib/mysql_shim/mysqlinterface.cpp
Examining data/icinga2-2.12.2/lib/mysql_shim/mysqlinterface.hpp
Examining data/icinga2-2.12.2/lib/notification/notificationcomponent.cpp
Examining data/icinga2-2.12.2/lib/notification/notificationcomponent.hpp
Examining data/icinga2-2.12.2/lib/perfdata/elasticsearchwriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/gelfwriter.cpp
Examining data/icinga2-2.12.2/lib/perfdata/gelfwriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/graphitewriter.cpp
Examining data/icinga2-2.12.2/lib/perfdata/graphitewriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/influxdbwriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/opentsdbwriter.cpp
Examining data/icinga2-2.12.2/lib/perfdata/opentsdbwriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/perfdatawriter.cpp
Examining data/icinga2-2.12.2/lib/perfdata/perfdatawriter.hpp
Examining data/icinga2-2.12.2/lib/perfdata/elasticsearchwriter.cpp
Examining data/icinga2-2.12.2/lib/perfdata/influxdbwriter.cpp
Examining data/icinga2-2.12.2/lib/pgsql_shim/pgsqlinterface.cpp
Examining data/icinga2-2.12.2/lib/pgsql_shim/pgsqlinterface.hpp
Examining data/icinga2-2.12.2/lib/remote/actionshandler.cpp
Examining data/icinga2-2.12.2/lib/remote/actionshandler.hpp
Examining data/icinga2-2.12.2/lib/remote/apiaction.cpp
Examining data/icinga2-2.12.2/lib/remote/apiaction.hpp
Examining data/icinga2-2.12.2/lib/remote/apifunction.cpp
Examining data/icinga2-2.12.2/lib/remote/apifunction.hpp
Examining data/icinga2-2.12.2/lib/remote/apilistener-authority.cpp
Examining data/icinga2-2.12.2/lib/remote/apilistener-configsync.cpp
Examining data/icinga2-2.12.2/lib/remote/apilistener-filesync.cpp
Examining data/icinga2-2.12.2/lib/remote/apilistener.cpp
Examining data/icinga2-2.12.2/lib/remote/apilistener.hpp
Examining data/icinga2-2.12.2/lib/remote/apiuser.cpp
Examining data/icinga2-2.12.2/lib/remote/apiuser.hpp
Examining data/icinga2-2.12.2/lib/remote/configfileshandler.hpp
Examining data/icinga2-2.12.2/lib/remote/configobjectutility.cpp
Examining data/icinga2-2.12.2/lib/remote/configobjectutility.hpp
Examining data/icinga2-2.12.2/lib/remote/configpackageshandler.cpp
Examining data/icinga2-2.12.2/lib/remote/configpackageshandler.hpp
Examining data/icinga2-2.12.2/lib/remote/configpackageutility.cpp
Examining data/icinga2-2.12.2/lib/remote/configpackageutility.hpp
Examining data/icinga2-2.12.2/lib/remote/configstageshandler.cpp
Examining data/icinga2-2.12.2/lib/remote/configstageshandler.hpp
Examining data/icinga2-2.12.2/lib/remote/consolehandler.cpp
Examining data/icinga2-2.12.2/lib/remote/consolehandler.hpp
Examining data/icinga2-2.12.2/lib/remote/createobjecthandler.cpp
Examining data/icinga2-2.12.2/lib/remote/createobjecthandler.hpp
Examining data/icinga2-2.12.2/lib/remote/deleteobjecthandler.cpp
Examining data/icinga2-2.12.2/lib/remote/deleteobjecthandler.hpp
Examining data/icinga2-2.12.2/lib/remote/endpoint.cpp
Examining data/icinga2-2.12.2/lib/remote/endpoint.hpp
Examining data/icinga2-2.12.2/lib/remote/eventqueue.cpp
Examining data/icinga2-2.12.2/lib/remote/eventqueue.hpp
Examining data/icinga2-2.12.2/lib/remote/eventshandler.hpp
Examining data/icinga2-2.12.2/lib/remote/filterutility.cpp
Examining data/icinga2-2.12.2/lib/remote/filterutility.hpp
Examining data/icinga2-2.12.2/lib/remote/httphandler.cpp
Examining data/icinga2-2.12.2/lib/remote/httphandler.hpp
Examining data/icinga2-2.12.2/lib/remote/httpserverconnection.hpp
Examining data/icinga2-2.12.2/lib/remote/i2-remote.hpp
Examining data/icinga2-2.12.2/lib/remote/infohandler.hpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpc.cpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpc.hpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpcconnection-heartbeat.cpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpcconnection-pki.cpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpcconnection.cpp
Examining data/icinga2-2.12.2/lib/remote/jsonrpcconnection.hpp
Examining data/icinga2-2.12.2/lib/remote/messageorigin.cpp
Examining data/icinga2-2.12.2/lib/remote/messageorigin.hpp
Examining data/icinga2-2.12.2/lib/remote/modifyobjecthandler.cpp
Examining data/icinga2-2.12.2/lib/remote/modifyobjecthandler.hpp
Examining data/icinga2-2.12.2/lib/remote/objectqueryhandler.cpp
Examining data/icinga2-2.12.2/lib/remote/objectqueryhandler.hpp
Examining data/icinga2-2.12.2/lib/remote/pkiutility.cpp
Examining data/icinga2-2.12.2/lib/remote/pkiutility.hpp
Examining data/icinga2-2.12.2/lib/remote/statushandler.cpp
Examining data/icinga2-2.12.2/lib/remote/statushandler.hpp
Examining data/icinga2-2.12.2/lib/remote/templatequeryhandler.cpp
Examining data/icinga2-2.12.2/lib/remote/templatequeryhandler.hpp
Examining data/icinga2-2.12.2/lib/remote/typequeryhandler.cpp
Examining data/icinga2-2.12.2/lib/remote/typequeryhandler.hpp
Examining data/icinga2-2.12.2/lib/remote/url-characters.hpp
Examining data/icinga2-2.12.2/lib/remote/url.cpp
Examining data/icinga2-2.12.2/lib/remote/url.hpp
Examining data/icinga2-2.12.2/lib/remote/variablequeryhandler.cpp
Examining data/icinga2-2.12.2/lib/remote/variablequeryhandler.hpp
Examining data/icinga2-2.12.2/lib/remote/zone.cpp
Examining data/icinga2-2.12.2/lib/remote/zone.hpp
Examining data/icinga2-2.12.2/lib/remote/configfileshandler.cpp
Examining data/icinga2-2.12.2/lib/remote/eventshandler.cpp
Examining data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp
Examining data/icinga2-2.12.2/lib/remote/httputility.cpp
Examining data/icinga2-2.12.2/lib/remote/httputility.hpp
Examining data/icinga2-2.12.2/lib/remote/infohandler.cpp
Examining data/icinga2-2.12.2/plugins/check_disk.cpp
Examining data/icinga2-2.12.2/plugins/check_load.cpp
Examining data/icinga2-2.12.2/plugins/check_memory.cpp
Examining data/icinga2-2.12.2/plugins/check_network.cpp
Examining data/icinga2-2.12.2/plugins/check_perfmon.cpp
Examining data/icinga2-2.12.2/plugins/check_ping.cpp
Examining data/icinga2-2.12.2/plugins/check_procs.cpp
Examining data/icinga2-2.12.2/plugins/check_service.cpp
Examining data/icinga2-2.12.2/plugins/check_swap.cpp
Examining data/icinga2-2.12.2/plugins/check_update.cpp
Examining data/icinga2-2.12.2/plugins/check_uptime.cpp
Examining data/icinga2-2.12.2/plugins/check_users.cpp
Examining data/icinga2-2.12.2/plugins/thresholds.cpp
Examining data/icinga2-2.12.2/plugins/thresholds.hpp
Examining data/icinga2-2.12.2/plugins/check_nscp_api.cpp
Examining data/icinga2-2.12.2/test/base-array.cpp
Examining data/icinga2-2.12.2/test/base-base64.cpp
Examining data/icinga2-2.12.2/test/base-convert.cpp
Examining data/icinga2-2.12.2/test/base-dictionary.cpp
Examining data/icinga2-2.12.2/test/base-fifo.cpp
Examining data/icinga2-2.12.2/test/base-json.cpp
Examining data/icinga2-2.12.2/test/base-match.cpp
Examining data/icinga2-2.12.2/test/base-netstring.cpp
Examining data/icinga2-2.12.2/test/base-object-packer.cpp
Examining data/icinga2-2.12.2/test/base-object.cpp
Examining data/icinga2-2.12.2/test/base-serialize.cpp
Examining data/icinga2-2.12.2/test/base-shellescape.cpp
Examining data/icinga2-2.12.2/test/base-stacktrace.cpp
Examining data/icinga2-2.12.2/test/base-stream.cpp
Examining data/icinga2-2.12.2/test/base-string.cpp
Examining data/icinga2-2.12.2/test/base-timer.cpp
Examining data/icinga2-2.12.2/test/base-type.cpp
Examining data/icinga2-2.12.2/test/base-utility.cpp
Examining data/icinga2-2.12.2/test/base-value.cpp
Examining data/icinga2-2.12.2/test/config-ops.cpp
Examining data/icinga2-2.12.2/test/icinga-checkable-fixture.cpp
Examining data/icinga2-2.12.2/test/icinga-checkable-flapping.cpp
Examining data/icinga2-2.12.2/test/icinga-checkresult.cpp
Examining data/icinga2-2.12.2/test/icinga-dependencies.cpp
Examining data/icinga2-2.12.2/test/icinga-legacytimeperiod.cpp
Examining data/icinga2-2.12.2/test/icinga-macros.cpp
Examining data/icinga2-2.12.2/test/icinga-notification.cpp
Examining data/icinga2-2.12.2/test/icinga-perfdata.cpp
Examining data/icinga2-2.12.2/test/icingaapplication-fixture.cpp
Examining data/icinga2-2.12.2/test/icingaapplication-fixture.hpp
Examining data/icinga2-2.12.2/test/livestatus-fixture.cpp
Examining data/icinga2-2.12.2/test/livestatus.cpp
Examining data/icinga2-2.12.2/test/remote-url.cpp
Examining data/icinga2-2.12.2/test/test-runner.cpp
Examining data/icinga2-2.12.2/third-party/cmake/BoostTestTargetsDynamic.h
Examining data/icinga2-2.12.2/third-party/cmake/BoostTestTargetsIncluded.h
Examining data/icinga2-2.12.2/third-party/cmake/BoostTestTargetsStatic.h
Examining data/icinga2-2.12.2/third-party/execvpe/execvpe.c
Examining data/icinga2-2.12.2/third-party/execvpe/execvpe.h
Examining data/icinga2-2.12.2/third-party/mmatch/mmatch.c
Examining data/icinga2-2.12.2/third-party/mmatch/mmatch.h
Examining data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp
Examining data/icinga2-2.12.2/third-party/socketpair/socketpair.c
Examining data/icinga2-2.12.2/third-party/socketpair/socketpair.h
Examining data/icinga2-2.12.2/third-party/utf8cpp/samples/docsample.cpp
Examining data/icinga2-2.12.2/third-party/utf8cpp/source/utf8.h
Examining data/icinga2-2.12.2/third-party/utf8cpp/source/utf8/checked.h
Examining data/icinga2-2.12.2/third-party/utf8cpp/source/utf8/core.h
Examining data/icinga2-2.12.2/third-party/utf8cpp/source/utf8/unchecked.h
Examining data/icinga2-2.12.2/third-party/utf8cpp/test_drivers/negative/negative.cpp
Examining data/icinga2-2.12.2/third-party/utf8cpp/test_drivers/smoke_test/test.cpp
Examining data/icinga2-2.12.2/third-party/utf8cpp/test_drivers/utf8reader/utf8reader.cpp
Examining data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp
Examining data/icinga2-2.12.2/tools/mkclass/classcompiler.hpp
Examining data/icinga2-2.12.2/tools/mkclass/mkclass.cpp
Examining data/icinga2-2.12.2/tools/mkembedconfig/mkembedconfig.c
Examining data/icinga2-2.12.2/tools/mkunity/mkunity.c

FINAL RESULTS:

data/icinga2-2.12.2/lib/base/tlsutility.cpp:409:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(keyfile.CStr(), 0600);
data/icinga2-2.12.2/lib/base/utility.cpp:782:6:  [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(file.CStr(), pw->pw_uid, gr->gr_gid) < 0) {
data/icinga2-2.12.2/lib/base/utility.cpp:1708:6:  [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(resultPath.CStr(), mode) < 0) {
data/icinga2-2.12.2/lib/cli/nodeutility.cpp:210:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(backup.CStr(), 0600);
data/icinga2-2.12.2/lib/compat/externalcommandlistener.cpp:84:6:  [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(commandPath.CStr(), mode) < 0) {
data/icinga2-2.12.2/lib/livestatus/livestatuslistener.cpp:87:7:  [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(GetSocketPath().CStr(), mode) < 0) {
data/icinga2-2.12.2/lib/base/application.cpp:258:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			(void) execvp(new_argv[0], new_argv);
data/icinga2-2.12.2/lib/base/application.cpp:502:9:  [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(pathTest.CStr(), X_OK) == 0) {
data/icinga2-2.12.2/lib/base/application.cpp:654:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			(void) execvp(argv[0], argv);
data/icinga2-2.12.2/lib/base/application.cpp:672:11:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			(void) execvp(argv[0], argv);
data/icinga2-2.12.2/lib/base/io-engine.cpp:144:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/base/io-engine.cpp:152:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/base/io-engine.hpp:183:12:  [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.
				boost::system::error_code ec;
data/icinga2-2.12.2/lib/base/process.cpp:875:3:  [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(envp + offset, pEnvironment + ioffset);
data/icinga2-2.12.2/lib/base/process.cpp:893:4:  [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(envp + offset, skv.CStr());
data/icinga2-2.12.2/lib/base/utility.cpp:1308:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/base/utility.cpp:1494:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	FILE *fp = popen("type lsb_release >/dev/null 2>&1 && lsb_release -s -i 2>&1", "r");
data/icinga2-2.12.2/lib/base/utility.cpp:1508:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("type lsb_release >/dev/null 2>&1 && lsb_release -s -r 2>&1", "r");
data/icinga2-2.12.2/lib/base/utility.cpp:1523:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("type sw_vers >/dev/null 2>&1 && sw_vers -productName 2>&1", "r");
data/icinga2-2.12.2/lib/base/utility.cpp:1540:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	fp = popen("type sw_vers >/dev/null 2>&1 && sw_vers -productVersion 2>&1", "r");
data/icinga2-2.12.2/lib/cli/clicommand.cpp:25:13:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	FILE *fp = popen(cmd.CStr(), "r");
data/icinga2-2.12.2/lib/compat/externalcommandlistener.cpp:67:36:  [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 (S_ISFIFO(statbuf.st_mode) && access(commandPath.CStr(), R_OK) >= 0) {
data/icinga2-2.12.2/lib/perfdata/gelfwriter.cpp:226:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/apilistener.cpp:542:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/apilistener.cpp:550:12:  [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.
				boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/apilistener.cpp:580:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/apilistener.cpp:648:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/configobjectutility.cpp:59:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/eventqueue.cpp:206:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/eventqueue.cpp:218:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:91:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:124:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:158:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:194:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:219:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:265:13:  [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.
					boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:296:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:337:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:401:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:462:42:  [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.
		auto sysErr (dynamic_cast<const boost::system::system_error*>(&ex));
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:472:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:484:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:591:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/jsonrpcconnection-heartbeat.cpp:26:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/jsonrpcconnection.cpp:231:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/jsonrpcconnection.cpp:243:13:  [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.
					boost::system::error_code ec;
data/icinga2-2.12.2/lib/remote/jsonrpcconnection.cpp:349:9:  [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.
	boost::system::error_code ec;
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:254:10:  [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.
		boost::system::error_code ec;
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:258:17:  [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.
			throw boost::system::system_error(ec);
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:265: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.
	size_t read_some(const MutableBufferSequence& mbs, boost::system::error_code& ec)
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:1053:86:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:5413:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:7065:15:  [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.
        (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:8498:23:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                (std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:14124:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:14130:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:14168:35:  [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.
                            (std::snprintf)(&sn[0], sn.size(), "%.2X", byte);
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:14262:27:  [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.
                    (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast<std::uint8_t>(s.back()));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:14463:36:  [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.
        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
data/icinga2-2.12.2/lib/base/application.cpp:516:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	if (!realpath(executablePath.CStr(), buffer)) {
data/icinga2-2.12.2/lib/base/library.cpp:31:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	HMODULE hModule = LoadLibrary(path.CStr());
data/icinga2-2.12.2/lib/base/scriptutils.cpp:38:32:  [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.
REGISTER_SAFE_FUNCTION(System, random, &Utility::Random, "");
data/icinga2-2.12.2/lib/base/scriptutils.cpp:50:32:  [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.
REGISTER_SAFE_FUNCTION(System, getenv, &ScriptUtils::GetEnv, "value");
data/icinga2-2.12.2/lib/base/utility.cpp:1866:25:  [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 *envValue = getenv(env.CStr());
data/icinga2-2.12.2/lib/methods/randomchecktask.cpp:40:30:  [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.
		new PerfdataValue("value", random),
data/icinga2-2.12.2/lib/methods/randomchecktask.cpp:41:33:  [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.
		new PerfdataValue("value_1m", random * 0.9),
data/icinga2-2.12.2/lib/methods/randomchecktask.cpp:42:33:  [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.
		new PerfdataValue("value_5m", random * 0.8),
data/icinga2-2.12.2/plugins/check_perfmon.cpp:182:16:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	hPdhLibrary = LoadLibrary(L"pdh.dll");
data/icinga2-2.12.2/test/icinga-legacytimeperiod.cpp:22:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		tz = getenv("TZ");
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:93:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *path = getenv ("PATH");
data/icinga2-2.12.2/icinga-app/icinga.cpp:337: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 username[UNLEN + 1];
data/icinga2-2.12.2/icinga-app/icinga.cpp:345:11:  [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).
	userFile.open(configDir + "/user");
data/icinga2-2.12.2/icinga-app/icinga.cpp:357:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				TCHAR szPath[MAX_PATH];
data/icinga2-2.12.2/icinga-app/icinga.cpp:676:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR szPath[MAX_PATH];
data/icinga2-2.12.2/icinga-installer/icinga-installer.cpp:16: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 szFileName[MAX_PATH];
data/icinga2-2.12.2/icinga-installer/icinga-installer.cpp:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAX_PATH];
data/icinga2-2.12.2/lib/base/application.cpp:471: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 buffer[MAXPATHLEN];
data/icinga2-2.12.2/lib/base/application.cpp:525: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 FullExePath[MAXPATHLEN];
data/icinga2-2.12.2/lib/base/application.cpp:619: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).
			int fd = open(filename.CStr(), O_CREAT | O_RDWR | O_APPEND, 0600);
data/icinga2-2.12.2/lib/base/application.cpp:744:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ofs.open(fname.CStr());
data/icinga2-2.12.2/lib/base/application.cpp:854:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ofs.open(fname.CStr());
data/icinga2-2.12.2/lib/base/application.cpp:907:6:  [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).
	ofs.open(fname.CStr());
data/icinga2-2.12.2/lib/base/application.cpp:997:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_PidFile = fopen(filename.CStr(), "r+");
data/icinga2-2.12.2/lib/base/application.cpp:1000:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		m_PidFile = fopen(filename.CStr(), "w");
data/icinga2-2.12.2/lib/base/application.cpp:1067:18:  [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 *pidfile = fopen(filename.CStr(), "r");
data/icinga2-2.12.2/lib/base/configobject.cpp:542:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(filename.CStr(), std::ios_base::in);
data/icinga2-2.12.2/lib/base/debuginfo.cpp:47:6:  [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).
	ifs.open(di.Path.CStr(), std::ifstream::in);
data/icinga2-2.12.2/lib/base/debuginfo.cpp:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[1024];
data/icinga2-2.12.2/lib/base/fifo.cpp:65:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		std::memcpy(buffer, m_Buffer + m_Offset, count);
data/icinga2-2.12.2/lib/base/fifo.cpp:81:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		std::memcpy(buffer, m_Buffer + m_Offset, count);
data/icinga2-2.12.2/lib/base/fifo.cpp:97:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	std::memcpy(m_Buffer + m_Offset + m_DataSize, buffer, count);
data/icinga2-2.12.2/lib/base/filelogger.cpp:49:11:  [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).
		stream->open(path.CStr(), std::fstream::app | std::fstream::out);
data/icinga2-2.12.2/lib/base/object-packer.cpp:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[sizeof(int)];
data/icinga2-2.12.2/lib/base/object-packer.cpp:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[8] = {
data/icinga2-2.12.2/lib/base/object-packer.cpp:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[8];
data/icinga2-2.12.2/lib/base/process.cpp:86:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	auto **argv = new char *[arguments->GetLength() + 1];
data/icinga2-2.12.2/lib/base/process.cpp:102:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	auto **envp = new char *[envc + (extraEnvironment ? extraEnvironment->GetLength() : 0) + 2];
data/icinga2-2.12.2/lib/base/process.cpp:162:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char errmsg[512];
data/icinga2-2.12.2/lib/base/process.cpp:163:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
			strcpy(errmsg, "execvpe(");
data/icinga2-2.12.2/lib/base/process.cpp:260: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 cbuf[4096];
data/icinga2-2.12.2/lib/base/process.cpp:389: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 cbuf[CMSG_SPACE(sizeof(int) * 3)];
data/icinga2-2.12.2/lib/base/process.cpp:398:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(CMSG_DATA(cmsg), fds, sizeof(int) * 3);
data/icinga2-2.12.2/lib/base/process.cpp:408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/icinga2-2.12.2/lib/base/process.cpp:444:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/icinga2-2.12.2/lib/base/process.cpp:475:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/icinga2-2.12.2/lib/base/process.cpp:687:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[512];
data/icinga2-2.12.2/lib/base/process.cpp:758: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 pipeName[128];
data/icinga2-2.12.2/lib/base/process.cpp:759:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(pipeName, "\\\\.\\Pipe\\OverlappedPipe.%d.%d", (int)GetCurrentProcessId(), (int)currentIndex);
data/icinga2-2.12.2/lib/base/process.cpp:1052:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[512];
data/icinga2-2.12.2/lib/base/process.hpp:91: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 m_ReadBuffer[1024];
data/icinga2-2.12.2/lib/base/scriptutils.cpp:508:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR productCode[39];
data/icinga2-2.12.2/lib/base/scriptutils.cpp:511:2:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	TCHAR path[2048];
data/icinga2-2.12.2/lib/base/socket.cpp:116: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 host[NI_MAXHOST];
data/icinga2-2.12.2/lib/base/socket.cpp:117: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 service[NI_MAXSERV];
data/icinga2-2.12.2/lib/base/tcpsocket.hpp:48:11:  [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).
			socket.open(current->endpoint().protocol());
data/icinga2-2.12.2/lib/base/tcpsocket.hpp:77:11:  [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).
			socket.open(current->endpoint().protocol());
data/icinga2-2.12.2/lib/base/tlsutility.cpp:75: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:191: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:252: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:283: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:284: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 buffer[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:318: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:356: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 errbuf[256];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:521:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[120];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:523:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[SHA_DIGEST_LENGTH];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:595: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 errbuf[120];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:669:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[SHA_DIGEST_LENGTH];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:673: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 output[SHA_DIGEST_LENGTH*2+1];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:675:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", digest[i]);
data/icinga2-2.12.2/lib/base/tlsutility.cpp:682:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[SHA256_DIGEST_LENGTH];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:686: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 output[SHA256_DIGEST_LENGTH*2+1];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:688:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", digest[i]);
data/icinga2-2.12.2/lib/base/tlsutility.cpp:695: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 errbuf[120];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:697:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[SHA_DIGEST_LENGTH];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:726: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 output[SHA_DIGEST_LENGTH*2+1];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:728:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", digest[i]);
data/icinga2-2.12.2/lib/base/tlsutility.cpp:735: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 errbuf[120];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:737:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char digest[SHA256_DIGEST_LENGTH];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:763: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 output[SHA256_DIGEST_LENGTH*2+1];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:765:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", digest[i]);
data/icinga2-2.12.2/lib/base/tlsutility.cpp:782: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 errbuf[120];
data/icinga2-2.12.2/lib/base/tlsutility.cpp:795:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", bytes[i]);
data/icinga2-2.12.2/lib/base/tlsutility.cpp:906: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 errbuf[120];
data/icinga2-2.12.2/lib/base/utility.cpp:117: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 buffer[sizeof(SYMBOL_INFO)+MAX_SYM_NAME * sizeof(TCHAR)];
data/icinga2-2.12.2/lib/base/utility.cpp:129: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 output[256];
data/icinga2-2.12.2/lib/base/utility.cpp:152:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bool ParseIp(const String& ip, char addr[16], int *proto)
data/icinga2-2.12.2/lib/base/utility.cpp:172:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void ParseIpMask(const String& ip, char mask[16], int *bits)
data/icinga2-2.12.2/lib/base/utility.cpp:214: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.
static bool IpMaskCheck(char addr[16], char mask[16], int bits)
data/icinga2-2.12.2/lib/base/utility.cpp:214:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bool IpMaskCheck(char addr[16], char mask[16], int bits)
data/icinga2-2.12.2/lib/base/utility.cpp:234: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 mask[16];
data/icinga2-2.12.2/lib/base/utility.cpp:239: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 addr[16];
data/icinga2-2.12.2/lib/base/utility.cpp:883:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char sep_before[2], sep_after[3];
data/icinga2-2.12.2/lib/base/utility.cpp:944: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 timestamp[128];
data/icinga2-2.12.2/lib/base/utility.cpp:1223:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[255];
data/icinga2-2.12.2/lib/base/utility.cpp:1316:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(path.CStr());
data/icinga2-2.12.2/lib/base/utility.cpp:1498: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 line[1024];
data/icinga2-2.12.2/lib/base/utility.cpp:1512: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 line[1024];
data/icinga2-2.12.2/lib/base/utility.cpp:1527: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 line[1024];
data/icinga2-2.12.2/lib/base/utility.cpp:1544: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 line[1024];
data/icinga2-2.12.2/lib/base/utility.cpp:1561:10:  [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).
	release.open("/etc/redhat-release");
data/icinga2-2.12.2/lib/base/utility.cpp:1580:10:  [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).
	release.open("/etc/SuSE-release");
data/icinga2-2.12.2/lib/base/utility.cpp:1685:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(&targetPath[0]);
data/icinga2-2.12.2/lib/base/utility.cpp:1698:6:  [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).
		fp.open(&targetPath[0], std::ios_base::trunc | std::ios_base::out);
data/icinga2-2.12.2/lib/base/utility.cpp:1813:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(tmpl, O_RDWR | O_CREAT | O_EXCL, _S_IREAD | _S_IWRITE);
data/icinga2-2.12.2/lib/base/utility.cpp:1828: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 szProduct[39];
data/icinga2-2.12.2/lib/base/utility.cpp:1831: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 szName[128];
data/icinga2-2.12.2/lib/base/utility.cpp:1839: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 szLocation[1024];
data/icinga2-2.12.2/lib/base/utility.cpp:1850:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[MAX_PATH];
data/icinga2-2.12.2/lib/cli/clicommand.cpp:27: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 line[4096];
data/icinga2-2.12.2/lib/cli/consolecommand.cpp:323: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).
		historyfp.open(historyPath.CStr(), std::fstream::in);
data/icinga2-2.12.2/lib/cli/consolecommand.cpp:380:16:  [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).
					historyfp.open(historyPath.CStr(), std::fstream::out | std::fstream::app);
data/icinga2-2.12.2/lib/cli/daemoncommand.cpp:122:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fdnull = open("/dev/null", O_RDWR);
data/icinga2-2.12.2/lib/cli/daemoncommand.cpp:139: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 fderr = open(errPath, O_WRONLY | O_APPEND);
data/icinga2-2.12.2/lib/cli/daemoncommand.cpp:142:11:  [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).
		fderr = open(errPath, O_CREAT | O_WRONLY | O_APPEND, 0600);
data/icinga2-2.12.2/lib/cli/featureutility.cpp:94:6:  [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).
		fp.open(target.CStr());
data/icinga2-2.12.2/lib/cli/objectlistcommand.cpp:63:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(objectfile.CStr(), std::ios_base::in);
data/icinga2-2.12.2/lib/cli/variableutility.cpp:20:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(varsfile.CStr(), std::ios_base::in);
data/icinga2-2.12.2/lib/cli/variableutility.cpp:50:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(varsfile.CStr(), std::ios_base::in);
data/icinga2-2.12.2/lib/compat/checkresultreader.cpp:87:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(crfile.CStr());
data/icinga2-2.12.2/lib/compat/compatlogger.cpp:474:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	m_OutputFile.open(tempFile.CStr(), std::ofstream::app);
data/icinga2-2.12.2/lib/compat/externalcommandlistener.cpp:91:12:  [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(commandPath.CStr(), O_RDWR | O_NONBLOCK);
data/icinga2-2.12.2/lib/compat/externalcommandlistener.cpp:106:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buffer[8192];
data/icinga2-2.12.2/lib/db_ido_pgsql/idopgsqlconnection.cpp:504:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	m_AffectedRows = atoi(rowCount);
data/icinga2-2.12.2/lib/icinga/externalcommandprocessor.cpp:926:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ifp.open(file.CStr(), std::ifstream::in);
data/icinga2-2.12.2/lib/icingadb/icingadb-utility.cpp:29: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 output[20*2+1];
data/icinga2-2.12.2/lib/icingadb/icingadb-utility.cpp:31:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(output + 2 * i, "%02x", str[i]);
data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp:251:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_What[2];
data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp:411:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char crlf[2];
data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp:515:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[21] = {};
data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp:516:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%jd", i);
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:29:9:  [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).
	stream.open(path.CStr(), std::ifstream::in);
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:35: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 buffer[12];
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:46:20:  [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).
	time_t ts_start = atoi(buffer+1);
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:75:6:  [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).
		fp.open(log_file.CStr(), std::ifstream::in);
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:110:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	unsigned long time = atoi(text.SubStr(1, 11).CStr());
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:143:23:  [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).
		bag->Set("attempt", atoi(tokens[3].CStr()));
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:187:23:  [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).
		bag->Set("attempt", atoi(tokens[4].CStr()));
data/icinga2-2.12.2/lib/perfdata/perfdatawriter.cpp:162:9:  [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).
	output.open(temp_path.CStr());
data/icinga2-2.12.2/lib/remote/apilistener.cpp:379:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				acceptor->open(current->endpoint().protocol());
data/icinga2-2.12.2/lib/remote/configpackageutility.cpp:262:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp.open(path.CStr());
data/icinga2-2.12.2/lib/remote/httpserverconnection.cpp:122:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/icinga2-2.12.2/lib/remote/jsonrpcconnection-pki.cpp: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.
	unsigned char digest[EVP_MAX_MD_SIZE];
data/icinga2-2.12.2/lib/remote/jsonrpcconnection-pki.cpp:100: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 certFingerprint[EVP_MAX_MD_SIZE*2+1];
data/icinga2-2.12.2/lib/remote/jsonrpcconnection-pki.cpp:102:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(certFingerprint + 2 * i, "%02x", digest[i]);
data/icinga2-2.12.2/lib/remote/pkiutility.cpp:58: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 errbuf[256];
data/icinga2-2.12.2/lib/remote/pkiutility.cpp:127:9:  [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).
	fpcert.open(trustedfile.CStr());
data/icinga2-2.12.2/lib/remote/pkiutility.cpp:257:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fpca.open(cafile.CStr());
data/icinga2-2.12.2/lib/remote/pkiutility.cpp:308:9:  [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).
	fpcert.open(certfile.CStr());
data/icinga2-2.12.2/lib/remote/pkiutility.cpp:359:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char md[EVP_MAX_MD_SIZE];
data/icinga2-2.12.2/plugins/check_load.cpp:27:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t namePath[MAX_PATH];
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:213:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char l_ReasonToInject[2] = {' ', 'X'};
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:321: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 m_StashedDataBuf[sizeof(l_ReasonToInject) / sizeof(l_ReasonToInject[0])];
data/icinga2-2.12.2/plugins/check_ping.cpp:254:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t ipstringbuffer[46];
data/icinga2-2.12.2/test/base-fifo.cpp:27: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 buffer1[2];
data/icinga2-2.12.2/test/base-fifo.cpp:32: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 buffer2[5];
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:119:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      name = (char *) memcpy (name + pathlen + 1, file, len);
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:140:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            startp = (char *) memcpy (name - (p - path), path, p - path);
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:1441: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.
((struct { char v[sizeof(void) * 2]; } *) 1) \
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:7007:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, vec.data(), sizeof(NumberType));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:12566:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(vec.data(), &n, sizeof(NumberType));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:12597:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, &x, sizeof(x));
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:12695:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&target, &source, sizeof(Source));
data/icinga2-2.12.2/third-party/utf8cpp/test_drivers/smoke_test/test.cpp:11: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 u[5] = {0,0,0,0,0};
data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp:1336:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	input.open(inputpath.c_str(), std::ifstream::in);
data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp:1345:10:  [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).
	oheader.open(tmpheaderpath.c_str(), std::ofstream::out);
data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp:1354:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	oimpl.open(tmpimplpath.c_str(), std::ofstream::out);
data/icinga2-2.12.2/tools/mkembedconfig/mkembedconfig.c:16:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infp = fopen(argv[1], "r");
data/icinga2-2.12.2/tools/mkembedconfig/mkembedconfig.c:23: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).
	outfp = fopen(argv[2], "w");
data/icinga2-2.12.2/tools/mkembedconfig/mkembedconfig.c:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/icinga2-2.12.2/lib/base/debuginfo.cpp:77:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			end = strlen(line);
data/icinga2-2.12.2/lib/base/netstring.cpp:142:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			asio::read(*stream, byteBuf);
data/icinga2-2.12.2/lib/base/netstring.cpp:183:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		asio::read(*stream, payloadBuf);
data/icinga2-2.12.2/lib/base/netstring.cpp:190:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		asio::read(*stream, trailerBuf);
data/icinga2-2.12.2/lib/base/process.cpp:164:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(errmsg, argv[0], sizeof(errmsg) - strlen(errmsg) - 1);
data/icinga2-2.12.2/lib/base/process.cpp:164: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).
			strncat(errmsg, argv[0], sizeof(errmsg) - strlen(errmsg) - 1);
data/icinga2-2.12.2/lib/base/process.cpp:165:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat(errmsg, ") failed", sizeof(errmsg) - strlen(errmsg) - 1);
data/icinga2-2.12.2/lib/base/process.cpp:165: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).
			strncat(errmsg, ") failed", sizeof(errmsg) - strlen(errmsg) - 1);
data/icinga2-2.12.2/lib/base/process.cpp:688:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(l_EventFDs[tid][0], buffer, sizeof(buffer)) < 0)
data/icinga2-2.12.2/lib/base/process.cpp:850:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(args, m_Arguments.CStr(), m_Arguments.GetLength() + 1);
data/icinga2-2.12.2/lib/base/process.cpp:859:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(pEnvironment + ioffset);
data/icinga2-2.12.2/lib/base/process.cpp:1054:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int rc = read(m_FD, buffer, sizeof(buffer));
data/icinga2-2.12.2/lib/base/socket.cpp:307:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rc = read(GetFD(), (char *)buffer, count);
data/icinga2-2.12.2/lib/base/socket.cpp:366:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool Socket::Poll(bool read, bool write, struct timeval *timeout)
data/icinga2-2.12.2/lib/base/socket.cpp:374:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read)
data/icinga2-2.12.2/lib/base/socket.cpp:397:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	pfd.events = (read ? POLLIN : 0) | (write ? POLLOUT : 0);
data/icinga2-2.12.2/lib/base/socket.hpp:42:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bool Poll(bool read, bool write, struct timeval *timeout = nullptr);
data/icinga2-2.12.2/lib/base/stdiostream.cpp:28:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_InnerStream->read(static_cast<char *>(buffer), size);
data/icinga2-2.12.2/lib/base/stringbuilder.cpp:25:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	m_Buffer.insert(m_Buffer.end(), cstr, cstr + std::strlen(cstr));
data/icinga2-2.12.2/lib/base/unixsocket.cpp:29:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, path.CStr(), sizeof(s_un.sun_path));
data/icinga2-2.12.2/lib/base/unixsocket.cpp:44:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(s_un.sun_path, path.CStr(), sizeof(s_un.sun_path));
data/icinga2-2.12.2/lib/base/utility.cpp:369:2:  [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(micros % 1000000u);
data/icinga2-2.12.2/lib/base/utility.cpp:1770:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (tmpl);
data/icinga2-2.12.2/lib/cli/consolecommand.cpp:603:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		http::read(*l_TlsStream, buf, parser);
data/icinga2-2.12.2/lib/config/configcompiler.cpp:51:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_Input->read(buffer, max_size);
data/icinga2-2.12.2/lib/icingadb/redisconnection.hpp:518:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	asio::async_write(stream, asio::const_buffer(buf, strlen(buf)), yc);
data/icinga2-2.12.2/lib/livestatus/livestatuslogutility.cpp:37:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	stream.read(buffer, 12);
data/icinga2-2.12.2/lib/perfdata/elasticsearchwriter.cpp:524:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			http::read(*stream.first, buf, parser);
data/icinga2-2.12.2/lib/perfdata/elasticsearchwriter.cpp:526:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			http::read(*stream.second, buf, parser);
data/icinga2-2.12.2/lib/perfdata/influxdbwriter.cpp:530:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			http::read(*stream.first, buf, parser);
data/icinga2-2.12.2/lib/perfdata/influxdbwriter.cpp:532:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			http::read(*stream.second, buf, parser);
data/icinga2-2.12.2/plugins/check_disk.cpp:66:20:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		szSingleDrive += wcslen(szSingleDrive) + 1;
data/icinga2-2.12.2/plugins/check_disk.cpp:85:19:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		volumeNameEnd = wcslen(szVolumeName) - 1;
data/icinga2-2.12.2/plugins/check_nscp_api.cpp:392:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		http::read(reasonInjector, buffer, p);
data/icinga2-2.12.2/test/base-object-packer.cpp:99:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!equal) {
data/icinga2-2.12.2/test/base-object-packer.cpp:118:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/icinga2-2.12.2/test/base-string.cpp:16:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
BOOST_AUTO_TEST_CASE(equal)
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:100: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).
        pathlen = strlen (path);
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:102: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 len = strlen (file) + 1;
data/icinga2-2.12.2/third-party/execvpe/execvpe.c:133: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).
            p = path + strlen(path);
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:3935:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return std::fgetc(m_file);
data/icinga2-2.12.2/third-party/nlohmann_json/json.hpp:4242: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).
                        std::strlen(reinterpret_cast<const char*>(b))) {}
data/icinga2-2.12.2/third-party/utf8cpp/test_drivers/smoke_test/test.cpp:162:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    assert (std::equal(replace_invalid_result.begin(), replace_invalid_result.begin() + sizeof(fixed_invalid_sequence), fixed_invalid_sequence));
data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp:46:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	m_Input.read(buffer, max_size);
data/icinga2-2.12.2/tools/mkclass/classcompiler.cpp:163: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).
		return ftype.substr(0, ftype.size() - strlen("::Ptr"));

ANALYSIS SUMMARY:

Hits = 274
Lines analyzed = 126257 in approximately 11.16 seconds (11312 lines/second)
Physical Source Lines of Code (SLOC) = 87507
Hits@level = [0]  51 [1]  45 [2] 159 [3]  11 [4]  53 [5]   6
Hits@level+ = [0+] 325 [1+] 274 [2+] 229 [3+]  70 [4+]  59 [5+]   6
Hits/KSLOC@level+ = [0+] 3.71399 [1+] 3.13118 [2+] 2.61693 [3+] 0.799936 [4+] 0.674232 [5+] 0.0685659
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.