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/protobuf2-2.6.1/gtest/src/gtest_main.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-test-part.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-filepath.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-typed-test.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-printers.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-death-test.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-port.cc
Examining data/protobuf2-2.6.1/gtest/src/gtest-internal-inl.h
Examining data/protobuf2-2.6.1/gtest/src/gtest-all.cc
Examining data/protobuf2-2.6.1/gtest/xcode/Samples/FrameworkSample/widget.h
Examining data/protobuf2-2.6.1/gtest/xcode/Samples/FrameworkSample/widget.cc
Examining data/protobuf2-2.6.1/gtest/xcode/Samples/FrameworkSample/widget_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_list_tests_unittest_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_uninitialized_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_filter_unittest_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-typed-test_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_no_test_unittest.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-param-test_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_env_var_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_catch_exceptions_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_throw_on_failure_ex_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-options_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-param-test_test.h
Examining data/protobuf2-2.6.1/gtest/test/gtest-tuple_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_stress_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_shuffle_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_color_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-linked_ptr_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_pred_impl_unittest.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_xml_outfile2_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/production.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-typed-test2_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_repeat_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_help_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_throw_on_failure_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_prod_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-param-test2_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_output_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-death-test_ex_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-test-part_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-listener_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_main_unittest.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_break_on_failure_unittest_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-filepath_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-death-test_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_xml_output_unittest_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_sole_header_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_all_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-typed-test_test.h
Examining data/protobuf2-2.6.1/gtest/test/gtest-port_test.cc
Examining data/protobuf2-2.6.1/gtest/test/production.h
Examining data/protobuf2-2.6.1/gtest/test/gtest_xml_outfile1_test_.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-message_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-unittest-api_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest-printers_test.cc
Examining data/protobuf2-2.6.1/gtest/test/gtest_environment_test.cc
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest_prod.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-test-part.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-message.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-typed-test.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-spi.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest_pred_impl.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-printers.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-death-test.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/gtest-param-test.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-death-test-internal.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-port.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-linked_ptr.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-type-util.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-internal.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-tuple.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-param-util.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-param-util-generated.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-string.h
Examining data/protobuf2-2.6.1/gtest/include/gtest/internal/gtest-filepath.h
Examining data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest_main.cc
Examining data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h
Examining data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample4.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample5_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample4.h
Examining data/protobuf2-2.6.1/gtest/samples/sample2.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample4_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample8_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample2.h
Examining data/protobuf2-2.6.1/gtest/samples/sample3-inl.h
Examining data/protobuf2-2.6.1/gtest/samples/sample1.h
Examining data/protobuf2-2.6.1/gtest/samples/sample6_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample1.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample9_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample10_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample1_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample2_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/prime_tables.h
Examining data/protobuf2-2.6.1/gtest/samples/sample7_unittest.cc
Examining data/protobuf2-2.6.1/gtest/samples/sample3_unittest.cc
Examining data/protobuf2-2.6.1/gtest/codegear/gtest_link.cc
Examining data/protobuf2-2.6.1/gtest/codegear/gtest_all.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/dynamic_message.h
Examining data/protobuf2-2.6.1/src/google/protobuf/extension_set.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/zcgunzip.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.h
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/file.h
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/testing/zcgzip.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format_lite_inl.h
Examining data/protobuf2-2.6.1/src/google/protobuf/message_lite.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/service.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/plugin.pb.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/test_plugin.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/parser_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/mock_code_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/parser.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/importer.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_enum_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_string_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_extension.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_service.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_extension.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_options.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_service.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_enum_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_file.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_file.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_primitive_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_unittest.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_string_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_enum.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_enum.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_plugin_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_helpers.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/mock_code_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/package_info.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/code_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/importer.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/code_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/plugin.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_lazy_message_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_name_resolver.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_extension.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_message.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_lazy_message_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_context.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_shared_code_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_service.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_doc_comment.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_service.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_string_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_message.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_enum.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_name_resolver.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_string_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_shared_code_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_message_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_context.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_enum_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_primitive_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_doc_comment_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_generator_factory.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_enum.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_file.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_message_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_helpers.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_doc_comment.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_extension.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_generator_factory.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_primitive_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_enum_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_file.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_plugin_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/java/java_helpers.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/plugin.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/zip_writer.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/main.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/python/python_generator.h
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/python/python_generator.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/python/python_plugin_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/zip_writer.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/parser.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/importer_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/compiler/plugin.pb.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format_lite.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/unknown_field_set.h
Examining data/protobuf2-2.6.1/src/google/protobuf/message_lite.h
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor_database.h
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor.pb.h
Examining data/protobuf2-2.6.1/src/google/protobuf/text_format.h
Examining data/protobuf2-2.6.1/src/google/protobuf/test_util.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/message.h
Examining data/protobuf2-2.6.1/src/google/protobuf/reflection_ops.h
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor.pb.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/dynamic_message_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/extension_set_heavy.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_message_util.h
Examining data/protobuf2-2.6.1/src/google/protobuf/test_util_lite.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/test_util.h
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format_lite.h
Examining data/protobuf2-2.6.1/src/google/protobuf/unknown_field_set_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_message_reflection.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/lite_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor_database_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/repeated_field_reflection_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/package_info.h
Examining data/protobuf2-2.6.1/src/google/protobuf/reflection_ops_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/reflection_ops.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/message.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/repeated_field.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/repeated_field.h
Examining data/protobuf2-2.6.1/src/google/protobuf/dynamic_message.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/unknown_field_set.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/text_format.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/wire_format.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/shared_ptr.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/template_util.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/common.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_mips_gcc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/structurally_valid_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/structurally_valid.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/hash.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/common_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_solaris.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/type_traits_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_atomicword_compat.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/map_util.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_tsan.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/platform_macros.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_arm64_gcc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/type_traits.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/once_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/stl_util.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/once.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_msvc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_arm_qnx.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/template_util_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_arm_gcc.h
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/once.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_pnacl.h
Examining data/protobuf2-2.6.1/src/google/protobuf/repeated_field_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/test_util_lite.h
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor.h
Examining data/protobuf2-2.6.1/src/google/protobuf/message_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/extension_set_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_message_util.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/service.h
Examining data/protobuf2-2.6.1/src/google/protobuf/extension_set.h
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_enum_reflection.h
Examining data/protobuf2-2.6.1/src/google/protobuf/descriptor_database.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/printer.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_inl.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/printer.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl_lite.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/strtod.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/gzip_stream.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl_lite.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/package_info.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/gzip_stream.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/io/strtod.h
Examining data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_message_reflection.h
Examining data/protobuf2-2.6.1/src/google/protobuf/generated_message_reflection_unittest.cc
Examining data/protobuf2-2.6.1/vsprojects/config.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/scoped_pyobject_ptr.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/extension_dict.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/extension_dict.cc
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/python_protobuf.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/repeated_composite_container.cc
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/message.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/repeated_scalar_container.cc
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/repeated_scalar_container.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/repeated_composite_container.h
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/descriptor.cc
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/message.cc
Examining data/protobuf2-2.6.1/python/google/protobuf/pyext/descriptor.h
Examining data/protobuf2-2.6.1/python/google/protobuf/internal/api_implementation.cc
Examining data/protobuf2-2.6.1/examples/list_people.cc
Examining data/protobuf2-2.6.1/examples/add_person.cc

