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/yaml-cpp-0.6.3/include/yaml-cpp/anchor.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/contrib/graphbuilder.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/contrib/anchordict.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/emitfromevents.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/emitterdef.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/emittermanip.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/emitterstyle.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/eventhandler.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/mark.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/convert.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/bool_type.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/iterator.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/iterator_fwd.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/node_ref.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/node_iterator.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/impl.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/memory.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/node.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/detail/node_data.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/emit.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/iterator.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/parse.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/ptr.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/type.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/node.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/node/impl.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/null.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/stlemitter.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/yaml.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/dll.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/depthguard.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/exceptions.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/traits.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/noncopyable.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/binary.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/emitter.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/ostream_wrapper.h Examining data/yaml-cpp-0.6.3/include/yaml-cpp/parser.h Examining data/yaml-cpp-0.6.3/src/binary.cpp Examining data/yaml-cpp-0.6.3/src/contrib/graphbuilder.cpp Examining data/yaml-cpp-0.6.3/src/contrib/graphbuilderadapter.cpp Examining data/yaml-cpp-0.6.3/src/contrib/graphbuilderadapter.h Examining data/yaml-cpp-0.6.3/src/convert.cpp Examining data/yaml-cpp-0.6.3/src/directives.h Examining data/yaml-cpp-0.6.3/src/emit.cpp Examining data/yaml-cpp-0.6.3/src/emitterutils.h Examining data/yaml-cpp-0.6.3/src/exceptions.cpp Examining data/yaml-cpp-0.6.3/src/exp.cpp Examining data/yaml-cpp-0.6.3/src/indentation.h Examining data/yaml-cpp-0.6.3/src/memory.cpp Examining data/yaml-cpp-0.6.3/src/node.cpp Examining data/yaml-cpp-0.6.3/src/null.cpp Examining data/yaml-cpp-0.6.3/src/parse.cpp Examining data/yaml-cpp-0.6.3/src/regeximpl.h Examining data/yaml-cpp-0.6.3/src/scanner.h Examining data/yaml-cpp-0.6.3/src/scanscalar.cpp Examining data/yaml-cpp-0.6.3/src/scanscalar.h Examining data/yaml-cpp-0.6.3/src/scantag.cpp Examining data/yaml-cpp-0.6.3/src/scantag.h Examining data/yaml-cpp-0.6.3/src/simplekey.cpp Examining data/yaml-cpp-0.6.3/src/stringsource.h Examining data/yaml-cpp-0.6.3/src/tag.h Examining data/yaml-cpp-0.6.3/src/depthguard.cpp Examining data/yaml-cpp-0.6.3/src/collectionstack.h Examining data/yaml-cpp-0.6.3/src/directives.cpp Examining data/yaml-cpp-0.6.3/src/emitfromevents.cpp Examining data/yaml-cpp-0.6.3/src/emitter.cpp Examining data/yaml-cpp-0.6.3/src/emitterstate.cpp Examining data/yaml-cpp-0.6.3/src/emitterstate.h Examining data/yaml-cpp-0.6.3/src/emitterutils.cpp Examining data/yaml-cpp-0.6.3/src/exp.h Examining data/yaml-cpp-0.6.3/src/nodebuilder.cpp Examining data/yaml-cpp-0.6.3/src/nodebuilder.h Examining data/yaml-cpp-0.6.3/src/nodeevents.cpp Examining data/yaml-cpp-0.6.3/src/nodeevents.h Examining data/yaml-cpp-0.6.3/src/ostream_wrapper.cpp Examining data/yaml-cpp-0.6.3/src/parser.cpp Examining data/yaml-cpp-0.6.3/src/ptr_vector.h Examining data/yaml-cpp-0.6.3/src/regex_yaml.cpp Examining data/yaml-cpp-0.6.3/src/regex_yaml.h Examining data/yaml-cpp-0.6.3/src/scanner.cpp Examining data/yaml-cpp-0.6.3/src/scantoken.cpp Examining data/yaml-cpp-0.6.3/src/setting.h Examining data/yaml-cpp-0.6.3/src/singledocparser.cpp Examining data/yaml-cpp-0.6.3/src/singledocparser.h Examining data/yaml-cpp-0.6.3/src/stream.cpp Examining data/yaml-cpp-0.6.3/src/stream.h Examining data/yaml-cpp-0.6.3/src/streamcharsource.h Examining data/yaml-cpp-0.6.3/src/tag.cpp Examining data/yaml-cpp-0.6.3/src/token.h Examining data/yaml-cpp-0.6.3/src/node_data.cpp Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-actions.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-cardinalities.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-generated-actions.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-generated-function-mockers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-generated-matchers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-generated-nice-strict.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-matchers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-more-actions.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-more-matchers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock-spec-builders.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/gmock.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/custom/gmock-generated-actions.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/custom/gmock-matchers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/custom/gmock-port.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-generated-internal-utils.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-internal-utils.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/include/gmock/internal/gmock-port.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock-all.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock-cardinalities.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock-internal-utils.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock-matchers.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock-spec-builders.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/src/gmock_main.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-actions_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-cardinalities_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-generated-actions_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-generated-function-mockers_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-generated-internal-utils_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-generated-matchers_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-internal-utils_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-matchers_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-more-actions_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-nice-strict_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-port_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-spec-builders_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_all_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_ex_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_leak_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_link2_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_link_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_link_test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_output_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_stress_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/codegear/gtest_all.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/codegear/gtest_link.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-death-test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-message.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-param-test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-printers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-spi.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-test-part.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest-typed-test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest_pred_impl.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest_prod.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/custom/gtest-port.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/custom/gtest-printers.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/custom/gtest.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-death-test-internal.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-filepath.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-internal.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-linked_ptr.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-param-util-generated.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-param-util.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port-arch.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-string.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-tuple.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-type-util.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/prime_tables.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample1.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample1.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample10_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample1_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample3-inl.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample3_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample4.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample4.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample4_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample5_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample6_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample7_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample8_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample9_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-all.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-death-test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-filepath.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-internal-inl.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-printers.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-test-part.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-typed-test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest_main.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-death-test_ex_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-death-test_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-filepath_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-linked_ptr_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-listener_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-message_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-options_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-param-test2_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-param-test_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-param-test_test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-port_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-printers_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-test-part_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-tuple_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-typed-test2_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-typed-test_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-typed-test_test.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-unittest-api_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_all_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_break_on_failure_unittest_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_catch_exceptions_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_color_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_env_var_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_environment_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_filter_unittest_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_help_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_list_tests_unittest_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_main_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_no_test_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_output_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_pred_impl_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_premature_exit_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_prod_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_repeat_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_shuffle_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_sole_header_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_stress_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_throw_on_failure_ex_test.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_throw_on_failure_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_uninitialized_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_xml_outfile1_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_xml_outfile2_test_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_xml_output_unittest_.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/production.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/production.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/xcode/Samples/FrameworkSample/widget.cc Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/xcode/Samples/FrameworkSample/widget.h Examining data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/xcode/Samples/FrameworkSample/widget_test.cc Examining data/yaml-cpp-0.6.3/test/handler_test.h Examining data/yaml-cpp-0.6.3/test/integration/emitter_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/encoding_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/gen_emitter_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/handler_spec_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/handler_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/node_spec_test.cpp Examining data/yaml-cpp-0.6.3/test/integration/load_node_test.cpp Examining data/yaml-cpp-0.6.3/test/main.cpp Examining data/yaml-cpp-0.6.3/test/mock_event_handler.h Examining data/yaml-cpp-0.6.3/test/node/node_test.cpp Examining data/yaml-cpp-0.6.3/test/ostream_wrapper_test.cpp Examining data/yaml-cpp-0.6.3/test/specexamples.h Examining data/yaml-cpp-0.6.3/test/regex_test.cpp Examining data/yaml-cpp-0.6.3/util/api.cpp Examining data/yaml-cpp-0.6.3/util/parse.cpp Examining data/yaml-cpp-0.6.3/util/read.cpp Examining data/yaml-cpp-0.6.3/util/sandbox.cpp FINAL RESULTS: data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2356: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2427: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2429: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:146: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:2971: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:2991: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:2998: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-death-test_test.cc:1310:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside"); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-death-test_test.cc:1320:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, InDeathTestChild() ? "Inside" : "Outside"); data/yaml-cpp-0.6.3/src/stream.cpp:415:15: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. m_input.setstate(std::ios_base::eofbit); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-matchers_test.cc:5197:5: [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(static_cast<int>(seed)); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/gtest.h:925: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2395: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2398: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-internal-inl.h:312: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-internal-inl.h:333: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-internal-inl.h:334: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-internal-inl.h:792: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:243:5: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:261:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::EnterCriticalSection(critical_section_); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:293:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. ::InitializeCriticalSection(critical_section_); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:194:44: [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 testbridge_test_only = getenv(GTEST_TEST_FILTER_ENV_VAR_); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:2793: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:2794: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:4627: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:4941: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:4944: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:4949: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:425:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("TZ")) data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:426:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. saved_tz_ = strdup(getenv("TZ")); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:713:29: [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. testing::internal::Random random(42); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:715: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.Generate(0), data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:718: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.Generate(testing::internal::Random::kMaxRange + 1), data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:725:29: [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. testing::internal::Random random(12345); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:727:15: [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. EXPECT_LT(random.Generate(kRange), kRange) << " for iteration " << i; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:742:29: [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. testing::internal::Random random(kSeed); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:744:17: [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. values[i] = random.Generate(kRange); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:747:3: [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(kSeed); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:749:26: [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. EXPECT_EQ(values[i], random.Generate(kRange)) << " for iteration " << i; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:814:29: [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. testing::internal::Random random(1); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:817: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. ShuffleRange(&random, -1, 1, &a), data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:820: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. ShuffleRange(&random, 4, 4, &a), data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:823: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. ShuffleRange(&random, 3, 2, &a), data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:826: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. ShuffleRange(&random, 3, 4, &a), data/yaml-cpp-0.6.3/src/stream.cpp:341:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[2]; data/yaml-cpp-0.6.3/src/stream.cpp:430:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[4]; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-internal-utils_test.cc:460: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 skip_count = atoi(log.substr(expected_message.size()).c_str()); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-more-actions_test.cc:628: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 ch[4] = {}; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2368: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2.cc:44: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(clone, a_c_string, len + 1); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-death-test.cc:325: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-death-test.cc:741: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-death-test.cc:1027: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-filepath.cc:105: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-filepath.cc:108: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:139: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:865: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:938:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:939:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:976: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-printers.cc:65: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:862:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:865:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, ansi, length, data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:1680: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:1764: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-filepath_test.cc:371: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 current_drive[_MAX_PATH]; // NOLINT data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-filepath_test.cc:388:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char non_drive[_MAX_PATH]; // NOLINT data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-printers_test.cc:131:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. UnprintableInFoo() : z_(0) { memcpy(xy_, "\xEF\x12\x0\x0\x34\xAB\x0\x0", 8); } data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-printers_test.cc:134: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 xy_[8]; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-printers_test.cc:1132: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 array[257]; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:7591:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char a[3] = "hi"; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest_unittest.cc:7675:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char a[2][3] = { "hi", "lo" }; data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/xcode/Samples/FrameworkSample/widget_test.cc:58: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[max_size]; data/yaml-cpp-0.6.3/util/parse.cpp:54:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fin.open(argv[1]); data/yaml-cpp-0.6.3/util/read.cpp:55:16: [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). N = std::atoi(argv[i]); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-generated-matchers_test.cc:466:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nested.push_back(list<char>(strings[i], strings[i] + strlen(strings[i]))); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googlemock/test/gmock-matchers_test.cc:3929:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int operator()(const char* s) { return static_cast<int>(strlen(s)); } data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2357: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/include/gtest/internal/gtest-port.h:2379: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2.cc:42: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(a_c_string); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/samples/sample2.h:77:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return c_string_ == NULL ? 0 : strlen(c_string_); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:599: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:853: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-port.cc:1065: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). else if (temp_dir[strlen(temp_dir) - 1] == '\\') data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-printers.cc:325: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest-printers.cc:342: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). PrintCharsAsStringTo(s, std::wcslen(s), os); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:860: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:1825: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:3598: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:3763: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/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/src/gtest.cc:5002: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); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/test/gtest-printers_test.cc:872:20: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. EXPECT_TRUE(std::equal(a, a + kSize, numbers.begin())); data/yaml-cpp-0.6.3/test/gtest-1.8.0/googletest/xcode/Samples/FrameworkSample/widget.cc:60:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, name_.c_str(), max_size-1); ANALYSIS SUMMARY: Hits = 94 Lines analyzed = 117970 in approximately 2.64 seconds (44755 lines/second) Physical Source Lines of Code (SLOC) = 81489 Hits@level = [0] 159 [1] 18 [2] 31 [3] 35 [4] 10 [5] 0 Hits@level+ = [0+] 253 [1+] 94 [2+] 76 [3+] 45 [4+] 10 [5+] 0 Hits/KSLOC@level+ = [0+] 3.10471 [1+] 1.15353 [2+] 0.932641 [3+] 0.552222 [4+] 0.122716 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.