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/elektra-0.8.14/benchmarks/benchmarks.c Examining data/elektra-0.8.14/benchmarks/benchmarks.h Examining data/elektra-0.8.14/benchmarks/cmp.c Examining data/elektra-0.8.14/benchmarks/createkeys.c Examining data/elektra-0.8.14/benchmarks/large.c Examining data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c Examining data/elektra-0.8.14/examples/basename.c Examining data/elektra-0.8.14/examples/cascading.c Examining data/elektra-0.8.14/examples/cut.c Examining data/elektra-0.8.14/examples/external/cmake/application.c Examining data/elektra-0.8.14/examples/external/pkgconfig/application.c Examining data/elektra-0.8.14/examples/functional.c Examining data/elektra-0.8.14/examples/hello.c Examining data/elektra-0.8.14/examples/iterate.c Examining data/elektra-0.8.14/examples/kdbget.c Examining data/elektra-0.8.14/examples/kdbget_error.c Examining data/elektra-0.8.14/examples/kdbintro.c Examining data/elektra-0.8.14/examples/kdbopen.c Examining data/elektra-0.8.14/examples/kdbset.c Examining data/elektra-0.8.14/examples/keyCopy.c Examining data/elektra-0.8.14/examples/keyMeta.c Examining data/elektra-0.8.14/examples/keyName.c Examining data/elektra-0.8.14/examples/keyNew.c Examining data/elektra-0.8.14/examples/keyNewExample.c Examining data/elektra-0.8.14/examples/keyset.c Examining data/elektra-0.8.14/examples/ksLookupPop.c Examining data/elektra-0.8.14/examples/meta.c Examining data/elektra-0.8.14/examples/namespace.c Examining data/elektra-0.8.14/examples/reference.c Examining data/elektra-0.8.14/examples/set.c Examining data/elektra-0.8.14/src/bindings/cpp/benchmarks/benchmark_thread.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_cascading.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_dup.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_get.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_hello.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_hierarchy.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_io.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_iter.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_iter_name.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_ks.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_ordering.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_set.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_userexception.cpp Examining data/elektra-0.8.14/src/bindings/cpp/examples/cpp_example_userio.cpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdb.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbcontext.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbexcept.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbio.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbplugin.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbthread.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbvalue.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/key.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/keyexcept.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/keyio.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/keyset.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/keysetio.hpp Examining data/elektra-0.8.14/src/bindings/cpp/include/kdbtimer.hpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_contextual_basic.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_contextual_nocontext.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_contextual_policy.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_contextual_thread.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_iter.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_iter_name.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_kdb.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_key.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_ks.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/testcpp_meta.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/tests.cpp Examining data/elektra-0.8.14/src/bindings/cpp/tests/tests.hpp Examining data/elektra-0.8.14/src/bindings/glib/gelektra-kdb.c Examining data/elektra-0.8.14/src/bindings/glib/gelektra-kdb.h Examining data/elektra-0.8.14/src/bindings/glib/gelektra-keyset.c Examining data/elektra-0.8.14/src/bindings/glib/gelektra-keyset.h Examining data/elektra-0.8.14/src/bindings/glib/tests/testglib_kdb.c Examining data/elektra-0.8.14/src/bindings/glib/tests/testglib_key.c Examining data/elektra-0.8.14/src/bindings/glib/tests/testglib_keyset.c Examining data/elektra-0.8.14/src/bindings/glib/gelektra-key.c Examining data/elektra-0.8.14/src/bindings/glib/gelektra-key.h Examining data/elektra-0.8.14/src/include/kdbextension.h Examining data/elektra-0.8.14/src/include/kdbhelper.h Examining data/elektra-0.8.14/src/include/kdbinternal.h Examining data/elektra-0.8.14/src/include/kdbmeta.h Examining data/elektra-0.8.14/src/include/kdbmodule.h Examining data/elektra-0.8.14/src/include/kdbobsolete.h Examining data/elektra-0.8.14/src/include/kdbos.h Examining data/elektra-0.8.14/src/include/kdbplugin.h Examining data/elektra-0.8.14/src/include/kdbprivate.h Examining data/elektra-0.8.14/src/include/kdbproposal.h Examining data/elektra-0.8.14/src/include/kdbtypes.h Examining data/elektra-0.8.14/src/libelektra/array.c Examining data/elektra-0.8.14/src/libelektra/backend.c Examining data/elektra-0.8.14/src/libelektra/exportsymbols.c Examining data/elektra-0.8.14/src/libelektra/internal.c Examining data/elektra-0.8.14/src/libelektra/kdb.c Examining data/elektra-0.8.14/src/libelektra/kdbenum.c Examining data/elektra-0.8.14/src/libelektra/key.c Examining data/elektra-0.8.14/src/libelektra/keyhelpers.c Examining data/elektra-0.8.14/src/libelektra/keymeta.c Examining data/elektra-0.8.14/src/libelektra/keyname.c Examining data/elektra-0.8.14/src/libelektra/keyset.c Examining data/elektra-0.8.14/src/libelektra/keytest.c Examining data/elektra-0.8.14/src/libelektra/keyvalue.c Examining data/elektra-0.8.14/src/libelektra/meta.c Examining data/elektra-0.8.14/src/libelektra/mount.c Examining data/elektra-0.8.14/src/libelektra/plugin.c Examining data/elektra-0.8.14/src/libelektra/proposal.c Examining data/elektra-0.8.14/src/libelektra/split.c Examining data/elektra-0.8.14/src/libelektra/trie.c Examining data/elektra-0.8.14/src/liberror/exporterrors.cpp Examining data/elektra-0.8.14/src/liberror/exporttranslations.cpp Examining data/elektra-0.8.14/src/liberror/parser.cpp Examining data/elektra-0.8.14/src/liberror/parser.hpp Examining data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp Examining data/elektra-0.8.14/src/libgetenv/examples/getenv.c Examining data/elektra-0.8.14/src/libgetenv/include/kdbgetenv.h Examining data/elektra-0.8.14/src/libgetenv/src/getenv.cpp Examining data/elektra-0.8.14/src/libgetenv/tests/main.cpp Examining data/elektra-0.8.14/src/libgetenv/tests/test_context.cpp Examining data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp Examining data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp Examining data/elektra-0.8.14/src/libloader/dl.c Examining data/elektra-0.8.14/src/libloader/doc.c Examining data/elektra-0.8.14/src/libloader/static.c Examining data/elektra-0.8.14/src/libtools/examples/backend.cpp Examining data/elektra-0.8.14/src/libtools/examples/merging.cpp Examining data/elektra-0.8.14/src/libtools/include/backend.hpp Examining data/elektra-0.8.14/src/libtools/include/backends.hpp Examining data/elektra-0.8.14/src/libtools/include/helper/comparison.hpp Examining data/elektra-0.8.14/src/libtools/include/helper/keyhelper.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/automergeconfiguration.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/automergestrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/importmergeconfiguration.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/interactivemergestrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/kdbmerge.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/mergeconfiguration.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/mergeconflict.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/mergeconflictstrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/mergeresult.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/mergetask.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/metamergestrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/newkeystrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/onesidemergeconfiguration.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/onesidestrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/onesidevaluestrategy.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/overwritemergeconfiguration.hpp Examining data/elektra-0.8.14/src/libtools/include/merging/threewaymerge.hpp Examining data/elektra-0.8.14/src/libtools/include/modules.hpp Examining data/elektra-0.8.14/src/libtools/include/plugin.hpp Examining data/elektra-0.8.14/src/libtools/include/plugins.hpp Examining data/elektra-0.8.14/src/libtools/include/toolexcept.hpp Examining data/elektra-0.8.14/src/libtools/src/backend.cpp Examining data/elektra-0.8.14/src/libtools/src/backends.cpp Examining data/elektra-0.8.14/src/libtools/src/helper/comparison.cpp Examining data/elektra-0.8.14/src/libtools/src/helper/keyhelper.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/automergeconfiguration.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/automergestrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/importmergeconfiguration.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/interactivemergestrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/mergeconflictstrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/mergeresult.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/metamergestrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/newkeystrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/onesidemergeconfiguration.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/onesidestrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/onesidevaluestrategy.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/overwritemergeconfiguration.cpp Examining data/elektra-0.8.14/src/libtools/src/merging/threewaymerge.cpp Examining data/elektra-0.8.14/src/libtools/src/modules.cpp Examining data/elektra-0.8.14/src/libtools/src/plugin.cpp Examining data/elektra-0.8.14/src/libtools/src/plugins.cpp Examining data/elektra-0.8.14/src/libtools/tests/mergetestutils.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_automergestrategy.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_backend.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_comparison.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_keyhelper.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_mergecases.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_mergeresult.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_metamergestrategy.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_newkeystrategy.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_onesidestrategy.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_samemountpoint.cpp Examining data/elektra-0.8.14/src/libtools/tests/testtool_umount.cpp Examining data/elektra-0.8.14/src/plugins/augeas/augeas.c Examining data/elektra-0.8.14/src/plugins/augeas/augeas.h Examining data/elektra-0.8.14/src/plugins/augeas/contract.h Examining data/elektra-0.8.14/src/plugins/augeas/testaugeas.c Examining data/elektra-0.8.14/src/plugins/augeas/testmod_augeas.c Examining data/elektra-0.8.14/src/plugins/ccode/ccode.c Examining data/elektra-0.8.14/src/plugins/ccode/ccode.h Examining data/elektra-0.8.14/src/plugins/ccode/testmod_ccode.c Examining data/elektra-0.8.14/src/plugins/conditionals/conditionals.c Examining data/elektra-0.8.14/src/plugins/conditionals/conditionals.h Examining data/elektra-0.8.14/src/plugins/conditionals/testmod_conditionals.c Examining data/elektra-0.8.14/src/plugins/counter/counter.c Examining data/elektra-0.8.14/src/plugins/counter/counter.h Examining data/elektra-0.8.14/src/plugins/crypto/contract.h Examining data/elektra-0.8.14/src/plugins/crypto/crypto.c Examining data/elektra-0.8.14/src/plugins/crypto/crypto.h Examining data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c Examining data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.h Examining data/elektra-0.8.14/src/plugins/crypto/testmod_crypto.c Examining data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c Examining data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.h Examining data/elektra-0.8.14/src/plugins/csvstorage/testmod_csvstorage.c Examining data/elektra-0.8.14/src/plugins/dbus/dbus.c Examining data/elektra-0.8.14/src/plugins/dbus/dbus.h Examining data/elektra-0.8.14/src/plugins/dbus/receivemessage.c Examining data/elektra-0.8.14/src/plugins/dbus/sendmessage.c Examining data/elektra-0.8.14/src/plugins/dbus/testmod_dbus.c Examining data/elektra-0.8.14/src/plugins/doc/doc.c Examining data/elektra-0.8.14/src/plugins/doc/doc.h Examining data/elektra-0.8.14/src/plugins/dump/dump.cpp Examining data/elektra-0.8.14/src/plugins/dump/dump.hpp Examining data/elektra-0.8.14/src/plugins/dump/testmod_dump.c Examining data/elektra-0.8.14/src/plugins/enum/enum.c Examining data/elektra-0.8.14/src/plugins/enum/enum.h Examining data/elektra-0.8.14/src/plugins/enum/testmod_enum.c Examining data/elektra-0.8.14/src/plugins/error/error.c Examining data/elektra-0.8.14/src/plugins/error/error.h Examining data/elektra-0.8.14/src/plugins/filecheck/filecheck.c Examining data/elektra-0.8.14/src/plugins/filecheck/filecheck.h Examining data/elektra-0.8.14/src/plugins/filecheck/testmod_filecheck.c Examining data/elektra-0.8.14/src/plugins/fstab/fstab.c Examining data/elektra-0.8.14/src/plugins/fstab/fstab.h Examining data/elektra-0.8.14/src/plugins/fstab/testmntent.c Examining data/elektra-0.8.14/src/plugins/fstab/testmod_fstab.c Examining data/elektra-0.8.14/src/plugins/glob/contract.h Examining data/elektra-0.8.14/src/plugins/glob/glob.c Examining data/elektra-0.8.14/src/plugins/glob/glob.h Examining data/elektra-0.8.14/src/plugins/glob/testmod_glob.c Examining data/elektra-0.8.14/src/plugins/hexcode/hexcode.c Examining data/elektra-0.8.14/src/plugins/hexcode/hexcode.h Examining data/elektra-0.8.14/src/plugins/hexcode/testmod_hexcode.c Examining data/elektra-0.8.14/src/plugins/hidden/hidden.c Examining data/elektra-0.8.14/src/plugins/hidden/hidden.h Examining data/elektra-0.8.14/src/plugins/hosts/contract.h Examining data/elektra-0.8.14/src/plugins/hosts/hosts-get.c Examining data/elektra-0.8.14/src/plugins/hosts/hosts-set.c Examining data/elektra-0.8.14/src/plugins/hosts/hosts.h Examining data/elektra-0.8.14/src/plugins/hosts/keymetaformatting.c Examining data/elektra-0.8.14/src/plugins/hosts/keymetaformatting.h Examining data/elektra-0.8.14/src/plugins/hosts/testmod_hosts.c Examining data/elektra-0.8.14/src/plugins/iconv/data_latin1.c Examining data/elektra-0.8.14/src/plugins/iconv/data_utf8.c Examining data/elektra-0.8.14/src/plugins/iconv/iconv.c Examining data/elektra-0.8.14/src/plugins/iconv/iconv.h Examining data/elektra-0.8.14/src/plugins/iconv/testmod_iconv.c Examining data/elektra-0.8.14/src/plugins/ini/contract.h Examining data/elektra-0.8.14/src/plugins/ini/ini.c Examining data/elektra-0.8.14/src/plugins/ini/ini.h Examining data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c Examining data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.h Examining data/elektra-0.8.14/src/plugins/ini/testmod_ini.c Examining data/elektra-0.8.14/src/plugins/jni/jni.c Examining data/elektra-0.8.14/src/plugins/jni/testmod_jni.c Examining data/elektra-0.8.14/src/plugins/journald/journald.c Examining data/elektra-0.8.14/src/plugins/journald/journald.h Examining data/elektra-0.8.14/src/plugins/keytometa/contract.h Examining data/elektra-0.8.14/src/plugins/keytometa/keytometa.c Examining data/elektra-0.8.14/src/plugins/keytometa/keytometa.h Examining data/elektra-0.8.14/src/plugins/keytometa/testmod_keytometa.c Examining data/elektra-0.8.14/src/plugins/line/line.c Examining data/elektra-0.8.14/src/plugins/line/line.h Examining data/elektra-0.8.14/src/plugins/line/testgetline.c Examining data/elektra-0.8.14/src/plugins/line/testmod_line.c Examining data/elektra-0.8.14/src/plugins/lineendings/lineendings.c Examining data/elektra-0.8.14/src/plugins/lineendings/lineendings.h Examining data/elektra-0.8.14/src/plugins/lineendings/testmod_lineendings.c Examining data/elektra-0.8.14/src/plugins/list/list.c Examining data/elektra-0.8.14/src/plugins/list/list.h Examining data/elektra-0.8.14/src/plugins/list/testmod_list.c Examining data/elektra-0.8.14/src/plugins/logchange/logchange.c Examining data/elektra-0.8.14/src/plugins/logchange/logchange.h Examining data/elektra-0.8.14/src/plugins/lua/lua.cpp Examining data/elektra-0.8.14/src/plugins/lua/lua.hpp Examining data/elektra-0.8.14/src/plugins/lua/testmod_lua.c Examining data/elektra-0.8.14/src/plugins/mathcheck/floathelper.c Examining data/elektra-0.8.14/src/plugins/mathcheck/floathelper.h Examining data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c Examining data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.h Examining data/elektra-0.8.14/src/plugins/mathcheck/testmod_mathcheck.c Examining data/elektra-0.8.14/src/plugins/network/network.c Examining data/elektra-0.8.14/src/plugins/network/network.h Examining data/elektra-0.8.14/src/plugins/network/testmod_network.c Examining data/elektra-0.8.14/src/plugins/ni/ni.c Examining data/elektra-0.8.14/src/plugins/ni/ni.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/include/bohr/ni.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/buf.c Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/hash.c Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_hash.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_str.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_vector.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/internal.h Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/io.c Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c Examining data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c Examining data/elektra-0.8.14/src/plugins/ni/testmod_ni.c Examining data/elektra-0.8.14/src/plugins/noresolver/noresolver.c Examining data/elektra-0.8.14/src/plugins/noresolver/noresolver.h Examining data/elektra-0.8.14/src/plugins/null/null.c Examining data/elektra-0.8.14/src/plugins/null/null.h Examining data/elektra-0.8.14/src/plugins/path/path.c Examining data/elektra-0.8.14/src/plugins/path/path.h Examining data/elektra-0.8.14/src/plugins/python/python.cpp Examining data/elektra-0.8.14/src/plugins/python/python.hpp Examining data/elektra-0.8.14/src/plugins/python/testmod_python.c Examining data/elektra-0.8.14/src/plugins/python2/python.cpp Examining data/elektra-0.8.14/src/plugins/python2/python.hpp Examining data/elektra-0.8.14/src/plugins/python2/testmod_python2.c Examining data/elektra-0.8.14/src/plugins/regexstore/regexstore.cpp Examining data/elektra-0.8.14/src/plugins/regexstore/regexstore.h Examining data/elektra-0.8.14/src/plugins/rename/contract.h Examining data/elektra-0.8.14/src/plugins/rename/rename.c Examining data/elektra-0.8.14/src/plugins/rename/rename.h Examining data/elektra-0.8.14/src/plugins/rename/testmod_rename.c Examining data/elektra-0.8.14/src/plugins/resolver/contract.h Examining data/elektra-0.8.14/src/plugins/resolver/filename.c Examining data/elektra-0.8.14/src/plugins/resolver/resolver.c Examining data/elektra-0.8.14/src/plugins/resolver/resolver.h Examining data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c Examining data/elektra-0.8.14/src/plugins/simpleini/simpleini.c Examining data/elektra-0.8.14/src/plugins/simpleini/simpleini.h Examining data/elektra-0.8.14/src/plugins/struct/checker.cpp Examining data/elektra-0.8.14/src/plugins/struct/checker.hpp Examining data/elektra-0.8.14/src/plugins/struct/factory.hpp Examining data/elektra-0.8.14/src/plugins/struct/struct.cpp Examining data/elektra-0.8.14/src/plugins/struct/struct.hpp Examining data/elektra-0.8.14/src/plugins/sync/sync.c Examining data/elektra-0.8.14/src/plugins/sync/sync.h Examining data/elektra-0.8.14/src/plugins/syslog/syslog.c Examining data/elektra-0.8.14/src/plugins/syslog/syslog.h Examining data/elektra-0.8.14/src/plugins/tcl/action.cpp Examining data/elektra-0.8.14/src/plugins/tcl/action.hpp Examining data/elektra-0.8.14/src/plugins/tcl/printer.cpp Examining data/elektra-0.8.14/src/plugins/tcl/printer.hpp Examining data/elektra-0.8.14/src/plugins/tcl/tcl.cpp Examining data/elektra-0.8.14/src/plugins/tcl/tcl.hpp Examining data/elektra-0.8.14/src/plugins/template/template.c Examining data/elektra-0.8.14/src/plugins/template/template.h Examining data/elektra-0.8.14/src/plugins/template/testmod_template.c Examining data/elektra-0.8.14/src/plugins/timeofday/timeofday.c Examining data/elektra-0.8.14/src/plugins/timeofday/timeofday.h Examining data/elektra-0.8.14/src/plugins/tracer/tracer.c Examining data/elektra-0.8.14/src/plugins/tracer/tracer.h Examining data/elektra-0.8.14/src/plugins/type/testmod_type.cpp Examining data/elektra-0.8.14/src/plugins/type/type.cpp Examining data/elektra-0.8.14/src/plugins/type/type.hpp Examining data/elektra-0.8.14/src/plugins/type/type_checker.hpp Examining data/elektra-0.8.14/src/plugins/type/types.cpp Examining data/elektra-0.8.14/src/plugins/type/types.hpp Examining data/elektra-0.8.14/src/plugins/uname/testmod_uname.c Examining data/elektra-0.8.14/src/plugins/uname/testuname.c Examining data/elektra-0.8.14/src/plugins/uname/uname.c Examining data/elektra-0.8.14/src/plugins/uname/uname.h Examining data/elektra-0.8.14/src/plugins/validation/lookupre.c Examining data/elektra-0.8.14/src/plugins/validation/testmod_validation.c Examining data/elektra-0.8.14/src/plugins/validation/validation.c Examining data/elektra-0.8.14/src/plugins/validation/validation.h Examining data/elektra-0.8.14/src/plugins/wresolver/wresolver.h Examining data/elektra-0.8.14/src/plugins/wresolver/wresolver.c Examining data/elektra-0.8.14/src/plugins/xmltool/kdbtools.c Examining data/elektra-0.8.14/src/plugins/xmltool/kdbtools.h Examining data/elektra-0.8.14/src/plugins/xmltool/kscompare.c Examining data/elektra-0.8.14/src/plugins/xmltool/stream.c Examining data/elektra-0.8.14/src/plugins/xmltool/testmod_xmltool.c Examining data/elektra-0.8.14/src/plugins/xmltool/xmltool.c Examining data/elektra-0.8.14/src/plugins/xmltool/xmltool.h Examining data/elektra-0.8.14/src/plugins/yajl/iterator.c Examining data/elektra-0.8.14/src/plugins/yajl/iterator.h Examining data/elektra-0.8.14/src/plugins/yajl/name.c Examining data/elektra-0.8.14/src/plugins/yajl/name.h Examining data/elektra-0.8.14/src/plugins/yajl/testmod_yajl.c Examining data/elektra-0.8.14/src/plugins/yajl/yajl.c Examining data/elektra-0.8.14/src/plugins/yajl/yajl_gen.c Examining data/elektra-0.8.14/src/plugins/yajl/yajl_gen.h Examining data/elektra-0.8.14/src/plugins/yajl/yajl_gen_close.c Examining data/elektra-0.8.14/src/plugins/yajl/yajl_gen_open.c Examining data/elektra-0.8.14/src/plugins/yajl/yajl_parse.c Examining data/elektra-0.8.14/src/tools/gen/template/context_dynamic.hpp Examining data/elektra-0.8.14/src/tools/gen/template/context_static.hpp Examining data/elektra-0.8.14/src/tools/gen/template/genopt.c Parsing failed to find end of parameter list; semicolon terminated it in (argc, argv, #else while ((c = getopt (argc, argv, #endif @for $key, $info in $parameters.items() @if $info.get('opt'): @if $info.get('type') == 'boolean': @if not isinstance($info.get('opt'), int) Examining data/elektra-0.8.14/src/tools/gen/template/genopt.h Examining data/elektra-0.8.14/src/tools/gen/template/nested.hpp Examining data/elektra-0.8.14/src/tools/gen/template/template.h Examining data/elektra-0.8.14/src/tools/gen/template/template.hpp Examining data/elektra-0.8.14/src/tools/gen/tests/editor_context.cpp Examining data/elektra-0.8.14/src/tools/gen/tests/lift.c Examining data/elektra-0.8.14/src/tools/gen/tests/lift.cpp Examining data/elektra-0.8.14/src/tools/gen/tests/lift_context.cpp Examining data/elektra-0.8.14/src/tools/gen/tests/lift_nested.cpp Examining data/elektra-0.8.14/src/tools/gen/tests/visit_context.cpp Examining data/elektra-0.8.14/src/tools/gen/util/util.c Examining data/elektra-0.8.14/src/tools/gen/util/util.cpp Examining data/elektra-0.8.14/src/tools/kdb/check.cpp Examining data/elektra-0.8.14/src/tools/kdb/check.hpp Examining data/elektra-0.8.14/src/tools/kdb/cmdline.cpp Examining data/elektra-0.8.14/src/tools/kdb/cmdline.hpp Examining data/elektra-0.8.14/src/tools/kdb/command.cpp Examining data/elektra-0.8.14/src/tools/kdb/command.hpp Examining data/elektra-0.8.14/src/tools/kdb/convert.cpp Examining data/elektra-0.8.14/src/tools/kdb/convert.hpp Examining data/elektra-0.8.14/src/tools/kdb/cp.cpp Examining data/elektra-0.8.14/src/tools/kdb/cp.hpp Examining data/elektra-0.8.14/src/tools/kdb/export.cpp Examining data/elektra-0.8.14/src/tools/kdb/export.hpp Examining data/elektra-0.8.14/src/tools/kdb/external.cpp Examining data/elektra-0.8.14/src/tools/kdb/external.hpp Examining data/elektra-0.8.14/src/tools/kdb/factory.hpp Examining data/elektra-0.8.14/src/tools/kdb/file.cpp Examining data/elektra-0.8.14/src/tools/kdb/file.hpp Examining data/elektra-0.8.14/src/tools/kdb/fstab.cpp Examining data/elektra-0.8.14/src/tools/kdb/fstab.hpp Examining data/elektra-0.8.14/src/tools/kdb/get.cpp Examining data/elektra-0.8.14/src/tools/kdb/get.hpp Examining data/elektra-0.8.14/src/tools/kdb/import.cpp Examining data/elektra-0.8.14/src/tools/kdb/import.hpp Examining data/elektra-0.8.14/src/tools/kdb/info.cpp Examining data/elektra-0.8.14/src/tools/kdb/info.hpp Examining data/elektra-0.8.14/src/tools/kdb/list.cpp Examining data/elektra-0.8.14/src/tools/kdb/list.hpp Examining data/elektra-0.8.14/src/tools/kdb/ls.cpp Examining data/elektra-0.8.14/src/tools/kdb/ls.hpp Examining data/elektra-0.8.14/src/tools/kdb/main.cpp Examining data/elektra-0.8.14/src/tools/kdb/merge.cpp Examining data/elektra-0.8.14/src/tools/kdb/merge.hpp Examining data/elektra-0.8.14/src/tools/kdb/mergehelper.cpp Examining data/elektra-0.8.14/src/tools/kdb/mergehelper.hpp Examining data/elektra-0.8.14/src/tools/kdb/metaget.cpp Examining data/elektra-0.8.14/src/tools/kdb/metaget.hpp Examining data/elektra-0.8.14/src/tools/kdb/metals.cpp Examining data/elektra-0.8.14/src/tools/kdb/metals.hpp Examining data/elektra-0.8.14/src/tools/kdb/metaset.cpp Examining data/elektra-0.8.14/src/tools/kdb/metaset.hpp Examining data/elektra-0.8.14/src/tools/kdb/mount.cpp Examining data/elektra-0.8.14/src/tools/kdb/mount.hpp Examining data/elektra-0.8.14/src/tools/kdb/mountbase.cpp Examining data/elektra-0.8.14/src/tools/kdb/mountbase.hpp Examining data/elektra-0.8.14/src/tools/kdb/mv.cpp Examining data/elektra-0.8.14/src/tools/kdb/mv.hpp Examining data/elektra-0.8.14/src/tools/kdb/remount.cpp Examining data/elektra-0.8.14/src/tools/kdb/remount.hpp Examining data/elektra-0.8.14/src/tools/kdb/rename.hpp Examining data/elektra-0.8.14/src/tools/kdb/rm.cpp Examining data/elektra-0.8.14/src/tools/kdb/rm.hpp Examining data/elektra-0.8.14/src/tools/kdb/set.cpp Examining data/elektra-0.8.14/src/tools/kdb/set.hpp Examining data/elektra-0.8.14/src/tools/kdb/sget.cpp Examining data/elektra-0.8.14/src/tools/kdb/sget.hpp Examining data/elektra-0.8.14/src/tools/kdb/shell.cpp Examining data/elektra-0.8.14/src/tools/kdb/shell.hpp Examining data/elektra-0.8.14/src/tools/kdb/test.cpp Examining data/elektra-0.8.14/src/tools/kdb/test.hpp Examining data/elektra-0.8.14/src/tools/kdb/umount.cpp Examining data/elektra-0.8.14/src/tools/kdb/umount.hpp Examining data/elektra-0.8.14/src/tools/kdb/validation.cpp Examining data/elektra-0.8.14/src/tools/kdb/validation.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/confignode.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/confignode.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/copykeycommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/copykeycommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/cutkeycommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/cutkeycommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/datacontainer.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/datacontainer.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/deletekeycommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/deletekeycommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/editkeycommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/editkeycommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/findvisitor.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/findvisitor.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/guibackend.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/guibackend.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/guisettings.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/guisettings.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/importconfigurationcommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/importconfigurationcommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/keysetvisitor.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/keysetvisitor.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/main.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/discountmarkdownconverter.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/discountmarkdownconverter.h Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/markdownconverter.h Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/markdowndocument.h Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/template/htmltemplate.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/template/htmltemplate.h Examining data/elektra-0.8.14/src/tools/qt-gui/src/markdownconverter/template/template.h Examining data/elektra-0.8.14/src/tools/qt-gui/src/newkeycommand.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/newkeycommand.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/printvisitor.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/printvisitor.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/treeviewmodel.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/treeviewmodel.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/undomanager.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/undomanager.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/src/visitor.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/unittest/confignodetest.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/unittest/confignodetest.hpp Examining data/elektra-0.8.14/src/tools/qt-gui/unittest/treeviewtest.cpp Examining data/elektra-0.8.14/src/tools/qt-gui/unittest/treeviewtest.hpp Examining data/elektra-0.8.14/src/tools/race/race.c Examining data/elektra-0.8.14/tests/abi/testabi_key.c Examining data/elektra-0.8.14/tests/abi/testabi_ks.c Examining data/elektra-0.8.14/tests/abi/testabi_meta.c Examining data/elektra-0.8.14/tests/abi/testabi_rel.c Examining data/elektra-0.8.14/tests/cframework/tests.c Examining data/elektra-0.8.14/tests/cframework/tests.h Examining data/elektra-0.8.14/tests/cframework/tests_internal.h Examining data/elektra-0.8.14/tests/cframework/tests_plugin.h Examining data/elektra-0.8.14/tests/ctest/test_args.c Examining data/elektra-0.8.14/tests/ctest/test_array.c Examining data/elektra-0.8.14/tests/ctest/test_backend.c Examining data/elektra-0.8.14/tests/ctest/test_internal.c Examining data/elektra-0.8.14/tests/ctest/test_key.c Examining data/elektra-0.8.14/tests/ctest/test_ks.c Examining data/elektra-0.8.14/tests/ctest/test_meta.c Examining data/elektra-0.8.14/tests/ctest/test_mount.c Examining data/elektra-0.8.14/tests/ctest/test_mountsplit.c Examining data/elektra-0.8.14/tests/ctest/test_namespace.c Examining data/elektra-0.8.14/tests/ctest/test_operation.c Examining data/elektra-0.8.14/tests/ctest/test_order.c Examining data/elektra-0.8.14/tests/ctest/test_plugin.c Examining data/elektra-0.8.14/tests/ctest/test_proposal.c Examining data/elektra-0.8.14/tests/ctest/test_size.c Examining data/elektra-0.8.14/tests/ctest/test_spec.c Examining data/elektra-0.8.14/tests/ctest/test_split.c Examining data/elektra-0.8.14/tests/ctest/test_splitget.c Examining data/elektra-0.8.14/tests/ctest/test_splitset.c Examining data/elektra-0.8.14/tests/ctest/test_trie.c Examining data/elektra-0.8.14/tests/data/data_allns.c Examining data/elektra-0.8.14/tests/data/data_copy.c Examining data/elektra-0.8.14/tests/data/data_cut.c Examining data/elektra-0.8.14/tests/data/data_dbelow.c Examining data/elektra-0.8.14/tests/data/data_escape.c Examining data/elektra-0.8.14/tests/data/data_filesys.c Examining data/elektra-0.8.14/tests/data/data_fstab-cmp.c Examining data/elektra-0.8.14/tests/data/data_fstab.c Examining data/elektra-0.8.14/tests/data/data_hosts.c Examining data/elektra-0.8.14/tests/data/data_key.c Examining data/elektra-0.8.14/tests/data/data_keyset.c Examining data/elektra-0.8.14/tests/data/data_noescape.c Examining data/elektra-0.8.14/tests/data/data_ns.c Examining data/elektra-0.8.14/tests/data/data_nscut.c Examining data/elektra-0.8.14/tests/data/data_one.c Examining data/elektra-0.8.14/tests/data/data_others.c Examining data/elektra-0.8.14/tests/data/data_passwd.c Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-death-test.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-message.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-param-test.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-printers.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-spi.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-test-part.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest-typed-test.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest_pred_impl.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest_prod.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-death-test-internal.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-filepath.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-internal.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-linked_ptr.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-param-util-generated.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-param-util.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-string.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-tuple.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-type-util.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-all.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-death-test.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-filepath.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-internal-inl.h Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-printers.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-test-part.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-typed-test.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc Examining data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest_main.cc Examining data/elektra-0.8.14/tests/gtest-framework/gtest/gtest-elektra.h Examining data/elektra-0.8.14/tests/kdb/testkdb_nested.cpp Examining data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp FINAL RESULTS: data/elektra-0.8.14/src/plugins/resolver/resolver.c:812: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(pk->filename, pk->filemode); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:224:2: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat (p->filename, p->path, KDB_MAX_PATH_LENGTH); data/elektra-0.8.14/tests/cframework/tests.c:153:2: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(bufferorg, filename, BUFFER_LENGTH); data/elektra-0.8.14/tests/cframework/tests.c:154:2: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(bufferorg, " gen: ", BUFFER_LENGTH); data/elektra-0.8.14/tests/cframework/tests.c:155:2: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(bufferorg, genfilename, BUFFER_LENGTH); data/elektra-0.8.14/tests/cframework/tests.c:392:2: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "/number" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:394:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/description" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:396:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/ingroup" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:399:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/module" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:402:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/file" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:405:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/line" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:408:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/reason" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:411:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/mountpoint" , sizeof(buffer) -1); data/elektra-0.8.14/tests/cframework/tests.c:414:21: [5] (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 high; the length parameter appears to be a constant, instead of computing the number of characters left. buffer[12] = '\0'; strncat(buffer, "/configfile" , sizeof(buffer) -1); data/elektra-0.8.14/benchmarks/cmp.c:77:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(str2, str1); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:296:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (inputFilename, argv[argc - 1]); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:301: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 (cmakeCacheFilename, argv[1]); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:379: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 (©FilenameData[1], filenameInElektra); data/elektra-0.8.14/src/libelektra/array.c:79:6: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(baseName, ELEKTRA_LONG_LONG_F, oldIndex) != 1) data/elektra-0.8.14/src/libelektra/array.c:129:6: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. if (snprintf (&newName[index], ELEKTRA_MAX_ARRAY_SIZE, data/elektra-0.8.14/src/libelektra/internal.c:372:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buffer, data/elektra-0.8.14/src/libelektra/internal.c:404:18: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. int const ret = vsnprintf(buffer, data/elektra-0.8.14/src/libelektra/keyname.c:655: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(cursor,key->key+userSize); data/elektra-0.8.14/src/libelektra/keyname.c:656:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). } else strcpy(cursor,key->key); data/elektra-0.8.14/src/libelektra/keyset.c:1034: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1042: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1050: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1058: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1066: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1640: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 (newname+ELEKTRA_MAX_NAMESPACE_SIZE-1, name); // name starts with / data/elektra-0.8.14/src/libelektra/keyset.c:1722: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1753:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1762: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1772: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/keyset.c:1782: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 (newname+6, name); data/elektra-0.8.14/src/libelektra/mount.c:298:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "spec%s", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:304:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "dir%s", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:310:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "user%s", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:316:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "system%s", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:339:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "dir%s/", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:346:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "user%s/", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:353:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "system%s/", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/mount.c:372:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(mountpoint, "%s/", keyName(backend->mountpoint)); data/elektra-0.8.14/src/libelektra/split.c:502:12: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if (name) strcat(warningMsg, name); data/elektra-0.8.14/src/libelektra/split.c:505:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(warningMsg, keyName(curHandle->mountpoint)); data/elektra-0.8.14/src/libelektra/split.c:507:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(warningMsg, keyString(curHandle->mountpoint)); data/elektra-0.8.14/src/libelektra/split.c:509:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(warningMsg, msg); data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:367:16: [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. # warning Your system does not provide clearenv, this might be a security problem data/elektra-0.8.14/src/libloader/dl.c:72:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (moduleName, name); data/elektra-0.8.14/src/libloader/dl.c:73:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (moduleName, elektraPluginPostfix); data/elektra-0.8.14/src/plugins/augeas/augeas.c:94:4: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, format, augeasError, line, character, message); data/elektra-0.8.14/src/plugins/augeas/augeas.c:120:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (newName, keyName (key)); data/elektra-0.8.14/src/plugins/augeas/augeas.c:123:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (newName, baseName); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:149: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(compareTo, keyString(key)); data/elektra-0.8.14/src/plugins/fstab/fstab.c:54: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(fsname,fstabEntry->mnt_type); data/elektra-0.8.14/src/plugins/fstab/fstab.c:57: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(fsname,fstabEntry->mnt_dir); data/elektra-0.8.14/src/plugins/glob/glob.c:90:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (newstring, keyName (parentKey)); data/elektra-0.8.14/src/plugins/glob/glob.c:91:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (newstring, keyString (k)); data/elektra-0.8.14/src/plugins/iconv/testmod_iconv.c:145:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (*str, newstr); data/elektra-0.8.14/src/plugins/jni/jni.c:253:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(classpath, classpatharg); data/elektra-0.8.14/src/plugins/jni/jni.c:254:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(classpath, keyString(k)); data/elektra-0.8.14/src/plugins/lua/lua.cpp:11:15: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # error Build system error, SWIG_TYPE_TABLE is not defined data/elektra-0.8.14/src/plugins/mathcheck/floathelper.c:44:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer, string); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:248:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(searchKey, keyName(parentKey)); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:250:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(searchKey, subString); data/elektra-0.8.14/src/plugins/network/network.c:104:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errmsg, keyName(cur)); data/elektra-0.8.14/src/plugins/network/network.c:106:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errmsg, keyValue(cur)); data/elektra-0.8.14/src/plugins/network/network.c:108:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errmsg, gaimsg); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_str.h:141:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(dest->str + dest->len, dest->size - dest->len, format, args_copy); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_str.h:167:13: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. len = vsnprintf(dest->str + dest->len, dest->size - dest->len, format, args); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:380:15: [4] (buffer) vsscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. items = vsscanf(v, format, args); data/elektra-0.8.14/src/plugins/null/null.c:100:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (n, keyValue(k)); data/elektra-0.8.14/src/plugins/path/path.c:94:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errmsg, keyName(cur)); data/elektra-0.8.14/src/plugins/path/path.c:96:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errmsg, keyValue(cur)); data/elektra-0.8.14/src/plugins/python/python.cpp:11:15: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # error Build system error, SWIG_TYPE_TABLE is not defined data/elektra-0.8.14/src/plugins/python/testmod_python.c:26: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(filebuf, PYTHON_PLUGIN_NAME); data/elektra-0.8.14/src/plugins/python/testmod_python.c:27:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(filebuf, "/"), filename); data/elektra-0.8.14/src/plugins/python/testmod_python.c:35:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(filebuf, "/"), PYTHON_PLUGIN_NAME); data/elektra-0.8.14/src/plugins/python/testmod_python.c:38:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(filebuf, "/"), filename); data/elektra-0.8.14/src/plugins/resolver/filename.c:33:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buffer, filename); data/elektra-0.8.14/src/plugins/resolver/filename.c:69:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. size_t len = sprintf (where, "%s", filename); data/elektra-0.8.14/src/plugins/resolver/filename.c:87:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->dirname, dirname(dup)); data/elektra-0.8.14/src/plugins/resolver/filename.c:100:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, KDB_DB_SYSTEM); data/elektra-0.8.14/src/plugins/resolver/filename.c:102:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/filename.c:116:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, result); data/elektra-0.8.14/src/plugins/resolver/filename.c:118:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/filename.c:191: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 (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/filename.c:220:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->dirname, keyName(canonify) data/elektra-0.8.14/src/plugins/resolver/filename.c:224:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->dirname, "/" KDB_DB_USER); data/elektra-0.8.14/src/plugins/resolver/filename.c:338:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->dirname, KDB_DB_HOME "/"); data/elektra-0.8.14/src/plugins/resolver/filename.c:339:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->dirname, keyName(canonify) data/elektra-0.8.14/src/plugins/resolver/filename.c:343:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->dirname, "/" KDB_DB_USER); data/elektra-0.8.14/src/plugins/resolver/filename.c:357:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->dirname, KDB_DB_HOME); data/elektra-0.8.14/src/plugins/resolver/filename.c:360:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->dirname, "/" KDB_DB_USER); data/elektra-0.8.14/src/plugins/resolver/filename.c:373: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 (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/filename.c:377: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 (p->filename, KDB_DB_SPEC); data/elektra-0.8.14/src/plugins/resolver/filename.c:379:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/filename.c:401:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, p->dirname); data/elektra-0.8.14/src/plugins/resolver/filename.c:406:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/resolver/resolver.c:101:16: [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. return &pks->system; data/elektra-0.8.14/src/plugins/resolver/resolver.c:126:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. resolverCloseOne(&p->system); data/elektra-0.8.14/src/plugins/resolver/resolver.c:295: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(buffer, strerror(errno)); data/elektra-0.8.14/src/plugins/resolver/resolver.c:351:98: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (needsMapping(testKey, errorKey) && ELEKTRA_PLUGIN_FUNCTION(resolver, filename)(testKey, &p->system, errorKey) == -1) data/elektra-0.8.14/src/plugins/resolver/resolver.c:387:20: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. resolverInit (&p->system, path); data/elektra-0.8.14/src/plugins/resolver/resolver.c:392:5: [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. p->system.filemode = 0644; data/elektra-0.8.14/src/plugins/resolver/resolver.c:393:5: [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. p->system.dirmode = 0755; data/elektra-0.8.14/src/plugins/resolver/resolver.c:484:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errorText, buffer); data/elektra-0.8.14/src/plugins/resolver/resolver.c:505:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errorText, pk->filename); data/elektra-0.8.14/src/plugins/resolver/resolver.c:588:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errorText, pathname); data/elektra-0.8.14/src/plugins/resolver/resolver.c:628:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (errorText, pk->filename); data/elektra-0.8.14/src/plugins/resolver/resolver.h:67: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. resolverHandle system; data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:65:25: [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. succeed_if (!strcmp(h->system.path, "elektra.ecf"), "path not set correctly"); data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:66:25: [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. succeed_if (!strcmp(h->system.filename, KDB_DB_SYSTEM "/elektra.ecf"), "resulting filename not correct"); data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:75:25: [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. succeed_if (!strcmp(h->system.path, "elektra.ecf"), "path not set correctly"); data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:76:25: [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. succeed_if (!strcmp(h->system.filename, KDB_DB_SYSTEM "/elektra.ecf"), "resulting filename not correct"); data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:154:25: [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. succeed_if (!strcmp(h->system.dirname, KDB_DB_SYSTEM), data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:192:26: [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. succeed_if (!strncmp(h->system.tempfile, KDB_DB_SYSTEM "/elektra.ecf", sizeof(KDB_DB_SYSTEM)), data/elektra-0.8.14/src/plugins/syslog/syslog.c:119:31: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. Plugin *ELEKTRA_PLUGIN_EXPORT(syslog) data/elektra-0.8.14/src/plugins/syslog/syslog.h:42:31: [4] (format) syslog: If syslog's format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant format string for syslog. Plugin *ELEKTRA_PLUGIN_EXPORT(syslog); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:78: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. resolverHandle system; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:93:16: [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. return &pks->system; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:137:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:142:18: [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. else escapePath(system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:148:32: [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 filenameSize = strlen(system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:151: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 (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:151:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:152:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:156: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. + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:158:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:158:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:159:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, KDB_DB_SPEC); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:161:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:189:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, dir); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:222:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, home); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:231:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (!system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:236:18: [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. else escapePath(system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:241:32: [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 filenameSize = strlen(system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:244: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 (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:244:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:245:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:249: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. + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:251:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:251:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. strcpy (p->filename, system); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:252:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, KDB_DB_SYSTEM); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:254:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (p->filename, p->path); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:287:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. resolverInit (&p->system, path); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:288:28: [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. elektraResolveSystem(&p->system, errorKey); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:317:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. resolverClose(&ps->system); data/elektra-0.8.14/src/plugins/xmltool/kdbtools.c:230:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(tmpComment,(char *)buffer); data/elektra-0.8.14/src/plugins/xmltool/kscompare.c:68:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(returnedCommonParent,keyName(current)); data/elektra-0.8.14/src/tools/gen/template/template.h:224:2: [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. snprintf(s, 99, ELEKTRA_LONG_F, n); data/elektra-0.8.14/src/tools/gen/template/template.h:227:2: [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. snprintf(s, 99, ELEKTRA_LONG_LONG_F, n); data/elektra-0.8.14/src/tools/gen/template/template.h:233:2: [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. snprintf(s, 99, ELEKTRA_UNSIGNED_LONG_F, n); data/elektra-0.8.14/src/tools/gen/template/template.h:236:2: [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. snprintf(s, 99, ELEKTRA_UNSIGNED_LONG_LONG_F, n); data/elektra-0.8.14/src/tools/qt-gui/src/main.cpp:29:28: [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. QString locale = QLocale::system().name(); data/elektra-0.8.14/tests/cframework/tests.c:84:2: [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. snprintf (tempHomeConf, tempHomeLen, "%s/elektra-test.XXXXXX/" KDB_DB_USER, tmpvar); data/elektra-0.8.14/tests/cframework/tests.c:230:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(file, srcdir); data/elektra-0.8.14/tests/cframework/tests.c:232:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(file, fileName); data/elektra-0.8.14/tests/cframework/tests.h:95:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, keyName(nmmk1)); \ data/elektra-0.8.14/tests/cframework/tests.h:97:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, keyName(nmmk2)); \ data/elektra-0.8.14/tests/cframework/tests.h:113:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, keyName(smmk1)); \ data/elektra-0.8.14/tests/cframework/tests.h:115:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, keyName(smmk2)); \ data/elektra-0.8.14/tests/cframework/tests.h:153:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, s1); \ data/elektra-0.8.14/tests/cframework/tests.h:155:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(errorMsg, s2); \ data/elektra-0.8.14/tests/cframework/tests.h:173:3: [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. snprintf(errorMsg, BUFFER_LENGTH, \ data/elektra-0.8.14/tests/ctest/test_mount.c:629:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (key->key+1, name); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-death-test-internal.h:165:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(\ data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1761:20: [4] (buffer) StrNCpy: 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). inline const char* StrNCpy(char* dest, const char* src, size_t n) { data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1833:26: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ _snprintf data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1835:26: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define GTEST_SNPRINTF_ snprintf data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:139:10: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define vsnprintf _vsnprintf data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:2635:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:2654:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:2661:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, args); data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:65:3: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv("HELLO"); data/elektra-0.8.14/src/libgetenv/examples/getenv.c:16:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *c = getenv(name); data/elektra-0.8.14/src/libgetenv/examples/getenv.c:26:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *c = getenv(name); data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:644:18: [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. extern "C" char *getenv(const char *name) // throw () data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:23:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:24:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:28:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:29:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:33:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_fork.cpp:34:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:15:12: [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. EXPECT_EQ(getenv("du4Maiwi/does-not-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:25:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:26:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:35:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:36:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:47:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:48:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:59:12: [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. EXPECT_EQ(getenv("du4Maiwi/does-not-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:64:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:65:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:66:12: [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. EXPECT_EQ(getenv("du4Maiwi/does-not-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:97:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:98:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:124:12: [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. ASSERT_NE(getenv("does-exist"), static_cast<char*>(0)); data/elektra-0.8.14/src/libgetenv/tests/test_getenv.cpp:125:12: [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. EXPECT_EQ(getenv("does-exist"), std::string("hello")); data/elektra-0.8.14/src/plugins/journald/journald.c:51:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. "HOME=%s", getenv ("HOME"), data/elektra-0.8.14/src/plugins/journald/journald.c:52:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. "USER=%s", getenv ("USER"), data/elektra-0.8.14/src/plugins/journald/journald.c:66:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. "HOME=%s", getenv ("HOME"), data/elektra-0.8.14/src/plugins/journald/journald.c:67:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. "USER=%s", getenv ("USER"), data/elektra-0.8.14/src/plugins/resolver/filename.c:124:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char * configDir = getenv("XDG_CONFIG_DIRS"); data/elektra-0.8.14/src/plugins/resolver/filename.c:274:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char * home = getenv("XDG_CONFIG_HOME"); data/elektra-0.8.14/src/plugins/resolver/filename.c:299:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char * home = getenv("HOME"); data/elektra-0.8.14/src/plugins/resolver/filename.c:324:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* owner = getenv("USER"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:135:18: [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 * system = getenv("ALLUSERSPROFILE"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:214:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char * home = (char*) getenv("HOME"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:229:18: [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 * system = getenv("ALLUSERSPROFILE"); data/elektra-0.8.14/src/tools/gen/template/genopt.c:103:14: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long (argc, argv, data/elektra-0.8.14/src/tools/gen/template/genopt.c:105:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt (argc, argv, data/elektra-0.8.14/src/tools/kdb/cmdline.cpp:247:16: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt_long (argc, argv, data/elektra-0.8.14/src/tools/kdb/external.cpp:45:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *execPath = getenv("KDB_EXEC_PATH"); data/elektra-0.8.14/tests/abi/testabi_ks.c:1040:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(23); data/elektra-0.8.14/tests/abi/testabi_ks.c:1123:2: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(23); data/elektra-0.8.14/tests/cframework/tests.c:65:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmpvar = getenv ("TMPDIR"); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/gtest.h:893:39: [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. void ShuffleTests(internal::Random* random); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1799:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* const env = getenv(name); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1802:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv(name); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-internal-inl.h:311:37: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. void ShuffleRange(internal::Random* random, int begin, int end, data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-internal-inl.h:332:39: [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. inline void Shuffle(internal::Random* random, std::vector<E>* v) { data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-internal-inl.h:333:16: [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. ShuffleRange(random, 0, static_cast<int>(v->size()), v); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-internal-inl.h:801:21: [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. internal::Random* random() { return &random_; } data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:2463:47: [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. void TestCase::ShuffleTests(internal::Random* random) { data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:2464:11: [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. Shuffle(random, &test_indices_); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:4293:7: [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. random()->Reseed(random_seed_); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:4603:16: [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. ShuffleRange(random(), 0, last_death_test_case_ + 1, &test_case_indices_); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:4606:16: [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. ShuffleRange(random(), last_death_test_case_ + 1, data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:4611:34: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. test_cases_[i]->ShuffleTests(random()); data/elektra-0.8.14/benchmarks/benchmarks.c:36: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 [KEY_NAME_LENGTH + 1]; data/elektra-0.8.14/benchmarks/createkeys.c:18:13: [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). num_dir = atoi(argv[1]); data/elektra-0.8.14/benchmarks/createkeys.c:19:13: [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). num_key = atoi(argv[2]); data/elektra-0.8.14/benchmarks/large.c: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 name [KEY_NAME_LENGTH + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:223: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 target [len * sizeof (char) + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:295: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 inputFilename [strlen (argv[argc - 1]) + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:300: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 cmakeCacheFilename [strlen (argv[1]) + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:311:17: [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 * input = fopen (inputFilename, "r"); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:317: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 * output = fopen (TEMP_FILENAME, "w+"); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:378: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 copyFilenameData[strlen (filenameInElektra) + 2]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:451: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). input = fopen (cmakeCacheFilename, "r"); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:457: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 [CmakecacheFileReadBuffer]; data/elektra-0.8.14/examples/functional.c:93:38: [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). int sum_helper (Key *check) { return atoi(keyValue(check)); } data/elektra-0.8.14/examples/functional.c:94:36: [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). int below_30 (Key *check) { return atoi(keyValue(check))<30; } data/elektra-0.8.14/examples/functional.c:95:34: [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). int find_80 (Key *check) { int n=atoi(keyValue(check)); return n>70?-1:1; } data/elektra-0.8.14/examples/kdbget_error.c:87: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("warnings/#00/description")]; data/elektra-0.8.14/examples/kdbget_error.c:91:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&buffer[0],"warnings/#0%i/description",warn_iter); data/elektra-0.8.14/examples/kdbget_error.c:93:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&buffer[0],"warnings/#%i/description",warn_iter); data/elektra-0.8.14/examples/keyCopy.c:32: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 (value, keyValue(k), size); data/elektra-0.8.14/examples/namespace.c:54: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 s[100]; data/elektra-0.8.14/src/bindings/cpp/benchmarks/benchmark_thread.cpp:1286:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[1024]; data/elektra-0.8.14/src/bindings/cpp/include/kdb.hpp:39: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). void open(Key & errorKey); data/elektra-0.8.14/src/bindings/cpp/include/kdb.hpp:61:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(errorKey); data/elektra-0.8.14/src/bindings/cpp/include/kdb.hpp:76:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(errorKey); data/elektra-0.8.14/src/bindings/cpp/include/kdb.hpp:104:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inline void KDB::open (Key &errorKey) data/elektra-0.8.14/src/bindings/cpp/include/kdbplugin.hpp:41:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). inline static int open(ckdb::Plugin *handle, ckdb::Key *errorKey, Builder builder = defaultBuilder) data/elektra-0.8.14/src/include/kdbprivate.h:396:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *text[KDB_MAX_UCHAR]; /*!< Text identifying this node */ data/elektra-0.8.14/src/libelektra/exportsymbols.c:12:12: [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 *f = fopen("exported_symbols.h", "w"); data/elektra-0.8.14/src/libelektra/exportsymbols.c:48:6: [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). f = fopen("exported_symbols.c", "w"); data/elektra-0.8.14/src/libelektra/internal.c:86: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 (array1, array2, size * sizeof(Key*)); data/elektra-0.8.14/src/libelektra/internal.c:284:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (tmp) memcpy (tmp, s, l); data/elektra-0.8.14/src/libelektra/internal.c:307:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (tmp) memcpy (tmp, s, l); data/elektra-0.8.14/src/libelektra/internal.c:550:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dp, ".."); data/elektra-0.8.14/src/libelektra/internal.c:697:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dp, "\\%"); data/elektra-0.8.14/src/libelektra/internal.c:704:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dp, "\\."); data/elektra-0.8.14/src/libelektra/internal.c:711:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dp, "\\.."); data/elektra-0.8.14/src/libelektra/keyname.c:545: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(key->key, newName, key->keySize); data/elektra-0.8.14/src/libelektra/keyname.c:872: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 (key->key + key->keySize - len - 1, escaped, len); data/elektra-0.8.14/src/libelektra/keyname.c:1006:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d,p,size); data/elektra-0.8.14/src/libelektra/keyname.c:1105: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 (key->key + key->keySize, data/elektra-0.8.14/src/libelektra/keyset.c:1023: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 newname[length*2]; data/elektra-0.8.14/src/libelektra/keyset.c:1633: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 newname[maxSize*2]; // buffer for all new names (namespace + cascading key name) data/elektra-0.8.14/src/libelektra/keyset.c:1677: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 [ELEKTRA_MAX_PREFIX_SIZE + ELEKTRA_MAX_ARRAY_SIZE] data/elektra-0.8.14/src/libelektra/keyset.c:1683:2: [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 (buffer, "namespace/#0"); data/elektra-0.8.14/src/libelektra/keyset.c:1688:2: [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 (buffer, "fallback/"); data/elektra-0.8.14/src/libelektra/keyset.c:1715: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 newname[length*2]; data/elektra-0.8.14/src/libelektra/keyvalue.c:449: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(returnedBinary,key->data.v,key->dataSize); data/elektra-0.8.14/src/libelektra/keyvalue.c:552: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(key->data.v,newBinary,key->dataSize); data/elektra-0.8.14/src/libelektra/meta.c:492:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:579:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:765:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:859:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:945:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:1031:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_LEN_INT]; data/elektra-0.8.14/src/libelektra/meta.c:1077: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). if (kam) aorder = atoi (keyString (kam)); data/elektra-0.8.14/src/libelektra/meta.c:1078: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). if (kbm) border = atoi (keyString (kbm)); data/elektra-0.8.14/src/libelektra/mount.c:284: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(mountpoint, "system/elektra/"); data/elektra-0.8.14/src/libelektra/proposal.c:126: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 newName[ELEKTRA_MAX_ARRAY_SIZE]; data/elektra-0.8.14/src/libelektra/split.c:500:2: [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(warningMsg, "drop key "); data/elektra-0.8.14/src/libelektra/split.c:503:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. else strcat(warningMsg, "(no name)"); data/elektra-0.8.14/src/libelektra/split.c:504:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(warningMsg, " not belonging to "); data/elektra-0.8.14/src/libelektra/split.c:506:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(warningMsg, " with name "); data/elektra-0.8.14/src/libelektra/split.c:508:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(warningMsg, " because "); data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:151: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 x[100]; data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:152: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(x, "user/env/override/hello%d_%d", i, i); data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:173:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[1024]; data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:202: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 x[100]; data/elektra-0.8.14/src/libgetenv/benchmarks/benchmark_getenv.cpp:203: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(x, "hello%d_%d", i, i); data/elektra-0.8.14/src/libgetenv/examples/getenv.c:13: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 name[len+1]; data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:378:38: [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). std::chrono::milliseconds::rep v = atoi(keyString(k)); data/elektra-0.8.14/src/libloader/dl.c:71:2: [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 (moduleName, "libelektra-"); data/elektra-0.8.14/src/libtools/include/plugin.hpp:149: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). int open (kdb::Key & errorKey); data/elektra-0.8.14/src/libtools/src/plugin.cpp:327: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 Plugin::open (kdb::Key & errorKey) data/elektra-0.8.14/src/plugins/augeas/augeas.c:400:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fh = fopen (keyString (parentKey), "r"); data/elektra-0.8.14/src/plugins/augeas/augeas.c:480:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fh = fopen (keyValue (parentKey), "w+"); data/elektra-0.8.14/src/plugins/augeas/testmod_augeas.c:262: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 errorMessage[150]; data/elektra-0.8.14/src/plugins/ccode/ccode.h:33: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 encode [256]; data/elektra-0.8.14/src/plugins/ccode/ccode.h:34: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 decode [256]; data/elektra-0.8.14/src/plugins/ccode/testmod_ccode.c:48: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[1000]; data/elektra-0.8.14/src/plugins/ccode/testmod_ccode.c:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1000]; data/elektra-0.8.14/src/plugins/ccode/testmod_ccode.c:82: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[1000]; data/elektra-0.8.14/src/plugins/ccode/testmod_ccode.c:124: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[1000]; data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:91:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). result = atol(s1)-atol(s2); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:91:22: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). result = atol(s1)-atol(s2); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:41: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 keyBuffer[64], ivBuffer[64]; data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:107: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 cipherBuffer[ELEKTRA_CRYPTO_GCRY_BLOCKSIZE]; data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:108: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 contentBuffer[ELEKTRA_CRYPTO_GCRY_BLOCKSIZE]; data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:154: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(contentBuffer, &header, sizeof(struct ElektraCryptoHeader)); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:162: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(output, cipherBuffer, ELEKTRA_CRYPTO_GCRY_BLOCKSIZE); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:173:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(contentBuffer, (value + i), contentLen); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:182:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((output + i + ELEKTRA_CRYPTO_GCRY_BLOCKSIZE), cipherBuffer, ELEKTRA_CRYPTO_GCRY_BLOCKSIZE); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:200: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 cipherBuffer[ELEKTRA_CRYPTO_GCRY_BLOCKSIZE]; data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:201: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 contentBuffer[ELEKTRA_CRYPTO_GCRY_BLOCKSIZE]; data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:230: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(cipherBuffer, value, ELEKTRA_CRYPTO_GCRY_BLOCKSIZE); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:238: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(&header, contentBuffer, sizeof(struct ElektraCryptoHeader)); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:244:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cipherBuffer, (value + i), ELEKTRA_CRYPTO_GCRY_BLOCKSIZE); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:252:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((output + i - ELEKTRA_CRYPTO_GCRY_BLOCKSIZE), contentBuffer, ELEKTRA_CRYPTO_GCRY_BLOCKSIZE); data/elektra-0.8.14/src/plugins/crypto/testmod_crypto.c:143: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 content[64] = ""; data/elektra-0.8.14/src/plugins/crypto/testmod_crypto.c:178: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 content[64]; data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:103: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[INTSTR_MAX]; data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:118:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "rb"); data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:163: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[INTSTR_MAX]; data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:351:21: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fixColumnCount = atol(keyString(fixColumnCountKey)); data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:392:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/doc/doc.c:52:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (kg) data->global = atoi(keyString(kg)); data/elektra-0.8.14/src/plugins/doc/doc.c:117:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (keyString(parentKey), "r"); data/elektra-0.8.14/src/plugins/error/error.c:59:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). elektraTriggerWarnings (atoi(keyString(warning)), parentKey, "from error plugin in kdbOpen"); data/elektra-0.8.14/src/plugins/error/error.c:67:25: [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). elektraTriggerError (atoi(keyString(error)), parentKey, "from error plugin in kdbOpen"); data/elektra-0.8.14/src/plugins/error/error.c:114:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). elektraTriggerWarnings(atoi(keyString(meta)), parentKey, "from error plugin in kdbSet"); data/elektra-0.8.14/src/plugins/error/error.c:120:25: [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). elektraTriggerError (atoi(keyString(meta)), parentKey, "from error plugin in kdbSet"); data/elektra-0.8.14/src/plugins/filecheck/filecheck.c:189: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 outBuffer[LINE_BYTES]; data/elektra-0.8.14/src/plugins/filecheck/filecheck.c:212:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "rb"); data/elektra-0.8.14/src/plugins/fstab/fstab.c:51: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(fsname,"swap%02d",*swapIndex); data/elektra-0.8.14/src/plugins/fstab/fstab.c:136: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 fsname[KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/src/plugins/fstab/fstab.c:137: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[MAX_NUMBER_SIZE]; data/elektra-0.8.14/src/plugins/fstab/fstab.c:243:24: [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). fstabEntry.mnt_freq=atoi((char *)keyValue(key)); data/elektra-0.8.14/src/plugins/fstab/fstab.c:245:26: [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). fstabEntry.mnt_passno=atoi((char *)keyValue(key)); data/elektra-0.8.14/src/plugins/hexcode/hexcode.h:34: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 hd[256]; data/elektra-0.8.14/src/plugins/hexcode/testmod_hexcode.c:34: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[1000]; data/elektra-0.8.14/src/plugins/hexcode/testmod_hexcode.c:54: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[1000]; data/elektra-0.8.14/src/plugins/hexcode/testmod_hexcode.c:84: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[1000]; data/elektra-0.8.14/src/plugins/hosts/hosts-get.c:97: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[MAX_ORDER_SIZE]; data/elektra-0.8.14/src/plugins/hosts/hosts-get.c:207: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 readBuffer [HOSTS_KDB_BUFFER_SIZE]; data/elektra-0.8.14/src/plugins/hosts/hosts-get.c:218:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (keyValue(parentKey), "r"); data/elektra-0.8.14/src/plugins/hosts/hosts-set.c:125:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/iconv/iconv.c:151: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(*string,converted,*inputOutputByteSize); data/elektra-0.8.14/src/plugins/iconv/iconv.c:198:4: [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(convertedData,keyString(cur),keyGetValueSize(cur)); data/elektra-0.8.14/src/plugins/iconv/iconv.c:216:4: [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(convertedData,keyString(meta),keyGetValueSize(meta)); data/elektra-0.8.14/src/plugins/iconv/iconv.c:249:4: [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(convertedData,keyString(cur),keyGetValueSize(cur)); data/elektra-0.8.14/src/plugins/iconv/iconv.c:268:4: [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(convertedData,keyString(meta),keyGetValueSize(meta)); data/elektra-0.8.14/src/plugins/ini/ini.c:105:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/elektra-0.8.14/src/plugins/ini/ini.c:125:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/elektra-0.8.14/src/plugins/ini/ini.c:237:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fh = fopen (keyString (parentKey), "r"); data/elektra-0.8.14/src/plugins/ini/ini.c:408:6: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if(atol(keyString(keyGetMeta(retKey, "order"))) == *index) data/elektra-0.8.14/src/plugins/ini/ini.c:428:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fh = fopen(keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:66:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[INI_MAX_LINE]; data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:70:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char section[MAX_SECTION] = ""; data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prev_name[MAX_NAME] = ""; data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:177:12: [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 = fopen(filename, "r"); data/elektra-0.8.14/src/plugins/line/line.c:85:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (keyString(parentKey), "r"); data/elektra-0.8.14/src/plugins/line/line.c:126:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/lineendings/lineendings.c:46:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "rb"); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:298: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 val1[MAX_CHARS_DOUBLE]; data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:299: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 val2[MAX_CHARS_DOUBLE]; data/elektra-0.8.14/src/plugins/mathcheck/testmod_mathcheck.c:76: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[24]; data/elektra-0.8.14/src/plugins/network/network.c:103: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, "name: "); data/elektra-0.8.14/src/plugins/network/network.c:105:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errmsg, " value: "); data/elektra-0.8.14/src/plugins/network/network.c:107:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errmsg, " message: "); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_hash.h:169:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(n->item, item, size); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_str.h:121:4: [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(dest->str + dest->len, source, source_len * sizeof(char)); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_vector.h:157:4: [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(v->buf + pos, items, num * sizeof(Ds_VECTOR_TYPE)); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_vector.h:175:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(items, v->buf + pos, num * sizeof(Ds_VECTOR_TYPE)); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:41: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 name[Ni_KEY_SIZE]; //this node's name (set for all except root) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:542:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp = fopen(filename, "w")) != NULL) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:599:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp = fopen(filename, "r")) != NULL) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:617: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 key[Ni_KEY_SIZE] = {'\0'}; //section/key name for GetNextIdentifier data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:741:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(n->name, name, name_len * sizeof(char)); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:177: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 sval[7]; data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:186: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 * names[24] = data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:191: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 * values[24] = data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:323: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 * names[10] = data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:336: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 * values[10] = data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:402:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:410: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[1024]; data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:453:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:461: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[1024]; data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:564:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:601: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 * names[9] = data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/tests/ni.c:605: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 * values[9] = data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:197: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 sval[7]; data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:243:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:251: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[1024]; data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:295:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:303: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[1024]; data/elektra-0.8.14/src/plugins/ni/testmod_ni.c:406:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE * temp = tmpfile(); data/elektra-0.8.14/src/plugins/path/path.c:93:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errmsg, " from key: "); data/elektra-0.8.14/src/plugins/path/path.c:95:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errmsg, " with path: "); data/elektra-0.8.14/src/plugins/python/testmod_python.c:19:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filebuf[KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/src/plugins/regexstore/regexstore.cpp:117: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 [1000]; data/elektra-0.8.14/src/plugins/regexstore/regexstore.cpp:137: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 [1000]; data/elektra-0.8.14/src/plugins/resolver/contract.h:23:47: [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). KEY_FUNC, ELEKTRA_PLUGIN_FUNCTION(resolver, open), data/elektra-0.8.14/src/plugins/resolver/filename.c:32:2: [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(buffer, "system/"); data/elektra-0.8.14/src/plugins/resolver/resolver.c: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[ERROR_SIZE]; data/elektra-0.8.14/src/plugins/resolver/resolver.c:287:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buffer, "could not find a / in the pathname"); data/elektra-0.8.14/src/plugins/resolver/resolver.c:291:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (buffer, "went up to root for creating directory"); data/elektra-0.8.14/src/plugins/resolver/resolver.c:370:39: [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 ELEKTRA_PLUGIN_FUNCTION(resolver, open) data/elektra-0.8.14/src/plugins/resolver/resolver.c:482: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[ERROR_SIZE]; data/elektra-0.8.14/src/plugins/resolver/resolver.c:498: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). pk->fd = open (pk->filename, O_RDWR | O_CREAT, pk->filemode); data/elektra-0.8.14/src/plugins/resolver/resolver.c:504:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (errorText, "Opening configuration file \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:506:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\" failed, error was: \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:508:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\" "); data/elektra-0.8.14/src/plugins/resolver/resolver.c:587:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (errorText, "Could not create directory \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:589:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\", because: \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:591:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\" "); data/elektra-0.8.14/src/plugins/resolver/resolver.c:627:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (errorText, "Could not fstat to check for conflict \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:629:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\" "); data/elektra-0.8.14/src/plugins/resolver/resolver.c:630:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "because stat said: \""); data/elektra-0.8.14/src/plugins/resolver/resolver.c:632:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (errorText, "\" "); data/elektra-0.8.14/src/plugins/resolver/resolver.c:693: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). pk->fd = open (pk->filename, O_RDWR, pk->filemode); data/elektra-0.8.14/src/plugins/resolver/resolver.c:699: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). pk->fd = open (pk->filename, O_RDWR | O_CREAT, pk->filemode); data/elektra-0.8.14/src/plugins/resolver/resolver.c:938:59: [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). ELEKTRA_PLUGIN_OPEN, &ELEKTRA_PLUGIN_FUNCTION(resolver, open), data/elektra-0.8.14/src/plugins/resolver/resolver.h:75:39: [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 ELEKTRA_PLUGIN_FUNCTION(resolver, open) data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:87:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (keyString(parentKey), "r"); data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:132:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/struct/struct.cpp:30:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return Checker::open(handle, errorKey, elektra::buildChecker); data/elektra-0.8.14/src/plugins/sync/sync.c:74: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). int fd = open(configFile, O_RDWR); data/elektra-0.8.14/src/plugins/timeofday/timeofday.c:109: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 t[24]; data/elektra-0.8.14/src/plugins/timeofday/timeofday.c:158: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 t[24]; data/elektra-0.8.14/src/plugins/timeofday/timeofday.c:179: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 t[24]; data/elektra-0.8.14/src/plugins/type/type.cpp:27: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). return TC::open(handle, errorKey); data/elektra-0.8.14/src/plugins/validation/validation.c:72: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 [1000]; data/elektra-0.8.14/src/plugins/validation/validation.c:90:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer [1000]; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:182: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 dir[KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/src/plugins/xmltool/stream.c:172: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[KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/src/plugins/xmltool/stream.c:398: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 commonParent[KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/src/plugins/xmltool/testmod_xmltool.c:31: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). fout = fopen (srcdir_file("xmltool/key-gen.xml"), "w"); data/elektra-0.8.14/src/plugins/xmltool/testmod_xmltool.c:50: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). fout = fopen (srcdir_file("xmltool/key-gen.xml"), "w"); data/elektra-0.8.14/src/plugins/xmltool/testmod_xmltool.c:224: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 ret [MAX_SIZE+1]; data/elektra-0.8.14/src/plugins/xmltool/xmltool.c:81: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). FILE *fout = fopen (keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/yajl/testmod_yajl.c:614: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[20]; data/elektra-0.8.14/src/plugins/yajl/yajl_gen.c:250:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(keyString(parentKey), "w"); data/elektra-0.8.14/src/plugins/yajl/yajl_parse.c:347: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 fileData[65536]; data/elektra-0.8.14/src/plugins/yajl/yajl_parse.c:349:22: [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 * fileHandle = fopen(keyString(parentKey), "r"); data/elektra-0.8.14/src/tools/gen/template/template.h:220: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:223: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:226: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:229: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:232: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:235: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:238: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:241: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:244: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:247: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 s[100]; data/elektra-0.8.14/src/tools/gen/template/template.h:250: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 s[100]; data/elektra-0.8.14/src/tools/kdb/external.cpp:135: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 * const argv [3] = {const_cast<char*>(man), data/elektra-0.8.14/src/tools/race/race.c:19: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[4096]; data/elektra-0.8.14/src/tools/race/race.c:22: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(buffer, "user/test/race/keys/%d/%lu", pid, tid); data/elektra-0.8.14/src/tools/race/race.c:75:18: [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). int num_procs = atoi(argv[1]); data/elektra-0.8.14/src/tools/race/race.c:76: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). int num_threads = atoi(argv[2]); data/elektra-0.8.14/src/tools/race/race.c:77:21: [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). int num_barriers = atoi(argv[3]); data/elektra-0.8.14/tests/abi/testabi_key.c:415: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 ret [1000]; data/elektra-0.8.14/tests/abi/testabi_key.c:651: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 ret [1000]; data/elektra-0.8.14/tests/abi/testabi_key.c:928: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 ret [1000]; data/elektra-0.8.14/tests/abi/testabi_key.c:1130: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 ret [1000]; data/elektra-0.8.14/tests/abi/testabi_key.c:1711: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 data[10]; data/elektra-0.8.14/tests/abi/testabi_key.c:2349: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 [500]; data/elektra-0.8.14/tests/abi/testabi_key.c:2457: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 [500]; data/elektra-0.8.14/tests/abi/testabi_ks.c:1079: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[1000]; data/elektra-0.8.14/tests/abi/testabi_ks.c:1927:38: [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). int sum_helper (Key *check) { return atoi(keyValue(check)); } data/elektra-0.8.14/tests/abi/testabi_ks.c:1928:36: [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). int below_30 (Key *check) { return atoi(keyValue(check))<30; } data/elektra-0.8.14/tests/abi/testabi_ks.c:1929:34: [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). int find_80 (Key *check) { int n=atoi(keyValue(check)); return n>70?-1:1; } data/elektra-0.8.14/tests/abi/testabi_meta.c:228: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 (value, keyValue(k), size); data/elektra-0.8.14/tests/cframework/tests.c:25:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file [KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/tests/cframework/tests.c:26:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char srcdir [KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/tests/cframework/tests.c:94: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 (tmpfilename); data/elektra-0.8.14/tests/cframework/tests.c:143: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 bufferorg [BUFFER_LENGTH + 1]; data/elektra-0.8.14/tests/cframework/tests.c:144: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 buffergen [BUFFER_LENGTH + 1]; data/elektra-0.8.14/tests/cframework/tests.c:149: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). forg = fopen (filename, "r"); data/elektra-0.8.14/tests/cframework/tests.c:150: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). fgen = fopen (genfilename, "r"); data/elektra-0.8.14/tests/cframework/tests.c:202: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 genfilename [KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/tests/cframework/tests.c:210:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (genfilename, "-gen"); data/elektra-0.8.14/tests/cframework/tests.c:213:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (genfilename, ".xml"); data/elektra-0.8.14/tests/cframework/tests.c:216:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (genfilename, ".txt"); data/elektra-0.8.14/tests/cframework/tests.c:219:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat (genfilename, ".c"); data/elektra-0.8.14/tests/cframework/tests.c:383:18: [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). int nrWarnings = atoi(keyString(metaWarnings)); data/elektra-0.8.14/tests/cframework/tests.h:92: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 errorMsg [BUFFER_LENGTH]; \ data/elektra-0.8.14/tests/cframework/tests.h:94:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(errorMsg, "key name "); \ data/elektra-0.8.14/tests/cframework/tests.h:96:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errorMsg, " is not equal "); \ data/elektra-0.8.14/tests/cframework/tests.h:110: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 errorMsg [BUFFER_LENGTH]; \ data/elektra-0.8.14/tests/cframework/tests.h:112:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(errorMsg, "key value "); \ data/elektra-0.8.14/tests/cframework/tests.h:114:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errorMsg, " is not equal "); \ data/elektra-0.8.14/tests/cframework/tests.h:150:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorMsg [BUFFER_LENGTH]; \ data/elektra-0.8.14/tests/cframework/tests.h:152:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(errorMsg, "string \""); \ data/elektra-0.8.14/tests/cframework/tests.h:154:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errorMsg, "\" is not equal \""); \ data/elektra-0.8.14/tests/cframework/tests.h:171: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 errorMsg [BUFFER_LENGTH]; \ data/elektra-0.8.14/tests/ctest/test_internal.c:53: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 charSeq [5]; data/elektra-0.8.14/tests/ctest/test_internal.c:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dest [2000]; data/elektra-0.8.14/tests/ctest/test_internal.c:129:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dest[2000]; data/elektra-0.8.14/tests/ctest/test_key.c:28: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[20]; data/elektra-0.8.14/tests/ctest/test_key.c:406: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 [500]; data/elektra-0.8.14/tests/ctest/test_key.c:407: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 [500]; data/elektra-0.8.14/tests/ctest/test_key.c:454: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 [500]; data/elektra-0.8.14/tests/ctest/test_key.c:621: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 fullroot [KDB_MAX_PATH_LENGTH]; data/elektra-0.8.14/tests/ctest/test_key.c:689: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 ret [1000]; data/elektra-0.8.14/tests/ctest/test_key.c:737: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 ret [1000]; data/elektra-0.8.14/tests/ctest/test_key.c:830: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 ret [1000]; data/elektra-0.8.14/tests/ctest/test_meta.c:81: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 ret[10]; data/elektra-0.8.14/tests/ctest/test_order.c:223:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (solutioncopy, solution, size*sizeof(struct Key*)); data/elektra-0.8.14/tests/ctest/test_size.c:10: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[NAME_SIZE]; data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1773: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). return fopen(path, mode); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-death-test.cc:314: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[256]; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-death-test.cc:730: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 executable_path[_MAX_PATH + 1]; // NOLINT data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-death-test.cc:1009:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). const int cwd_fd = open(".", O_RDONLY); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-filepath.cc:107: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-filepath.cc:110: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 cwd[GTEST_PATH_MAX_ + 1] = { '\0' }; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:111:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). const int fd = open("/proc/self/as", O_RDONLY); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:441:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, regex, len); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:518:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_dir_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:519:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_file_path[MAX_PATH + 1] = { '\0' }; // NOLINT data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:556:29: [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). const int captured_fd = mkstemp(name_template); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-printers.cc:61: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 text[5] = ""; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:844:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:847:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:1357: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 error_text[kBufSize] = { '\0' }; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:1441: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 str[5]; // Big enough for the largest valid code point. data/elektra-0.8.14/tests/kdb/testkdb_nested.cpp:90: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). kdb.open(parent); data/elektra-0.8.14/tests/kdb/testkdb_nested.cpp:128: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). kdb.open(parent); data/elektra-0.8.14/tests/kdb/testkdb_nested.cpp:154: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). kdb.open(parent); data/elektra-0.8.14/tests/kdb/testkdb_nested.cpp:189: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). kdb.open(parent); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:208: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:252: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:341: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:372: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:411: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:438: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). kdb.open(parentKey); data/elektra-0.8.14/tests/kdb/testkdb_simple.cpp:465: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). kdb.open(parentKey); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:159:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc (input)) != EOF) data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:196:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc (input)) != EOF) data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:219:28: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fprintf (output, "%c", fgetc (input)); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:235:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (ignoreTargetStart[i])) == 0) data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:244:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(len < strlen (ignoreTargetEnd[i])) data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:247:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int j = len - strlen (ignoreTargetEnd[i]); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:249:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (ignoreTargetEnd[i])) == 0) data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:261:27: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fprintf (output, "%c", fgetc (input)); // print ")" data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:295:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char inputFilename [strlen (argv[argc - 1]) + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:300:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char cmakeCacheFilename [strlen (argv[1]) + 1]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:378:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char copyFilenameData[strlen (filenameInElektra) + 2]; data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:458:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int lenCmakecacheVar = strlen (CMAKE_CACHE_VARNAME); data/elektra-0.8.14/doc/markdownlinkconverter/markdownlinkconverter.c:478:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * out = inputFilename + strlen (CmakecacheVarValue); data/elektra-0.8.14/examples/kdbget_error.c:116:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(searchfor, keyName(iter_key), strlen(searchfor)) == 0) data/elektra-0.8.14/src/libelektra/internal.c:528:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(dp, "%"); data/elektra-0.8.14/src/libelektra/internal.c:536:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(dp, "."); data/elektra-0.8.14/src/libelektra/internal.c:682:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(dp,"%"); data/elektra-0.8.14/src/libelektra/keyhelpers.c:227:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). } else strncpy(returnedParent,key->key,parentSize); data/elektra-0.8.14/src/libelektra/keyname.c:380:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(returnedName,key->key,maxSize); data/elektra-0.8.14/src/libelektra/keyname.c:439:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(owner,newName+userLength,ownerLength); data/elektra-0.8.14/src/libelektra/keyname.c:463:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nameLen = strlen(name); data/elektra-0.8.14/src/libelektra/keyname.c:646:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cursor,key->key,userSize); data/elektra-0.8.14/src/libelektra/keyname.c:652:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cursor,keyValue(keyGetMeta(key, "owner")),ownerSize); data/elektra-0.8.14/src/libelektra/keyname.c:800:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(returned,baseName,baseSize); data/elektra-0.8.14/src/libelektra/keyname.c:849:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *escaped = elektraMalloc (strlen (baseName) * 2 + 2); data/elektra-0.8.14/src/libelektra/keyname.c:851:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (escaped); data/elektra-0.8.14/src/libelektra/keyname.c:1093:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *escaped = elektraMalloc (strlen (baseName) * 2 + 2); data/elektra-0.8.14/src/libelektra/keyset.c:1022:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen (name) + ELEKTRA_MAX_NAMESPACE_SIZE; data/elektra-0.8.14/src/libelektra/keyset.c:1033:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "spec", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1041:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "proc", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1049:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+3, "dir", 3); data/elektra-0.8.14/src/libelektra/keyset.c:1057:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "user", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1065:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname, "system",6); data/elektra-0.8.14/src/libelektra/keyset.c:1631:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t nameLength = strlen (name); data/elektra-0.8.14/src/libelektra/keyset.c:1639:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (startOfName, keyString(m), namespaceSize); data/elektra-0.8.14/src/libelektra/keyset.c:1714:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = strlen (name) + ELEKTRA_MAX_NAMESPACE_SIZE; data/elektra-0.8.14/src/libelektra/keyset.c:1721:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "spec", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1752:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "proc", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1761:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+3, "dir", 3); data/elektra-0.8.14/src/libelektra/keyset.c:1771:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname+2, "user", 4); data/elektra-0.8.14/src/libelektra/keyset.c:1781:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (newname, "system",6); data/elektra-0.8.14/src/libelektra/keyvalue.c:338:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(returnedString,key->data.c, maxSize); data/elektra-0.8.14/src/libelektra/meta.c:187:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(returnedOwner,owner,maxSize); data/elektra-0.8.14/src/libelektra/meta.c:373:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(returnedComment,comment,maxSize); data/elektra-0.8.14/src/libelektra/plugin.c:101:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*pluginName, &fullname[3], pluginNameSize); data/elektra-0.8.14/src/libelektra/plugin.c:107:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*referenceName, prefixReferenceName, sizeof (prefixReferenceName)); data/elektra-0.8.14/src/libelektra/plugin.c:108: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 (*referenceName, iter, referenceNameSize); data/elektra-0.8.14/src/libelektra/plugin.c:116:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*referenceName, prefixReferenceName, sizeof (prefixReferenceName)); data/elektra-0.8.14/src/libelektra/plugin.c:117: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 (*referenceName, &fullname[3], fullsize-3); data/elektra-0.8.14/src/libelektra/plugin.c:123:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (*pluginName, &fullname[2],fullsize-2); data/elektra-0.8.14/src/libelektra/split.c:498:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(msg) + data/elektra-0.8.14/src/libelektra/trie.c:72:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(where, keyName(key), len); data/elektra-0.8.14/src/libelektra/trie.c:128:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). trie->textlen[idx]=strlen(name); data/elektra-0.8.14/src/libelektra/trie.c:156:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). trie->textlen[idx]=strlen(trie->text[idx]); data/elektra-0.8.14/src/libelektra/trie.c:167:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). trie->children[idx]->textlen[idx2]=strlen(newname); data/elektra-0.8.14/src/libelektra/trie.c:178:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). trie->textlen[idx]=strlen(name); data/elektra-0.8.14/src/libelektra/trie.c:236:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t sublen = strlen(substr); data/elektra-0.8.14/src/libgetenv/examples/getenv.c:14:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, *env, len); data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:549:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else LOG << " orig getenv returned ("<< strlen(ret) << ") <" << ret << ">" << endl; data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:585:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). LOG << " environ returned ("<< strlen(ret) << ") <" << ret << ">" << endl; data/elektra-0.8.14/src/libgetenv/src/getenv.cpp:618:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/elektra-0.8.14/src/libloader/dl.c:67:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(name) data/elektra-0.8.14/src/plugins/augeas/augeas.c:92:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t messageSize = strlen(lens) + strlen(line) + strlen(character) + strlen(message) + strlen(format); data/elektra-0.8.14/src/plugins/augeas/augeas.c:92:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t messageSize = strlen(lens) + strlen(line) + strlen(character) + strlen(message) + strlen(format); data/elektra-0.8.14/src/plugins/augeas/augeas.c:92:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t messageSize = strlen(lens) + strlen(line) + strlen(character) + strlen(message) + strlen(format); data/elektra-0.8.14/src/plugins/augeas/augeas.c:92:75: [1] (buffer) strlen: Does not handle 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 messageSize = strlen(lens) + strlen(line) + strlen(character) + strlen(message) + strlen(format); data/elektra-0.8.14/src/plugins/augeas/augeas.c:92:93: [1] (buffer) strlen: Does not handle 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 messageSize = strlen(lens) + strlen(line) + strlen(character) + strlen(message) + strlen(format); data/elektra-0.8.14/src/plugins/augeas/augeas.c:112:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *baseName = (treePath + strlen (AUGEAS_TREE_ROOT) + 1); data/elektra-0.8.14/src/plugins/augeas/augeas.c:115:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t keyNameSize = strlen (baseName) + baseSize + 1; data/elektra-0.8.14/src/plugins/augeas/augeas.c:287:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = fwrite (value, sizeof(char), strlen (value), fh); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:124:3: [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(compareTo, rightSide+1, endPos-rightSide-1); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:255:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(leftSide, condition+startPos, len-2); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:274:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rightSide, opStr+opLen+startPos, len-1); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:320:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(condition, conditionString+startPos, endPos - startPos); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:326:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(thenexpr, conditionString+startPos, endPos - startPos); data/elektra-0.8.14/src/plugins/conditionals/conditionals.c:335:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(elseexpr, conditionString+startPos, endPos - startPos); data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:113:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(metaEncrypt == NULL || strlen(keyValue(metaEncrypt)) == 0) data/elektra-0.8.14/src/plugins/crypto/gcrypt_operations.c:208: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). if(metaEncrypted == NULL || strlen(keyValue(metaEncrypted)) == 0) data/elektra-0.8.14/src/plugins/crypto/testmod_crypto.c:203:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). succeed_if( memcmp(original, content, read) == 0, "decrypted value differs from original"); data/elektra-0.8.14/src/plugins/csvstorage/csvstorage.c:65:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = fgetc(fp)) && (!feof(fp))) data/elektra-0.8.14/src/plugins/doc/doc.c:124:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (keySetName(read, key) == -1) data/elektra-0.8.14/src/plugins/doc/doc.c:127:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keyDel (read); data/elektra-0.8.14/src/plugins/doc/doc.c:131:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keySetString(read, value); data/elektra-0.8.14/src/plugins/doc/doc.c:133:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ksAppendKey (returned, read); data/elektra-0.8.14/src/plugins/dump/dump.cpp:138:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&namebuffer[0], namesize); data/elektra-0.8.14/src/plugins/dump/dump.cpp:143:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&valuebuffer[0], valuesize); data/elektra-0.8.14/src/plugins/dump/dump.cpp:153:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&namebuffer[0], namesize); data/elektra-0.8.14/src/plugins/dump/dump.cpp:157:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&valuebuffer[0], valuesize); data/elektra-0.8.14/src/plugins/dump/dump.cpp:168:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&namebuffer[0], namesize); data/elektra-0.8.14/src/plugins/dump/dump.cpp:172:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is.read(&valuebuffer[0], valuesize); data/elektra-0.8.14/src/plugins/dump/testmod_dump.c:89:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). succeed_if (kdbGet(kdb,read,keyNew("user/tests/dump",KEY_END),KDB_O_DEL) >= 0, "could not get keys"); data/elektra-0.8.14/src/plugins/dump/testmod_dump.c:93:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). compare_keyset (read, ks, 0, 0); data/elektra-0.8.14/src/plugins/dump/testmod_dump.c:107:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ksDel (read); data/elektra-0.8.14/src/plugins/enum/enum.c:77:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, validValues+start, end-start); data/elektra-0.8.14/src/plugins/hosts/hosts-get.c:89:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*token, line + start, tokenSize); data/elektra-0.8.14/src/plugins/hosts/hosts-get.c:113:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t commentStartLen = strlen(commentStart); data/elektra-0.8.14/src/plugins/hosts/keymetaformatting.c:118:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lineLen = strlen (line); data/elektra-0.8.14/src/plugins/iconv/testmod_iconv.c:143:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *len = strlen (newstr)+1; data/elektra-0.8.14/src/plugins/ini/ini.c:60:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buffer = malloc (keyGetValueSize(target) + strlen (line) + 1); data/elektra-0.8.14/src/plugins/ini/ini.c:64:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (buffer, "\n"); data/elektra-0.8.14/src/plugins/ini/ini.c:65:2: [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 (buffer, line, strlen (line)); data/elektra-0.8.14/src/plugins/ini/ini.c:65:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (buffer, line, strlen (line)); data/elektra-0.8.14/src/plugins/ini/ini.c:170:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t commentSize = strlen (comment) + 1; data/elektra-0.8.14/src/plugins/ini/ini.c:178:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (handle->collectedComment, comment, commentSize); data/elektra-0.8.14/src/plugins/ini/ini.c:182:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t newCommentSize = strlen (handle->collectedComment) + commentSize + 1; data/elektra-0.8.14/src/plugins/ini/ini.c:187:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (handle->collectedComment, "\n"); data/elektra-0.8.14/src/plugins/ini/ini.c:188:3: [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 (handle->collectedComment, comment, newCommentSize); data/elektra-0.8.14/src/plugins/ini/ini.c:354: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). char *buffer = malloc(strlen(keyName(key)) - strlen(keyName(section))); data/elektra-0.8.14/src/plugins/ini/ini.c:354:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buffer = malloc(strlen(keyName(key)) - strlen(keyName(section))); data/elektra-0.8.14/src/plugins/ini/ini.c:356:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for(char *ptr = (char *)keyName(key)+strlen(keyName(section))+1; *ptr; ++ptr) data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:26: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). char* p = s + strlen(s); data/elektra-0.8.14/src/plugins/ini/inih-r29/inih.c:56:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest, src, size); data/elektra-0.8.14/src/plugins/keytometa/keytometa.c:94:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *buffer = malloc (keyGetValueSize(existingMeta) + strlen (line) + 1); data/elektra-0.8.14/src/plugins/keytometa/keytometa.c:98:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (buffer, "\n"); data/elektra-0.8.14/src/plugins/keytometa/keytometa.c:99:2: [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 (buffer, line, strlen (line)); data/elektra-0.8.14/src/plugins/keytometa/keytometa.c:99:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (buffer, line, strlen (line)); data/elektra-0.8.14/src/plugins/line/line.c:56:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (elektraArrayIncName(read) == -1) data/elektra-0.8.14/src/plugins/line/line.c:59:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keyDel (read); data/elektra-0.8.14/src/plugins/line/line.c:62:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keySetString(read, value); data/elektra-0.8.14/src/plugins/line/line.c:64:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ksAppendKey (returned, read); data/elektra-0.8.14/src/plugins/lua/lua.cpp:141:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (script == NULL || !strlen(keyString(script))) data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:235:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(subString, prefixString+start, len); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:247:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). searchKey = realloc(searchKey, len+2+strlen(keyName(parentKey))); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:249:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(searchKey, "/"); data/elektra-0.8.14/src/plugins/mathcheck/mathcheck.c:300:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(val1, keyString(cur), sizeof(val1)); data/elektra-0.8.14/src/plugins/network/network.c:99:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *errmsg = malloc (strlen (gaimsg) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/buf.c:57:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = fgetc(b->stream)) != EOF) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/buf.c:66:24: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = fgetc(b->stream)) != '\n' && c != EOF) data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/include/bohr/ds_str.h:99:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). source_len = (int)strlen(source); data/elektra-0.8.14/src/plugins/ni/nickel-1.1.0/src/nickel.c:228:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name_len = strlen(name); data/elektra-0.8.14/src/plugins/null/null.c:99:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (n, "@"); data/elektra-0.8.14/src/plugins/python/python.cpp:202:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (script == NULL || !strlen(keyString(script))) data/elektra-0.8.14/src/plugins/python/python.cpp:274:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bname_len = strlen(bname); data/elektra-0.8.14/src/plugins/python/testmod_python.c:27:10: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(filebuf, "/"), filename); data/elektra-0.8.14/src/plugins/python/testmod_python.c:35:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(filebuf, "/"), PYTHON_PLUGIN_NAME); data/elektra-0.8.14/src/plugins/python/testmod_python.c:36:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *(filebuf + strlen(filebuf) - 1) = '\0'; data/elektra-0.8.14/src/plugins/python/testmod_python.c:38:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(filebuf, "/"), filename); data/elektra-0.8.14/src/plugins/python/testmod_python.c:163:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filebuf, argv[1], sizeof(filebuf)); data/elektra-0.8.14/src/plugins/python/testmod_python.c:167:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filebuf) > strlen("python2") && !strcmp(filebuf + strlen(filebuf) data/elektra-0.8.14/src/plugins/python/testmod_python.c:167:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filebuf) > strlen("python2") && !strcmp(filebuf + strlen(filebuf) data/elektra-0.8.14/src/plugins/python/testmod_python.c:167:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filebuf) > strlen("python2") && !strcmp(filebuf + strlen(filebuf) data/elektra-0.8.14/src/plugins/python/testmod_python.c:168: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). - strlen("python2"), "python2")) data/elektra-0.8.14/src/plugins/python/testmod_python.c:170:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). srcdir_rewrite = filebuf + strlen(filebuf) - 1; data/elektra-0.8.14/src/plugins/rename/rename.c:28:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t cutPathLen = strlen(cutPath); data/elektra-0.8.14/src/plugins/rename/rename.c:29:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t keyNameLen = strlen(keyName(key)); data/elektra-0.8.14/src/plugins/rename/rename.c:32:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t afterParentKey = strlen(keyName(parentKey)) + 1; data/elektra-0.8.14/src/plugins/rename/rename.c:57:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, p, size); data/elektra-0.8.14/src/plugins/resolver/filename.c:30: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 size = strlen(filename); data/elektra-0.8.14/src/plugins/resolver/filename.c:83:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenameSize = strlen(p->filename); data/elektra-0.8.14/src/plugins/resolver/filename.c:98:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/resolver/filename.c:101:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/resolver/filename.c:117:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/resolver/filename.c:189:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenameSize = strlen(p->path) + 1; data/elektra-0.8.14/src/plugins/resolver/filename.c:369:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/resolver/filename.c:378:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/resolver/filename.c:396:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenameSize = strlen(p->dirname) data/elektra-0.8.14/src/plugins/resolver/filename.c:397:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p->path) + data/elektra-0.8.14/src/plugins/resolver/filename.c:404:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/resolver/resolver.c:297:2: [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(errorText, buffer, ERROR_SIZE-2-strlen(errorText)); data/elektra-0.8.14/src/plugins/resolver/resolver.c:297:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat(errorText, buffer, ERROR_SIZE-2-strlen(errorText)); data/elektra-0.8.14/src/plugins/resolver/resolver.c:503:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(pk->filename) + ERROR_SIZE*2 + 60); data/elektra-0.8.14/src/plugins/resolver/resolver.c:586:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(pathname) + ERROR_SIZE*2 + 60); data/elektra-0.8.14/src/plugins/resolver/resolver.c:626:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(pk->filename) + ERROR_SIZE*2 + 60); data/elektra-0.8.14/src/plugins/resolver/testmod_resolver.c:35:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int pathLen = tempHomeLen + 1 + strlen (KDB_DB_USER) + 12 + 1; data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:102:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (keySetName(read, key) == -1) data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:105:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keyDel (read); data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:109:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). keySetString(read, value); data/elektra-0.8.14/src/plugins/simpleini/simpleini.c:111:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ksAppendKey (returned, read); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:123:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(home), i; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:148:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenameSize = strlen(system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:149:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p->path) + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:156:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:156:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:160:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:190:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:191:2: [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 (p->filename, p->path, KDB_MAX_PATH_LENGTH-strlen(dir)-3); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:191:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strncat (p->filename, p->path, KDB_MAX_PATH_LENGTH-strlen(dir)-3); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:210:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(home, ""); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:223:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:241:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t filenameSize = strlen(system) data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:242:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(p->path) + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:249:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:249:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(system) + strlen(p->path) + sizeof("/") + 1; data/elektra-0.8.14/src/plugins/wresolver/wresolver.c:253:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (p->filename, "/"); data/elektra-0.8.14/src/plugins/xmltool/kdbtools.c:229:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(tmpComment,"\n"); data/elektra-0.8.14/src/plugins/yajl/testmod_yajl.c:623:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,it.current,it.size); data/elektra-0.8.14/src/plugins/yajl/testmod_yajl.c:645:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,it.current,it.size); data/elektra-0.8.14/tests/abi/testabi_key.c:898: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). succeed_if( (size == strlen(tstKeyName[i].expectedBaseName)+1), "keyGetBaseNameSize" ); data/elektra-0.8.14/tests/abi/testabi_key.c:909: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). succeed_if( (size == strlen(tstKeyName[i].expectedKeyName)+1), "keyGetKeyNameSize" ); data/elektra-0.8.14/tests/cframework/tests.c:60:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (srcdir, argv[1], sizeof(srcdir)); data/elektra-0.8.14/tests/cframework/tests.c:62:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (srcdir, BUILTIN_DATA_FOLDER, sizeof(srcdir)); data/elektra-0.8.14/tests/cframework/tests.c:71:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(tmpvar) > 2) data/elektra-0.8.14/tests/cframework/tests.c:73:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(tmpvar[strlen(tmpvar) - 1] == '/') data/elektra-0.8.14/tests/cframework/tests.c:75:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmpvar[strlen(tmpvar) - 1] = '\0'; data/elektra-0.8.14/tests/cframework/tests.c:79: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). tempHomeLen = strlen (tmpvar) + 1 + 13 + 6 + 1; data/elektra-0.8.14/tests/cframework/tests.c:81:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tempHomeConf = malloc (tempHomeLen+strlen (KDB_DB_USER)+2); data/elektra-0.8.14/tests/cframework/tests.c:152:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(bufferorg, "could not open file, orig: ", BUFFER_LENGTH); data/elektra-0.8.14/tests/cframework/tests.c:207:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (genfilename, filename, dot- filename); data/elektra-0.8.14/tests/cframework/tests.c:231:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(file, "/"); data/elektra-0.8.14/tests/cframework/tests.h:156:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(errorMsg, "\""); \ data/elektra-0.8.14/tests/ctest/test_key.c:45:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:68:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:95:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:122:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:149:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:178:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:207:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/ctest/test_key.c:234:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer,p,size); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1762:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). return strncpy(dest, src, n); data/elektra-0.8.14/tests/gtest-1.7.0/include/gtest/internal/gtest-port.h:1784:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return static_cast<int>(read(fd, buf, count)); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:175:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t full_regex_len = strlen(regex) + 10; data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-port.cc:429:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t len = strlen(regex); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-printers.cc:315:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PrintCharsAsStringTo(s, strlen(s), os); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest-printers.cc:332:29: [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). PrintCharsAsStringTo(s, wcslen(s), os); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:842:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const int length = strlen(ansi); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:1502:34: [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). num_chars = static_cast<int>(wcslen(str)); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:3256:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). segment = next_segment + strlen("]]>"); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:3421:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result.reserve(strlen(str) + 1); data/elektra-0.8.14/tests/gtest-1.7.0/src/gtest.cc:4664:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t prefix_len = strlen(prefix); ANALYSIS SUMMARY: Hits = 765 Lines analyzed = 133679 in approximately 3.96 seconds (33755 lines/second) Physical Source Lines of Code (SLOC) = 88990 Hits@level = [0] 948 [1] 219 [2] 316 [3] 56 [4] 160 [5] 14 Hits@level+ = [0+] 1713 [1+] 765 [2+] 546 [3+] 230 [4+] 174 [5+] 14 Hits/KSLOC@level+ = [0+] 19.2494 [1+] 8.59647 [2+] 6.13552 [3+] 2.58456 [4+] 1.95528 [5+] 0.157321 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.