FINAL RESULTS:

data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:1459: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2742:12:  [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).
    posix::StrNCpy(
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2945:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2949:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:3862: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:3881: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:3888: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2868: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2940: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2942: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:8100: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/src/gtest.cc:137: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/protobuf2-2.6.1/gtest/src/gtest.cc:1420:12:  [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).
    posix::StrNCpy(
data/protobuf2-2.6.1/gtest/src/gtest.cc:1623:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/protobuf2-2.6.1/gtest/src/gtest.cc:1627:20:  [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.
  const int size = vsnprintf(buffer, kBufferSize, format, args);
data/protobuf2-2.6.1/gtest/src/gtest.cc:2540: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/protobuf2-2.6.1/gtest/src/gtest.cc:2559: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/protobuf2-2.6.1/gtest/src/gtest.cc:2566: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/protobuf2-2.6.1/gtest/test/gtest-death-test_test.cc:1348: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/protobuf2-2.6.1/gtest/test/gtest-death-test_test.cc:1358: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/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:151:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(path.c_str(), F_OK) == -1) {
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:803:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(input_files_[i].c_str(), F_OK) < 0) {
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:986:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(disk_path.c_str(), F_OK) < 0) {
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface_unittest.cc:290:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(possible_paths[i], F_OK) == 0) {
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:380:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat("::", name);
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:382:10:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  return StrCat("::", DotsToColons(package), "::", name);
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message.cc:1304:18:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  printer->Print(StrCat(
data/protobuf2-2.6.1/src/google/protobuf/compiler/importer.cc:392:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access(shadowing_disk_file->c_str(), F_OK) >= 0) {
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:318:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(argv[0], argv);
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:321:9:  [4] (shell) execv:
  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.
        execv(argv[0], argv);
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:44:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf    // see comment in strutil.cc
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:44:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf    // see comment in strutil.cc
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:161:5:  [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(buffer, sizeof(buffer), FORMAT, value);                \
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc:66:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  int result = vsnprintf(space, kSpaceLength, format, backup_ap);
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc:80:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      result = vsnprintf(NULL, 0, format, backup_ap);
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc:97:12:  [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.
  result = vsnprintf(buf, length, format, backup_ap);
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:52:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:52:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:493:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(dest + used, (use_hex ? "\\x%02x" : "\\%03o"),
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.h:505:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.h:512:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.h:519:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(const T1& a, const T2& b, const T3& c) {
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.h:525:8:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
string StrCat(const T1& a, const T2& b) {
data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc:62:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(name.c_str(), F_OK) == 0;
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1275:10:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  return StrCat("\"", CEscape(val), "\"");
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1294:14:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
      return StrCat("[", field->message_type()->full_name(), "]");
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1296:14:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
      return StrCat("[", field->full_name(), "]");
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1325:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat("\"", strings::Utf8SafeCEscape(val), "\"");
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:395:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat(FieldValuePrinter::PrintUInt32(val), "u");
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:419:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat("value-is(", FieldValuePrinter::PrintInt32(val), ")");
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:454:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat(FieldValuePrinter::PrintInt32(v), "  # x", ToHex(v));
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:464:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat(
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:507:12:  [4] (buffer) StrCat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
    return StrCat(" {  # 1\n", "  # 2\n");
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:708: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:729: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:730: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:1187: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:3691: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:3692: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:5477: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:5748: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:5751: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:5756: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2906: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2909: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:18285: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/protobuf2-2.6.1/gtest/include/gtest/gtest.h:866: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/src/gtest-internal-inl.h:309: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/protobuf2-2.6.1/gtest/src/gtest-internal-inl.h:330: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/protobuf2-2.6.1/gtest/src/gtest-internal-inl.h:331: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/protobuf2-2.6.1/gtest/src/gtest-internal-inl.h:788: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/protobuf2-2.6.1/gtest/src/gtest.cc:2369: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/protobuf2-2.6.1/gtest/src/gtest.cc:2370: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/protobuf2-2.6.1/gtest/src/gtest.cc:4155: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/protobuf2-2.6.1/gtest/src/gtest.cc:4426: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/protobuf2-2.6.1/gtest/src/gtest.cc:4429: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/protobuf2-2.6.1/gtest/src/gtest.cc:4434: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:337: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:338: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:341: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:342: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:647: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:649: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:652: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:659: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:661: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:676: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:678: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:681: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:683: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:748: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:751: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:754: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:757: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:760: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/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:257:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(&mInternal->mutex);
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:266:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&mInternal->mutex);
data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc:83: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* result = getenv("srcdir");
data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc:100:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  string result = tmpnam(b);
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2149:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2152:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2636: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2804:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];  // CodePointToUtf8 requires a buffer this big.
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2936: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[4096];
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:6467: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:6883: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:7162: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:7599: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:7602: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:7979: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8309: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8386:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8387:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8424: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8732: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2880: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/src/gtest-death-test.cc:312: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/protobuf2-2.6.1/gtest/src/gtest-death-test.cc:728: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/protobuf2-2.6.1/gtest/src/gtest-death-test.cc:1007: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/protobuf2-2.6.1/gtest/src/gtest-filepath.cc:106: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/protobuf2-2.6.1/gtest/src/gtest-filepath.cc:109: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/src/gtest.cc:827:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/protobuf2-2.6.1/gtest/src/gtest.cc:830:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_ACP, 0, ansi, length,
data/protobuf2-2.6.1/gtest/src/gtest.cc:1314: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/protobuf2-2.6.1/gtest/src/gtest.cc:1482:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[32];  // CodePointToUtf8 requires a buffer this big.
data/protobuf2-2.6.1/gtest/src/gtest.cc:1614: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[4096];
data/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/test/gtest-printers_test.cc:127: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/protobuf2-2.6.1/gtest/test/gtest-printers_test.cc:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char xy_[8];
data/protobuf2-2.6.1/gtest/test/gtest-printers_test.cc:1057: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:457:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:463:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:473:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:488:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:506:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:519:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[32];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:970: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[4096];
data/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:7126: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/protobuf2-2.6.1/gtest/test/gtest_unittest.cc:7210: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:340: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).
        open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666);
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:400: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).
      open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666);
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:562:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(target_ptr, indent_.data(), indent_.size());
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:570:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(target_ptr, data_.data() + data_pos, line_length);
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:1447:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open(descriptor_set_name_.c_str(),
data/protobuf2-2.6.1/src/google/protobuf/compiler/command_line_interface_unittest.cc:1513:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename.c_str(), O_RDONLY);
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_helpers.cc:355:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message.cc:425:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/compiler/cpp/cpp_message.cc:2588:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/compiler/importer.cc:467:23:  [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).
    file_descriptor = open(filename.c_str(), O_RDONLY);
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:205:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[4096];
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:404:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[4096];
data/protobuf2-2.6.1/src/google/protobuf/descriptor.h:609:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char * const kTypeToName[MAX_TYPE + 1];
data/protobuf2-2.6.1/src/google/protobuf/descriptor.h:611:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char * const kCppTypeToName[MAX_CPPTYPE + 1];
data/protobuf2-2.6.1/src/google/protobuf/descriptor.h:613:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char * const kLabelToName[MAX_LABEL + 1];
data/protobuf2-2.6.1/src/google/protobuf/descriptor_database.cc:324: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(copy, encoded_file_descriptor, size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc:236:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer, buffer_, current_buffer_size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc:243: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, buffer_, size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc:628:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer_, data, buffer_size_);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc:634: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_, data, size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.cc:640: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(target, data, size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:818: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(value, buffer, sizeof(*value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:833: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(value, buffer, sizeof(*value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:853:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(value, buffer_, sizeof(*value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:867:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(value, buffer_, sizeof(*value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:1039: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(target, &value, sizeof(value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream.h:1052: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(target, &value, sizeof(value));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_inl.h:57: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(mutable_string_data(buffer), buffer_, size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:186: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_, kVarintCases_case.bytes, kVarintCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:201: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_, kVarintCases_case.bytes, kVarintCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:248: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_ + 1, kVarintCases_case.bytes, kVarintCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:279: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_, kVarintCases_case.bytes, kVarintCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:297: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_, kVarintCases_case.bytes, kVarintCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:432: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_, kVarintErrorCases_case.bytes, kVarintErrorCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:442: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_, kVarintErrorCases_case.bytes, kVarintErrorCases_case.size);
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:522: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_, kFixed32Cases_case.bytes, sizeof(kFixed32Cases_case.bytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:537: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_, kFixed64Cases_case.bytes, sizeof(kFixed64Cases_case.bytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:586: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_, kFixed32Cases_case.bytes, sizeof(kFixed32Cases_case.bytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:596: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_, kFixed64Cases_case.bytes, sizeof(kFixed64Cases_case.bytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:611: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:613: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 read_buffer[sizeof(kRawBytes)];
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:642: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:686: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:707: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:725: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:749: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:769: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:786: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:806: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:827: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:849: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_, kRawBytes, sizeof(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:878: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_, kSkipTestBytes, sizeof(kSkipTestBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:1348:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_[1024];
data/protobuf2-2.6.1/src/google/protobuf/io/printer.cc:181:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer_, data, buffer_size_);
data/protobuf2-2.6.1/src/google/protobuf/io/printer.cc:191: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_, data, size);
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:54: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:62: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:87: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:115: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc: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 buffer[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:172: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:225: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[8192];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:237: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[17];
data/protobuf2-2.6.1/src/google/protobuf/io/printer_unittest.cc:261: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[16];
data/protobuf2-2.6.1/src/google/protobuf/io/strtod.cc:59: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 temp[16];
data/protobuf2-2.6.1/src/google/protobuf/io/strtod.cc:60:14:  [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.
  int size = sprintf(temp, "%.1f", 1.5);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl_lite.cc: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 junk[4096];
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:146: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(out, in, in_size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:151:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, in, out_size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:181: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(out, in, out_size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:188:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, in, in_size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:685: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).
        open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0777);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:716: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).
        open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0777);
data/protobuf2-2.6.1/src/google/protobuf/message_unittest.cc:110:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int file = open(filename.c_str(), O_RDONLY | O_BINARY);
data/protobuf2-2.6.1/src/google/protobuf/message_unittest.cc:123:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int file = open(filename.c_str(), O_RDONLY | O_BINARY);
data/protobuf2-2.6.1/src/google/protobuf/repeated_field.cc:53:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(elements_, old_elements, allocated_size_ * sizeof(elements_[0]));
data/protobuf2-2.6.1/src/google/protobuf/repeated_field.h:848:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(to, from, array_size * sizeof(Element));
data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc:86: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 vendor[13];
data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc:87: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(vendor, &ebx, 4);
data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc:88: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(vendor + 4, &edx, 4);
data/protobuf2-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc:89: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(vendor + 8, &ecx, 4);
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:91: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[128];
data/protobuf2-2.6.1/src/google/protobuf/stubs/common.cc:160:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];                                               \
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc:59: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 space[kSpaceLength];
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf.cc:139:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char string_printf_empty_block[256] = { '\0' };
data/protobuf2-2.6.1/src/google/protobuf/stubs/stringprintf_unittest.cc:112: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(buf + n - 3, kInvalidCodePoint, 4);
data/protobuf2-2.6.1/src/google/protobuf/stubs/structurally_valid.cc:293:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char utf8acceptnonsurrogates_fast[256] = {
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:869:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char two_ASCII_digits[100][2] = {
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1042: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1049: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1056: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1063: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1070: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1077: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[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1125: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[kDoubleToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1130: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[kFloatToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1175:5:  [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, "inf");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1178:5:  [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, "-inf");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1181:5:  [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, "nan");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1230:5:  [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, "inf");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1233:5:  [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, "-inf");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1236:5:  [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, "nan");
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1267:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[16];  // No more than 16 hex digits needed.
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.cc:117:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(target, src->data(), src->size());
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:135: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 scratch_[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/stubs/template_util.h:62: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 dummy[2];
data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc:67:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* file = fopen(name.c_str(), "rb");
data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc:86:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* file = fopen(name.c_str(), "wb");
data/protobuf2-2.6.1/src/google/protobuf/testing/file.cc:104:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* file = fopen(name.c_str(), "wb");
data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc:99: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 b[L_tmpnam + 1];     // HPUX multithread return 0 if s is 0
data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc:158:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(stdout_capture_filename_.c_str(),
data/protobuf2-2.6.1/src/google/protobuf/testing/googletest.cc:173:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(stderr_capture_filename_.c_str(),
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1112: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(buffer_, data, buffer_size_);
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1122:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buffer_, data, size);
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1670:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1682:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[kFastToBufferSize];
data/protobuf2-2.6.1/src/google/protobuf/text_format_unittest.cc:384: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[1] = "";
data/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2147: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:2788: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:4466: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:4697: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:5809: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8043: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8297: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:8987: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest-all.cc:9004: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2869: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/protobuf2-2.6.1/gtest/fused-src/gtest/gtest.h:2891: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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/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/protobuf2-2.6.1/gtest/src/gtest-printers.cc:316: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/protobuf2-2.6.1/gtest/src/gtest-printers.cc:333: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/protobuf2-2.6.1/gtest/src/gtest.cc:825: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/protobuf2-2.6.1/gtest/src/gtest.cc:1466: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/protobuf2-2.6.1/gtest/src/gtest.cc:3144: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/protobuf2-2.6.1/gtest/src/gtest.cc:3375: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/protobuf2-2.6.1/gtest/src/gtest.cc:4487: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/protobuf2-2.6.1/gtest/test/gtest-filepath_test.cc:524:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (temp_dir[strlen(temp_dir) - 1] == '\\')
data/protobuf2-2.6.1/gtest/test/gtest-printers_test.cc:869: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/protobuf2-2.6.1/gtest/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);
data/protobuf2-2.6.1/src/google/protobuf/compiler/importer_unittest.cc:92:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      return new io::ArrayInputStream(contents, strlen(contents));
data/protobuf2-2.6.1/src/google/protobuf/compiler/parser_unittest.cc:107: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).
    raw_input_.reset(new io::ArrayInputStream(text, strlen(text)));
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:328: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).
    ignored = write(STDERR_FILENO, argv[0], strlen(argv[0]));
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:330: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).
    ignored = write(STDERR_FILENO, message, strlen(message));
data/protobuf2-2.6.1/src/google/protobuf/compiler/subprocess.cc:405:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int n = read(child_stdout_, buffer, sizeof(buffer));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:649:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:653: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).
  EXPECT_EQ(strlen(kRawBytes), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:695:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:696:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_EQ(sizeof(kRawBytes) - strlen(kRawBytes),
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:700: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).
    EXPECT_GE(str.capacity(), strlen(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:703: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).
  EXPECT_EQ(strlen(kRawBytes), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:715:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:718: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).
    EXPECT_GE(str.capacity(), strlen(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:721: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).
  EXPECT_EQ(strlen(kRawBytes), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:735:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:742: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).
    EXPECT_GE(str.capacity(), strlen(kRawBytes));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:745: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).
  EXPECT_EQ(strlen(kRawBytes), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:797: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).
    EXPECT_FALSE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:801: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).
    EXPECT_GT(strlen(kRawBytes), str.capacity());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:817: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).
    EXPECT_FALSE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:821: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).
    EXPECT_GT(strlen(kRawBytes), str.capacity());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:839: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).
    EXPECT_FALSE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:843: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).
    EXPECT_GT(strlen(kRawBytes), str.capacity());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:862: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).
    EXPECT_FALSE(coded_input.ReadString(&str, strlen(kRawBytes)));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:866: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).
    EXPECT_GT(strlen(kRawBytes), str.capacity());
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:885:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen("<Before skipping>")));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:887: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).
    EXPECT_TRUE(coded_input.Skip(strlen("<To be skipped>")));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:888:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    EXPECT_TRUE(coded_input.ReadString(&str, strlen("<After skipping>")));
data/protobuf2-2.6.1/src/google/protobuf/io/coded_stream_unittest.cc:892: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).
  EXPECT_EQ(strlen(kSkipTestBytes), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/printer.cc:60: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).
  int size = strlen(text);
data/protobuf2-2.6.1/src/google/protobuf/io/printer.cc:164: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).
  WriteRaw(data, strlen(data));
data/protobuf2-2.6.1/src/google/protobuf/io/strtod.cc:67: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(input) + size - 3);
data/protobuf2-2.6.1/src/google/protobuf/io/strtod.cc:101: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).
      int size_diff = localized.size() - strlen(text);
data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer_unittest.cc:296: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).
  TestInputStream input(text, strlen(text), kBlockSizes_case);
data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer_unittest.cc:491: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).
  TestInputStream input(text, strlen(text), kBlockSizes_case);
data/protobuf2-2.6.1/src/google/protobuf/io/tokenizer_unittest.cc:992: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).
  EXPECT_EQ(strlen("foo"), input.ByteCount());
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl.cc:142:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read(file_, buffer, size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_impl.cc:304:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  input_->read(reinterpret_cast<char*>(buffer), size);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:303:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      coded_output->WriteVarint32(strlen(strA));
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:304: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).
      coded_output->WriteRaw(strA, strlen(strA));
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:311:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      coded_output->WriteVarint32(strlen(strB));
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:312: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).
      coded_output->WriteRaw(strB, strlen(strB));
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:322:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      EXPECT_EQ(strlen(strA), insize);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:327:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      EXPECT_EQ(strlen(strB), insize);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:610: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).
      int32 outlen = strlen(strA) + 1;
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:621: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).
      outlen = strlen(strB) + 1;
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:635:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      EXPECT_EQ(strlen(strA) + 1, insize);
data/protobuf2-2.6.1/src/google/protobuf/io/zero_copy_stream_unittest.cc:641:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      EXPECT_EQ(strlen(strB) + 1, insize);
data/protobuf2-2.6.1/src/google/protobuf/repeated_field_unittest.cc:1354: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(fibonacci.begin(),
data/protobuf2-2.6.1/src/google/protobuf/repeated_field_unittest.cc:1357: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(protobuffer.repeated_int32().begin(),
data/protobuf2-2.6.1/src/google/protobuf/repeated_field_unittest.cc:1363: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(halves.begin(),
data/protobuf2-2.6.1/src/google/protobuf/repeated_field_unittest.cc:1366: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(protobuffer.repeated_double().begin(),
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:243: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).
  int delim_length = strlen(delim);
data/protobuf2-2.6.1/src/google/protobuf/stubs/strutil.cc:1163: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).
    memmove(target, buffer, strlen(buffer) + 1);
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:90: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).
    : text_(value), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:107:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:109: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).
    : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:111:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:113: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).
    : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:115: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).
    : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:117:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:119:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(FastInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:121: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).
    : text_(FastUInt64ToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:123:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(FloatToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:125: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).
    : text_(DoubleToBuffer(value, scratch_)), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/stubs/substitute.h:127:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : text_(value ? "true" : "false"), size_(strlen(text_)) {}
data/protobuf2-2.6.1/src/google/protobuf/testing/zcgzip.cc:68:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    readlen = read(STDIN_FILENO, outptr, outlen);
data/protobuf2-2.6.1/src/google/protobuf/text_format.cc:1066:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    Print(text, strlen(text));

ANALYSIS SUMMARY:

Hits = 368
Lines analyzed = 211249 in approximately 4.72 seconds (44744 lines/second)
Physical Source Lines of Code (SLOC) = 142197
Hits@level = [0] 219 [1]  95 [2] 168 [3]  48 [4]  57 [5]   0
Hits@level+ = [0+] 587 [1+] 368 [2+] 273 [3+] 105 [4+]  57 [5+]   0
Hits/KSLOC@level+ = [0+] 4.12808 [1+] 2.58796 [2+] 1.91987 [3+] 0.738412 [4+] 0.400852 [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.