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/protobuf-4.0.0~rc2/benchmarks/cpp/cpp_benchmark.cc Examining data/protobuf-4.0.0~rc2/benchmarks/python/python_benchmark_messages.cc Examining data/protobuf-4.0.0~rc2/benchmarks/util/data_proto2_to_proto3_util.h Examining data/protobuf-4.0.0~rc2/benchmarks/util/gogo_data_scrubber.cc Examining data/protobuf-4.0.0~rc2/benchmarks/util/proto3_data_stripper.cc Examining data/protobuf-4.0.0~rc2/benchmarks/util/protoc-gen-gogoproto.cc Examining data/protobuf-4.0.0~rc2/benchmarks/util/protoc-gen-proto2_to_proto3.cc Examining data/protobuf-4.0.0~rc2/benchmarks/util/schema_proto2_to_proto3_util.h Examining data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc Examining data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.h Examining data/protobuf-4.0.0~rc2/conformance/conformance_cpp.cc Examining data/protobuf-4.0.0~rc2/conformance/conformance_test.cc Examining data/protobuf-4.0.0~rc2/conformance/conformance_test.h Examining data/protobuf-4.0.0~rc2/conformance/conformance_test_main.cc Examining data/protobuf-4.0.0~rc2/conformance/conformance_test_runner.cc Examining data/protobuf-4.0.0~rc2/conformance/text_format_conformance_suite.cc Examining data/protobuf-4.0.0~rc2/conformance/text_format_conformance_suite.h Examining data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/json.h Examining data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp Examining data/protobuf-4.0.0~rc2/examples/add_person.cc Examining data/protobuf-4.0.0~rc2/examples/list_people.cc Examining data/protobuf-4.0.0~rc2/objectivec/GPBAny.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBApi.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBArray.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBArray_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBBootstrap.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBCodedInputStream.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBCodedInputStream_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBCodedOutputStream.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBCodedOutputStream_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBDescriptor.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBDescriptor_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBDictionary.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBDictionary_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBDuration.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBEmpty.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBExtensionInternals.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBExtensionRegistry.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBFieldMask.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBMessage.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBMessage_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBProtocolBuffers.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBProtocolBuffers_RuntimeSupport.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBRootObject.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBRootObject_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBRuntimeTypes.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBSourceContext.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBStruct.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBTimestamp.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBType.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUnknownField.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUnknownFieldSet.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUnknownFieldSet_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUnknownField_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUtilities.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBUtilities_PackagePrivate.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBWellKnownTypes.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBWireFormat.h Examining data/protobuf-4.0.0~rc2/objectivec/GPBWrappers.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/Tests/CocoaPods/OSXCocoaPodsTester/OSXCocoaPodsTester/AppDelegate.h Examining data/protobuf-4.0.0~rc2/objectivec/Tests/CocoaPods/iOSCocoaPodsTester/iOSCocoaPodsTester/AppDelegate.h Examining data/protobuf-4.0.0~rc2/objectivec/Tests/CocoaPods/iOSCocoaPodsTester/iOSCocoaPodsTester/ViewController.h Examining data/protobuf-4.0.0~rc2/objectivec/Tests/GPBTestUtilities.h Examining data/protobuf-4.0.0~rc2/objectivec/Tests/UnitTests-Bridging-Header.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Any.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Api.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Duration.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Empty.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/FieldMask.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/SourceContext.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Struct.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Timestamp.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Type.pbobjc.h Examining data/protobuf-4.0.0~rc2/objectivec/google/protobuf/Wrappers.pbobjc.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/arena.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/arena.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/array.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/array.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/bundled_php.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/map.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/map.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/protobuf.c Examining data/protobuf-4.0.0~rc2/php/ext/google/protobuf/protobuf.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/internal/api_implementation.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/internal/python_protobuf.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/proto_api.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_containers.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_containers.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_database.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_database.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_pool.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/descriptor_pool.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/extension_dict.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/extension_dict.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/field.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/field.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/map_container.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/map_container.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/message.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/message.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/message_factory.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/message_factory.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/message_module.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/repeated_composite_container.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/repeated_composite_container.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/repeated_scalar_container.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/repeated_scalar_container.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/safe_numerics.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/scoped_pyobject_ptr.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/unknown_fields.cc Examining data/protobuf-4.0.0~rc2/python/google/protobuf/pyext/unknown_fields.h Examining data/protobuf-4.0.0~rc2/python/google/protobuf/python_protobuf.h Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/defs.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/map.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/protobuf.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/protobuf.h Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/repeated_field.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/storage.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h Examining data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/wrap_memcpy.c Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/any_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/api.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/api.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena_impl.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena_test_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena_test_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arena_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arenastring.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/arenastring_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/annotation_test_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/annotation_test_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/code_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/code_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_enum.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_enum.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_enum_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_enum_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_extension.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_extension.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_file.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_file.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_map_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_map_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message_layout_helper.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_move_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_options.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_plugin_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_primitive_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_service.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_service.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_string_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_string_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_unittest.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/metadata_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_bootstrap_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_doc_comment.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_generator_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_helpers.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_helpers.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_map_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_map_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_names.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_options.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_primitive_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_reflection_class.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_source_generator_base.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_wrapper_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_context.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_context.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_doc_comment.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_doc_comment.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_doc_comment_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_generator_factory.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_generator_factory.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_map_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_map_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_map_field_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_map_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_field_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_name_resolver.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_name_resolver.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_names.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_options.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_plugin_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_shared_code_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_shared_code_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/well_known_types_embed.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/well_known_types_embed.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/main.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/mock_code_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/mock_code_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_enum.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_enum.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_enum_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_extension.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_extension.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_file.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_file.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_map_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_nsobject_methods.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_oneof.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/package_info.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/plugin.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/plugin.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/plugin.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/plugin.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_plugin_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/ruby/ruby_generator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/ruby/ruby_generator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/scc.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/test_plugin.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/zip_writer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/zip_writer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/drop_unknown_fields_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/duration.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/duration.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/dynamic_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/dynamic_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/empty.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/empty.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/extension_set.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/extension_set.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/extension_set_heavy.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/extension_set_inl.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/extension_set_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/field_mask.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/field_mask.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_enum_reflection.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_enum_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_enum_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_reflection.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_reflection.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_reflection_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_table_driven.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_table_driven.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_table_driven_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_table_driven_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/generated_message_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/has_bits.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/implicit_weak_message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/implicit_weak_message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/inlined_string_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/gzip_stream.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/gzip_stream.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/package_info.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/strtod.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/strtod.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/lite_arena_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/lite_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_entry.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_entry_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_field_inl.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_field_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_lite_test_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_lite_test_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_test_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_test_util_impl.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_type_handler.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/message.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/message.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/message_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/message_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/message_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/metadata.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/metadata_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/no_field_presence_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/package_info.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/port.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/preserve_unknown_enum_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/proto3_arena_lite_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/proto3_arena_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/proto3_lite_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/reflection.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/reflection_internal.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/reflection_ops.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/reflection_ops.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/reflection_ops_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_reflection_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/service.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/service.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/source_context.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/source_context.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/struct.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/struct.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/callback.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/casts.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/hash.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/int128.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/int128.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/int128_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/logging.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/macros.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/map_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/mathutil.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/mutex.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/once.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/status.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/status.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/status_macros.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/status_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/statusor.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/statusor.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/statusor_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stl_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/structurally_valid.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/structurally_valid_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/template_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/template_util_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/time.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/time.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/time_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/platform_macros.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/test_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/test_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/test_util2.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/test_util_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/test_util_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/zcgunzip.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/testing/zcgzip.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/timestamp.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/timestamp.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/type.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/type.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/unknown_field_set.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/unknown_field_set.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/unknown_field_set_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/delimited_message_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/delimited_message_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/delimited_message_util_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_comparator.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_comparator.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_comparator_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_mask_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_mask_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/field_mask_util_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/constants.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/default_value_objectwriter.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/default_value_objectwriter.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/error_listener.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/error_listener.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/expecting_objectwriter.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_escaping.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_escaping.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/location_tracker.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/mock_error_listener.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/object_location_tracker.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/object_source.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/object_writer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/object_writer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/structured_objectwriter.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/type_info.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/type_info.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/type_info_test_helper.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/type_info_test_helper.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/utility.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/utility.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/default_value_objectwriter_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/package_info.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/time_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/time_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/time_util_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/well_known_types_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format_lite.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format_lite.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wrappers.pb.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/wrappers.pb.h Examining data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/dynamic_message_unittest.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/map_field_test.cc Examining data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc FINAL RESULTS: data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:210:13: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int len = readlink("/proc/self/exe", buffer, PATH_MAX); data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:387:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Test was asked for ", data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:406:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Test was asked for ", data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:443:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string effective_test_name = StrCat( data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:574:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(setting.ConformanceLevelToString(level), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:618:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string effective_test_name = StrCat( data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:645:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string effective_test_name = StrCat( data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:771:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataScalar", type_name, "[", i, "]"), REQUIRED, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:774:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataScalarBinary", type_name, "[", i, "]"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:855:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataRepeated", type_name, ".UnpackedInput"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:858:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataRepeated", type_name, ".PackedInput"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:866:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:870:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:874:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:878:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:882:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:886:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataRepeated", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:902:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataRepeated", type_name), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:978:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataMap", key_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:991:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataMap", key_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1004:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataMap", key_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1017:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataMap", key_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1034:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataMap", key_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1048:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataMap", key_type_name, value_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1062:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataMap", key_type_name, value_type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1128:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataOneof", type_name, ".DefaultValue"), REQUIRED, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1131:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataOneofBinary", type_name, ".DefaultValue"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1143:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataOneof", type_name, ".NonDefaultValue"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1146:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataOneofBinary", type_name, ".NonDefaultValue"), data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1152:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). const string proto = StrCat(default_value, non_default_value); data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1158:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataOneof", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1161:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidBinaryProtobufTest(StrCat("ValidDataOneofBinary", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1178:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). const string proto = StrCat(other_value, non_default_value); data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1184:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). RunValidProtobufTest(StrCat("ValidDataOneof", type_name, data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:1188:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("ValidDataOneofBinary", type_name, data/protobuf-4.0.0~rc2/conformance/conformance_test.cc:132:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(ConformanceLevelToString(level_), ".", rname, ".", data/protobuf-4.0.0~rc2/conformance/conformance_test.cc:293:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). differences = StrCat("Expect: ", ToOctString(equivalent_wire_format), data/protobuf-4.0.0~rc2/conformance/conformance_test_runner.cc:305:26: [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. GOOGLE_CHECK_SYSCALL(execv(executable.get(), const_cast<char **>(argv.data()))); data/protobuf-4.0.0~rc2/conformance/text_format_conformance_suite.cc:88:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Test was asked for ", data/protobuf-4.0.0~rc2/conformance/text_format_conformance_suite.cc:107:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Test was asked for ", data/protobuf-4.0.0~rc2/conformance/text_format_conformance_suite.cc:144:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(setting.ConformanceLevelToString(level), data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:211: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 sprintf_s data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:213: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 std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:213:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:215: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:215: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:218: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:218: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:220: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 std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:220:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:224:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define sscanf std::sscanf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:224:21: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define sscanf std::sscanf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:1804:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer, format, &value); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:1807:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. count = sscanf(buffer.c_str(), format, &value); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4020: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 sprintf_s data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4022: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 std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4022:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4024: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4024: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4027: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4027: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4029: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 std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4029:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf std::snprintf data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4035: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4035: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4118:11: [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. len = snprintf(buffer, sizeof(buffer), formatString, value); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4122:13: [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. len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "NaN" : "null"); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4124:13: [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. len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "-Infinity" : "-1e+9999"); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4126:13: [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. len = snprintf(buffer, sizeof(buffer), useSpecialFloats ? "Infinity" : "1e+9999"); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:93:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:94:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:107:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:108:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:121:35: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #error Need implementations of [v]snprintf and va_copy data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4555:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret, prefix); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:92:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:93:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:106:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:107:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:120:35: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #error Need implementations of [v]snprintf and va_copy data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:87:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:88:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:101:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:102:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:115:35: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #error Need implementations of [v]snprintf and va_copy data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4092:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret, prefix); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8630:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(dst, (use_hex ? "\\x%02x" : "\\%03o"), (uint8_t)*buf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8662:13: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. written = vsprintf(str, fmt, args); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12576:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, inf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12580:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, neginf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13278:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer + base_len, nanos_buffer + 1); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13352:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer + UPB_TIMESTAMP_BEFORE_NANO_LEN, nanos_buffer + 1); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:86:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:87:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:100:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define _upb_snprintf snprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:101:24: [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 _upb_vsnprintf vsnprintf data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:114:35: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #error Need implementations of [v]snprintf and va_copy data/protobuf-4.0.0~rc2/src/google/protobuf/any_lite.cc:46:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(type_url_prefix, message_name); data/protobuf-4.0.0~rc2/src/google/protobuf/any_lite.cc:48:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(type_url_prefix, "/", message_name); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:107:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:159: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:225: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(file_path.c_str(), F_OK) != -1; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:1254: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(proto->c_str(), F_OK) < 0) { data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:1604: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:1606: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(parts[i].c_str(), F_OK) < 0) { data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc:74:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc:341: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc:2576:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). args.push_back(StrCat("--descriptor_set_in=", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_extension.cc:96:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int>(descriptor_->type())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_extension.cc:104:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["number"] = StrCat(descriptor_->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:64:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["index"] = StrCat(descriptor->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:65:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["number"] = StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:70:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:97:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["set_hasbit"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:100:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["clear_hasbit"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_field.cc:111:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(prefix, (*variables)["name"], "_"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_generator.cc:200:35: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator_context->Open(StrCat(basename, ".out/", i, ".cc"))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:505:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result += "_" + StrCat(field->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:641:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(number + 1, " - 1"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:643:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(number); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:651:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(macro_prefix, "_LONGLONG(", number + 1, ") - 1"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:653:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(macro_prefix, "_LONGLONG(", number, ")"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:657:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(macro_prefix, "_ULONGLONG(", number, ")"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:676:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_uint32()) + "u"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:760:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat("::", name); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:762:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(Namespace(file, options), "::", name); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:1382:17: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("::", ProtobufNamespace(options_), "::internal")); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:1515:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). field_name = StrCat("\"", field->full_name(), "\""); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.cc:1538:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(", ", QualifiedClassName(field->enum_type(), options_), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.h:733:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(x); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_helpers.h:735:56: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). static std::string ToString(strings::Hex x) { return StrCat(x); } data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_map_field.cc:76:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["number"] = StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_map_field.cc:77:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag"] = StrCat(internal::WireFormat::MakeTag(descriptor)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:84:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). std::string m = StrCat("0x", strings::Hex(masks[i], strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:87:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("((", has_bits_var, "[", i, "] & ", m, ") ^ ", m, ")")); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:94:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). : StrCat("(", Join(parts, "\n | "), ")"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:108:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:989:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->containing_oneof()->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1520:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). : StrCat("::$proto_ns$::internal::HasBits<", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1801:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["tag"] = StrCat(tag); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1802:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["hasbit"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1803:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["type"] = StrCat(CalcFieldNum(generator, field, options_)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1810:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(FindMessageIndexInFile(field->message_type())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:1885:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(FindMessageIndexInFile(field->message_type())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2272:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["presence"] = StrCat(field->containing_oneof()->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2275:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["presence"] = StrCat(has_bit_indices_[field->index()]); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2277:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["nwtype"] = StrCat(normal_wiretype); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2278:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["pwtype"] = StrCat(packed_wiretype); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2279:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["ptype"] = StrCat(processing_type); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2280:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["tag_size"] = StrCat(tag_size); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2451:38: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). has_bit_indices_[i] >= 0 ? StrCat(has_bit_indices_[i]) : "~0u"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:2915:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(chunk_mask, strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3219:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(chunk_mask, strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3267:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). const std::string mask = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3464:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(1u << (has_bit_index % 32), strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3489:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["start"] = StrCat(range->start); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3490:17: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["end"] = StrCat(range->end); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_message.cc:3842:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(chunk_mask, strings::ZERO_PAD_8)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc:106:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag"] = StrCat(internal::WireFormat::MakeTag(descriptor)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc:109:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["fixed_size"] = StrCat(fixed_size); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_string_field.cc:55:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor->default_value_string().length()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/cpp/cpp_string_field.cc:593:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor->containing_oneof()->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum.cc:82:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(number)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_enum.cc:87:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(number)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:66:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string tag_bytes = StrCat(tag_array[0]); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:68:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). tag_bytes += ", " + StrCat(tag_array[i]); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:71:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag"] = StrCat(tag); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:72:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat(tag_size); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:80:17: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). tag_bytes = StrCat(tag_array[0]); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:82:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). tag_bytes += ", " + StrCat(tag_array[i]); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:85:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["end_tag"] = StrCat(tag); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:111:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string hasBitsNumber = StrCat(presenceIndex_ / 32); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:112:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string hasBitsMask = StrCat(1 << (presenceIndex_ % 32)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:323:80: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StringToBase64(descriptor->default_value_string()) + "\"), 0, " + StrCat(descriptor->default_value_string().length()) + ")"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:359:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(value) + "D"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:370:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(value) + "F"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:373:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int64()) + "L"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:375:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint64()) + "UL"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:377:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:379:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint64()) + "UL"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:381:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:393:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:395:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:397:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int64()) + "L"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:399:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:401:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int64()) + "L"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_field_base.cc:409:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor_->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:164:55: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print("private int _hasBits$i$;\n", "i", StrCat(i)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:176:41: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). + ".Descriptor.MessageTypes[" + StrCat(descriptor_->index()) + "]"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:179:40: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). + ".Descriptor.NestedTypes[" + StrCat(descriptor_->index()) + "]"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:219:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(fieldDescriptor->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:243:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:385:63: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print("_hasBits$i$ = other._hasBits$i$;\n", "i", StrCat(i)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:701:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "end_tag", StrCat(end_tag_)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:730:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_message.cc:736:46: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print("case $tag$: {\n", "tag", StrCat(tag)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc:218:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "fixed_size", StrCat(fixedSize), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.cc:66:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.cc:420: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_context.cc:161:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). info.name += StrCat(field->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_context.cc:162:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). info.capitalized_name += StrCat(field->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:99:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(canonical_values_[i]->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:100:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(canonical_values_[i]->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:142:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(descriptor_->value(i)->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:205:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(canonical_values_[i]->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:275:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(descriptor_->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum.cc:288:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(descriptor_->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field.cc:68:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor->default_value_enum()->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field.cc:69:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field.cc:71:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field_lite.cc:75:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor->default_value_enum()->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field_lite.cc:76:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_field_lite.cc:78:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_lite.cc:90:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(canonical_values_[i]->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_lite.cc:124:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(descriptor_->value(i)->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_enum_lite.cc:174:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(canonical_values_[i]->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension.cc:72:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension.cc:74:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(descriptor->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_extension.cc:156:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor_->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.cc:253:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["number"] = StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.cc:269:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(descriptor->containing_oneof()->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.cc:272:33: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). info->name + "Case_ = " + StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_field.cc:275:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). info->name + "Case_ == " + StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.cc:178:51: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print(chain_statement, "method_num", StrCat(*method_num)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.cc:181:47: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print(method_decl, "method_num", StrCat(*method_num)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.cc:563:38: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "scope", scope, "index", StrCat(field->index()), "class", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_file.cc:567:49: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "scope", scope, "index", StrCat(field->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:142:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). enforce_lite ? StrCat(var_name, ".internalGetVerifier()") data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:143:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). : StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:154:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(enum_verifier_string, terminating_string).c_str()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:506:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:509:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(static_cast<int32>(field->default_value_uint32())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:511:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_int64()) + "L"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:513:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(static_cast<int64>(field->default_value_uint64())) + data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_helpers.cc:632:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). varName += StrCat(index); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:113:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(descriptor_->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:157:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(descriptor_->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:415:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["oneof_index"] = StrCat((oneof)->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:435:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:461:38: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "field_number", StrCat(field->number()), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:493:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(descriptor_->field(i)->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:762:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(range->end)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:836:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), "capitalized_name", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:1040:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:1114:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:1218:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(tag))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message.cc:1234:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(packed_tag))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder.cc:127:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["oneof_index"] = StrCat(oneof->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder.cc:231:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), "capitalized_name", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder.cc:256:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), "capitalized_name", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_builder_lite.cc:100:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["oneof_index"] = StrCat(oneof->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.cc:234:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["oneof_index"] = StrCat((oneof)->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.cc:246:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.cc:270:38: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "field_number", StrCat(field->number()), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_message_lite.cc:306:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(descriptor_->field(i)->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field.cc:115:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(WireFormat::MakeTag(descriptor))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field.cc:116:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field.cc:132:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["fixed_size"] = StrCat(fixed_size); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field_lite.cc:81:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(WireFormat::MakeTag(descriptor))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field_lite.cc:82:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_primitive_field_lite.cc:140:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["fixed_size"] = StrCat(fixed_size); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:92:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(descriptor_->index())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:212:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:259:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:304:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:359:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_service.cc:423:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["index"] = StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field.cc:74:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(WireFormat::MakeTag(descriptor))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field.cc:75:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field_lite.cc:75:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(WireFormat::MakeTag(descriptor))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/java/java_string_field_lite.cc:76:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["tag_size"] = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:422:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(snake_name, "_long_sccs_", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:569:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->number() - parent_type->field(i)->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:573:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:593:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(index); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:831:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->default_value_int32())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:838:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int32>(field->default_value_uint32()))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:841:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(field->default_value_int64())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:846:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(static_cast<int64>(field->default_value_uint64()))); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:848:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_enum()->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:1414:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(pivot); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:2298:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). use_default ? StrCat(", ", JSFieldDefault(field)) : ""; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3120:46: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->Print(" case $num$:\n", "num", StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3163:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). ? (StrCat(field->number()) + ", ") data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3317:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number()), "keyWriterFn", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3333:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3377:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(value->number()), "comma", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3419:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number()), "name", extension_object_name, data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3440:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number()), "class", extension_scope, "name", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/js/js_generator.cc:3462:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "index", StrCat(field->number()), "class", extension_scope, "name", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_enum.cc:145:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "value", StrCat(all_values_[i]->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_extension.cc:89:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). vars["number"] = StrCat(descriptor_->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_field.cc:78:34: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). (*variables)["field_number"] = StrCat(descriptor->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_field.cc:229:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["has_index"] = StrCat(has_index); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_field.cc:253:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["has_index"] = StrCat(-index); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_file.cc:238:39: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "google_protobuf_objc_version", StrCat(GOOGLE_PROTOBUF_OBJC_VERSION)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:817:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:819:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_uint32()) + "U"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:825:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_int64()) + "LL"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:827:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field->default_value_uint64()) + "ULL"; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:1559:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). " Line " + StrCat(parser.last_line()) + ", " + parser.error_str(); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message.cc:454:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "sizeof_has_storage", StrCat(sizeof_has_storage)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message.cc:575:33: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "start", StrCat(sorted_extensions[i]->start), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_message.cc:576:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "end", StrCat(sorted_extensions[i]->end)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc:49:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["raw_index"] = StrCat(descriptor_->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc:68:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["index"] = StrCat(-index); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc:87:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "field_number", StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc:155:42: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). variables_["storage_offset_value"] = StrCat(has_base); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser.cc:1281:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). default_value->append(StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser.cc:1304:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). default_value->append(StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.cc:902:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.cc:911:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.cc:929:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "number", StrCat(field->number()), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:228:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field.default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:230:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field.default_value_uint32()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:232:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field.default_value_int64()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:234:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field.default_value_uint64()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:270:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(field.default_value_enum()->number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:511:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(top_level_enum_values[i].second)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:591:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(extension_field.number())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:638:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["index"] = StrCat(descriptor.index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:660:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["index"] = StrCat(method->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:787:52: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer_->Print("($start$, $end$), ", "start", StrCat(range->start), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:788:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "end", StrCat(range->end)); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:798:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["index"] = StrCat(desc->index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1151:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["index"] = StrCat(descriptor.index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1152:17: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["number"] = StrCat(descriptor.number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1180:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["index"] = StrCat(field.index()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1181:17: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["number"] = StrCat(field.number()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1182:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["type"] = StrCat(field.type()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1183:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["cpp_type"] = StrCat(field.cpp_type()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1184:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). m["label"] = StrCat(field.label()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1324:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "serialized_start", StrCat(offset), "serialized_end", data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/python/python_generator.cc:1325:7: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(offset + sp.size())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:59:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ns, s); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:329: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:332: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/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:1986:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:1989:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(default_value_int64()); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:1992:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(default_value_uint32()); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:1995:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(default_value_uint64()); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:2701:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). std::string label = StrCat(kLabelToName[this->label()], " "); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.cc:4576:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). *full_name = StrCat(scope, ".", proto_name); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database.cc:55:33: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). : StrCat(prefix, ".", desc_proto.name()); data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database.cc:482:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(p, p.empty() ? "" : ".", symbol(index)); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:282:5: [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. int access(const char* path, int mode) { data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.h:66:21: [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. PROTOBUF_EXPORT int access(const char* path, int mode); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:301: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. EXPECT_EQ(access(test_tmpdir.c_str(), F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:302: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. EXPECT_EQ(access(path.c_str(), F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:303: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. EXPECT_EQ(access(path.c_str(), W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:304: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. EXPECT_EQ(access(file.c_str(), F_OK | W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:305: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. EXPECT_NE(access((file + ".blah").c_str(), F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:306: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. EXPECT_NE(access((file + ".blah").c_str(), W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:308: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. EXPECT_EQ(access(".", F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:309: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. EXPECT_EQ(access(".", W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:310: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. EXPECT_EQ(access((test_tmpdir + "/accesstest").c_str(), F_OK | W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:311: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. ASSERT_EQ(access((test_tmpdir + "/./normalize_me/.././accesstest").c_str(), data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:314: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. EXPECT_NE(access("io_win32_unittest.AccessTest.nonexistent", F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:315: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. EXPECT_NE(access("io_win32_unittest.AccessTest.nonexistent", W_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:317: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. ASSERT_EQ(access("c:bad", F_OK), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:319: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. ASSERT_EQ(access("/tmp/bad", F_OK), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:321: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. ASSERT_EQ(access("\\bad", F_OK), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:383: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. EXPECT_EQ(access(path.c_str(), F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:395: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. EXPECT_EQ(access(path.c_str(), F_OK), 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc:63:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:87:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/map_test.cc:1088:51: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). static std::string StrFunc(int i, int j) { return StrCat(Func(i, j)); } data/protobuf-4.0.0~rc2/src/google/protobuf/map_test.cc:3268:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(n); data/protobuf-4.0.0~rc2/src/google/protobuf/message_lite.cc:69:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat("MessageLite at 0x", strings::Hex(address)); data/protobuf-4.0.0~rc2/src/google/protobuf/reflection_ops.cc:377:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result.append(StrCat(index)); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_reflection_unittest.cc:55:51: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). static std::string StrFunc(int i, int j) { return StrCat(Func(i, 4)); } data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1989:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). *new_data = "name-" + StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1993:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). *new_data = "name-" + StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:2027:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). *new_data = "name-" + StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:2031:27: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). *new_data = "name-" + StrCat(i); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.cc:46: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.cc:46: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.cc:224: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc:67: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc:81: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(nullptr, 0, format, backup_ap); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc:98: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:57: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:57: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:507:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(dest + used, (use_hex ? "\\x%02x" : "\\%03o"), data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1475:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b) { data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1484:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c) { data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1494:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1504:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1515:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1527:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1541:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1554:8: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). string StrCat(const AlphaNum &a, const AlphaNum &b, const AlphaNum &c, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:705:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:706:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:708:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:710:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:713:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:716:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:720:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:724:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). PROTOBUF_EXPORT string StrCat(const AlphaNum& a, const AlphaNum& b, data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:730:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). inline string StrCat(const AlphaNum& a) { return string(a.data(), a.size()); } data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:42: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:42: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:809:6: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). TEST(StrCat, Ints) { data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:823:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(s, us); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:825:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(i, ui); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:827:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(l, ul); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:829:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(ll, ull); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:831:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(ptrdiff, size); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:833:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(ptrdiff, intptr); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:835:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). answer = StrCat(uintptr, 0); data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:62:36: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. using google::protobuf::io::win32::access; data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:70: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:641:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Message is too deep, the parser exceeded the " data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:677:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Message is too deep, the parser exceeded the " data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:791:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). value = StrCat(int_value); // for error reporting data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1409:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Input size too large: ", static_cast<int64>(input.size()), data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1622:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(val)); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1626:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(val)); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1630:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(val)); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1634:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(val)); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2327:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(field->number())); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2405:40: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer->PrintEnum(enum_value, StrCat(enum_value), generator); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2455:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). std::string field_number = StrCat(field.number()); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2461:32: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). generator->PrintString(StrCat(field.varint())); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2472:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(field.fixed32(), strings::ZERO_PAD_8))); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2484:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(strings::Hex(field.fixed64(), strings::ZERO_PAD_16))); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:453: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:477: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:528:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(FieldValuePrinter::PrintInt32(v), " # x", data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:538:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(" { # ", message.GetDescriptor()->name(), ": ", data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:628: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:1413:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(line) + ":" + StrCat(col) + ": " + message + "\n", data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:1413:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(line) + ":" + StrCat(col) + ": " + message + "\n", data/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:1639:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(unittest::TestAllTypes::BAZ)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:179:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return InvalidArgument(StrCat("\"", str_, "\"")); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:233:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(i32_); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:235:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(i64_); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:237:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(u32_); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:239:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(u64_); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:247:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat("\"", str_.ToString(), "\""); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:251:14: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat("\"", base64, "\""); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:359:28: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return InvalidArgument(StrCat("\"", str_, "\"")); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/datapiece.cc:363:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return InvalidArgument(StrCat("\"", std::string(str_), "\"")); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:58:12: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(prefix, segment); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:60:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(prefix, ".", segment); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:138:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:151:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:164:15: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:201:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid FieldMask '", paths, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:211:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid FieldMask '", paths, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/field_mask_utility.cc:217:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid FieldMask '", paths, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.cc:90:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return RenderSimple(name, StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.cc:95:29: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return RenderSimple(name, StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.cc:102:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). WriteRawString(StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_objectwriter.cc:111:18: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). WriteRawString(StrCat(value)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc:295:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Unknown parse type: ", type)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc:839:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(message, "\n", segment, "\n", location)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc:848:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return ReportFailure(StrCat("Unexpected end of string. ", message)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc:858:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Message too deep. Max recursion depth reached for key '", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.cc:479:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). InvalidName(name, StrCat("Missing descriptor for field: ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.cc:522:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). InvalidName(name, StrCat("Missing descriptor for field: ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.cc:553:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). InvalidName(name, StrCat("Missing descriptor for field: ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/proto_writer.cc:569:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:342:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Timestamp seconds exceeds limit for field: ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:349:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Timestamp nanos exceeds limit for field: ", field_name)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:367:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Duration seconds exceeds limit for field: ", field_name)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:373:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Duration nanos exceeds limit for field: ", field_name)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:381:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Duration nanos is non-negative, but seconds is " data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:782:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid configuration. Could not find the type: ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:950:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<int32>(buffer32)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:956:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<int64>(buffer64)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:962:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<uint32>(buffer32)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:968:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<uint64>(buffer64)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:974:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(WireFormatLite::ZigZagDecode32(buffer32)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:980:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(WireFormatLite::ZigZagDecode64(buffer64)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:986:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<int32>(buffer32)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:992:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<int64>(buffer64)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:998:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<uint32>(buffer32)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:1004:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = StrCat(bit_cast<uint64>(buffer64)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource.cc:1099:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Message too deep. Max recursion depth reached for type '", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource_test.cc:480:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). label->set_key(StrCat("i", i)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource_test.cc:481:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). label->set_value(StrCat("v", i)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource_test.cc:586:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). next->set_name(StrCat("author_name_", i)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectsource_test.cc:594:21: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). next->set_m_str(StrCat("count_", i)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:394:31: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Missing @type for any field in ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:763:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). InvalidValue("Map", StrCat("Cannot have repeated items ('", name, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:860:25: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). InvalidValue("Map", StrCat("Cannot bind a list to map for field '", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:927:41: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "string_value", DataPiece(StrCat(int_value.value()), true)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:941:41: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). "string_value", DataPiece(StrCat(int_value.value()), true)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1001:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid data type for timestamp, value is ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1011:37: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return Status(INVALID_ARGUMENT, StrCat("Invalid time format: ", value)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1032:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid data type for field mask, value is ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1048:19: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid data type for duration, value is ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1121:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Field '", name, "', ", status.message())); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1167:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Field '", name, "', ", status.message())); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1201:22: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Field '", name, "', ", status.message())); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/protostream_objectwriter.cc:1293:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Repeated map key: '", unnormalized_name, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/utility.cc:140:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(kTypeServiceBaseUrl, "/", simple_type); data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/utility.h:179:10: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(value); data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:140:24: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(loc_string, unknown_name, ": ", message)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:148:9: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(GetLocString(loc), ": invalid value ", std::string(value), data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:155:30: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(GetLocString(loc), ": missing field ", data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:166:20: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). loc_string = StrCat("(", loc_string, ")"); data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1782:26: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer_->PrintRaw(StrCat(specific_field.unknown_field_number)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1785:43: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). printer_->Print("[$name$]", "name", StrCat(specific_field.index)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1789:23: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat(specific_field.new_index)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1842:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). output = StrCat(unknown_field->varint()); data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1845:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). output = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/message_differencer.cc:1849:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). output = StrCat( data/protobuf-4.0.0~rc2/src/google/protobuf/util/time_util.cc:187:13: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result += StrCat(seconds); data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc:312:11: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). StrCat("Invalid type URL, type URLs must be of the form '", data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc:322:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int32()); data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc:325:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_int64()); data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc:328:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint32()); data/protobuf-4.0.0~rc2/src/google/protobuf/util/type_resolver_util.cc:331:16: [4] (buffer) StrCat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). return StrCat(descriptor->default_value_uint64()); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:205:5: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. realpath(dirtybuffer, buffer); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:75: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* file_path = getenv("GPB_OBJC_EXPECTED_PACKAGE_PREFIXES"); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:79:30: [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* suppressions = getenv("GPB_OBJC_EXPECTED_PACKAGE_PREFIXES_SUPPRESSIONS"); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/mutex.h:80:27: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. CriticalSectionLock() { InitializeCriticalSection(&critical_section_); } data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/mutex.h:82:17: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. void lock() { EnterCriticalSection(&critical_section_); } data/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:80: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:113:28: [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 *from_environment = getenv("TEST_TMPDIR"); data/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:124:19: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). string result = tmpnam(b); data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:123: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[VARINT_MAX_LEN]; data/protobuf-4.0.0~rc2/conformance/binary_json_conformance_suite.cc:131: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[VARINT_MAX_LEN]; data/protobuf-4.0.0~rc2/conformance/conformance_test_runner.cc:295: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(executable.get(), executable_.c_str(), executable_.size()); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:142: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. typedef char UIntToStringBuffer[uintToStringBufferSize]; data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:999: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[18 + 16 + 16 + 1]; data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:1802: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, token.start_, length); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2003: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[18 + 16 + 16 + 1]; data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2448: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 ALIGNAS(8) kNull[sizeof(Value)] = { 0 }; data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2509: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(newString, value, length); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2533: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(newString + sizeof(unsigned), value, length); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4108: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/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4111: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 formatString[6]; data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4112:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(formatString, "%%.%dg", precision); data/protobuf-4.0.0~rc2/objectivec/GPBDescriptor_PackagePrivate.h:363:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char GPBInternalCompileAssertSymbol(__LINE__, msg) [ ((test) ? 1 : -1) ] data/protobuf-4.0.0~rc2/php/ext/google/protobuf/arena.c:92: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(&Arena_object_handlers, &std_object_handlers, data/protobuf-4.0.0~rc2/php/ext/google/protobuf/array.c:585: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/array.c:600: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:367: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(ptr, Z_STRVAL_P(php_val), size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:392:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:393:20: [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(buf, "%lld", upb_val.int64_val); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:403:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:404:20: [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(buf, "%lld", (int64_t)upb_val.uint64_val); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1010: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1018: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1027: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1036: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1045: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1053: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/map.c:573: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/map.c:588: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.c:535: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(data_copy, data, data_len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.c:591: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(data_copy, data, data_len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.c:618:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/message.c:905: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(h, &std_object_handlers, sizeof(zend_object_handlers)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:56: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(sink->ptr + sink->len, ptr, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:119: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(lower, segment, length); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:514: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(mem, &val, 1 << op); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:524: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(mem, &val, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:551: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(mem, val.str_val.data, val.str_val.size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:571: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(out, &elem, scale); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:657: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(mem, &val, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:660: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(mem, &val, 8); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:663: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(mem, &val, 4); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:666: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(mem, &val, 1); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:700: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(&val, ptr, 4); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:707: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(&val, ptr, 8); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:863: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(e->ptr, data, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:891: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(&u64, &d, sizeof(uint64_t)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:898: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(&u32, &d, sizeof(uint32_t)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1215: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 _upb_fieldtype_to_sizelg2[12] = { data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1283: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(in->unknown + in->unknown_len, data, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1364: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(data + (elem << lg2), value, 1 << lg2); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1431: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(p, s, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1645: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(str, &len, sizeof(uint32_t)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1646:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (k2.str.len) memcpy(str + sizeof(uint32_t), k2.str.str, k2.str.len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:3095: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 descriptor[7619] = {'\n', ' ', 'g', 'o', 'o', 'g', 'l', 'e', '/', 'p', 'r', 'o', 't', 'o', 'b', 'u', 'f', '/', 'd', 'e', 's', 'c', 'r', 'i', 'p', data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:3422:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1]; /* Null-terminated string data follows. */ data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:3429:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (len) memcpy(ret->str, data, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4557: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(&ret[n + 1], name.data, name.size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4695: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 nullz[64]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4709: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(nullz, str, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5609:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char _upb_fieldtype_to_mapsize[12] = { data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5638: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(&val, mem, get_field_size(field)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5722: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(&ret, mem, sizeof(void*)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5737: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(mem, &ret, sizeof(void*)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5753: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(mem, &val, get_field_size(field)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5884: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(&ret, data + (i << lg2), 1 << lg2); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5892: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(data + (i << lg2), &val, 1 << lg2); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:6466: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. const signed char table[256] = { data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:7318: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(tmp, pre_type_data, len - 1); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:7462:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(e->ptr, data, len); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:7465:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (have) memcpy(e->ptr, data, have); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:7587: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[4]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:250: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 msg[UPB_STATUS_MAX_MESSAGE]; /* Error message; NULL-terminated. */ data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:406: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(ret, ptr, oldsize); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:589: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(&val->val, &cval, sizeof(cval)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:593: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(&val->val, &cval, sizeof(cval)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:624:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (len) memcpy(len, mem, sizeof(*len)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1006:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char _upb_fieldtype_to_size[12]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1187: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(PTR_AT(ptr, arr->len * elem_size, char), value, elem_size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1242: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, &key, sizeof(key)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1244: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, key.data, size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1254: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(&ret, &strp, sizeof(strp)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1256: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(&ret, val, size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1264: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, strp, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1266: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, &val, size); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1386: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(strp, val, sizeof(*strp)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:1388: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(&ent->val.val, val, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/defs.c:2033: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(data, str, ret.size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c:46: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(p + oldlen, str, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c:96: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(sink->ptr + sink->len, ptr, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c:393: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 key_storage[NATIVE_SLOT_MAX_SIZE]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c:394: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 value_storage[NATIVE_SLOT_MAX_SIZE]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/encode_decode.c:1000: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 allocbuf[STACK_ENV_STACKBYTES]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/map.c:365: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 keybuf[TABLE_KEY_BUF_LENGTH]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/map.c:389: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 keybuf[TABLE_KEY_BUF_LENGTH]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/map.c:426: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 keybuf[TABLE_KEY_BUF_LENGTH]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/map.c:447: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 keybuf[TABLE_KEY_BUF_LENGTH]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c:73: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(Message_data(msg), desc->layout->empty_template, desc->layout->size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char wrapper_field_name[name_len - 8]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c:219:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char enum_name[name_len - 5]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/repeated_field.c:205: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(self->elements, old_elems, self->size * elem_size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/repeated_field.c:247: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(memory, data, element_size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/storage.c:384: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(to, from, native_slot_size(type)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/storage.c:404: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(to, from, native_slot_size(type)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:465: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(mem, &val, 1 << op); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:472: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(mem, &val, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:499: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(mem, val.str_val.data, count << op); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:519: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(out, &elem, scale); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:600: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(mem, &val, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:603: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(mem, &val, 8); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:606: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(mem, &val, 4); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:609: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(mem, &val, 1); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:643: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(&val, ptr, 4); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:650: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(&val, ptr, 8); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c: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(e->ptr, data, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:834: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(&u64, &d, sizeof(uint64_t)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:841: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(&u32, &d, sizeof(uint32_t)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1172: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 _upb_fieldtype_to_sizelg2[12] = { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1254: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(in->unknown + in->unknown_len, data, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1339: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(data + (elem << lg2), value, 1 << lg2); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1406: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(p, s, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1620: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(str, &len, sizeof(uint32_t)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1621: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(str + sizeof(uint32_t), k2.str.str, k2.str.len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:2394: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(ret, ptr, oldsize); /* Preserve existing data. */ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:2977:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1]; /* Null-terminated string data follows. */ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:2984: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(ret->str, data, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4094: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(&ret[n + 1], name.data, name.size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4232: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 nullz[64]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4246: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(nullz, str, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5131:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char _upb_fieldtype_to_mapsize[12] = { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5168: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(&val, mem, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5246: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(&ret, mem, sizeof(void*)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5261: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(mem, &ret, sizeof(void*)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5276: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(mem, &val, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5335: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(&ret, data + (i << lg2), 1 << lg2); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:5343: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(data + (i << lg2), &val, 1 << lg2); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:6362: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(&dispatch, p, sizeof(void*)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:6861:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen("/tmp/upb-bytecode", "w"); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:6867:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen("/tmp/upb-bytecode.bin", "wb"); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7236: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(d->residual_end, d->buf_param, d->size_param); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7246: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(d->residual, d->ptr, save); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7260: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, d->ptr, bytes); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7304: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, d->ptr, ret); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7307: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((char *)buf + ret, d->buf_param, copy); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7316: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(buf, d->ptr, bytes); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7410:49: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static double as_double(uint64_t n) { double d; memcpy(&d, &n, 8); return d; } data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7411:49: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static float as_float(uint32_t n) { float f; memcpy(&f, &n, 4); return f; } data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7663: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(&d->top->dispatch, d->pc, sizeof(void*)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7782:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&actual, d->ptr, 2); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7797: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(&expected, d->pc, 8); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8178: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(e->ptr, data, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8248:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[UPB_PB_VARINT_MAX_LEN]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8277: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 tag[7]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8320: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(&ret, &d, sizeof(uint64_t)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8326: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(&ret, &d, sizeof(uint32_t)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:8600: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 dstbuf[4096], *dst = dstbuf, *dstend = dstbuf + sizeof(dstbuf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9096: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(sink->ptr + sink->len, ptr, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9454:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char output[3]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9505:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char output[2]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9604: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(p->accumulate_buf, p->accumulated, p->accumulated_len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9608: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(p->accumulate_buf + p->accumulated_len, buf, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9802: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 utf8[3]; /* support \u0000 -- \uFFFF -- need only three bytes. */ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10409: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 seconds_buf[14]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10410: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 nanos_buf[12]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10435: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(seconds_buf, buf, fraction_start); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10459: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(nanos_buf + 1, buf + fraction_start, len - fraction_start); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10505:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). val = atoi(buf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10595: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 nanos_buf[12]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:10617: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(nanos_buf + 1, buf, len); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12532: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 escape_buf[8]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12643:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[64]; \ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12668:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[64]; \ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12850: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 data[16000]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13245: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[UPB_DURATION_MAX_JSON_LEN]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13270:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nanos_buffer[UPB_DURATION_MAX_NANO_LEN + 3]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13315: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[UPB_TIMESTAMP_MAX_JSON_LEN]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13344:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nanos_buffer[UPB_TIMESTAMP_MAX_NANO_LEN + 3]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h: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 msg[UPB_STATUS_MAX_MESSAGE]; /* Error message; NULL-terminated. */ data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:575: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(&val->val, &cval, sizeof(cval)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:579: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(&val->val, &cval, sizeof(cval)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:610:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (len) memcpy(len, mem, sizeof(*len)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1001:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char _upb_fieldtype_to_size[12]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1116: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(PTR_AT(ptr, arr->len * elem_size, char), value, elem_size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1171: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, &key, sizeof(key)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1173: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, key.data, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1183: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(&ret, &strp, sizeof(strp)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1185: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(&ret, val, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1193: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, strp, sizeof(upb_strview)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1195: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, &val, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1315: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(strp, val, sizeof(*strp)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:1317: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(&ent->val.val, val, size); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:6134: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 residual[UPB_DECODER_MAX_RESIDUAL_BYTES]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:6371: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[UPB_PB_VARINT_MAX_LEN]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:6377: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[UPB_PB_VARINT_MAX_LEN]; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:6381: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(&ret, buf, bytes); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/wrap_memcpy.c:44:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(dest, src, n); data/protobuf-4.0.0~rc2/src/google/protobuf/api.pb.cc:639: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(&request_streaming_, &from.request_streaming_, data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:110:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:196: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_PATH]; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:199: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[PATH_MAX]; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.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 dirtybuffer[PATH_MAX]; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:209: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[PATH_MAX]; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:476:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(filename.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:536: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:751: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:759: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:1069: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(), O_RDONLY | O_BINARY); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:2132: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(dependency_out_name_.c_str(), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:2359: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_out_name_.c_str(), data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc:78:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface_unittest.cc:2544: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.cc:67:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer.cc:504: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:67:38: [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). using ::google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:69: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). using ::open; data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc:1538:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = posix::open(path.c_str(), O_RDONLY); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/php/php_generator.cc:593:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char symbol[16] = { data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/plugin.pb.cc:267: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(&major_, &from.major_, data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:218: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:417: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/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:2285: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(&start_, &from.start_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:2575: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(&start_, &from.start_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:3671: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(&number_, &from.number_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:4522: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(&start_, &from.start_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:5837: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(&client_streaming_, &from.client_streaming_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:6342: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(&java_multiple_files_, &from.java_multiple_files_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:7231: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(&message_set_wire_format_, &from.message_set_wire_format_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:7591: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(&ctype_, &from.ctype_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:8223: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(&allow_alias_, &from.allow_alias_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:9051: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(&deprecated_, &from.deprecated_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:9668: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(&positive_int_value_, &from.positive_int_value_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor.pb.cc:10691: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(&begin_, &from.begin_, data/protobuf-4.0.0~rc2/src/google/protobuf/descriptor_database.cc:571: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/protobuf-4.0.0~rc2/src/google/protobuf/duration.pb.cc:100: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(&seconds_, &from.seconds_, data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:245: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:252:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, buffer_, size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:268: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(z.first, buffer_, size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:692:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_end_, buffer_, ptr - buffer_); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:792:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_end_, buffer_, end_ - buffer_); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:805:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, end_, kSlopBytes); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:818:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_, end_, kSlopBytes); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:841:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, data, s); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:847:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, data, size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:872:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p, kSlopBytes); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:880:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&buffer, p, 4); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:895:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer, p, kSlopBytes); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.cc:903:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&buffer, p, 8); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:699:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, data, size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:723:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, s.data(), size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:740:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, s.data(), size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:1313: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:1327: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:1610: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:1623: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream.h:1695: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:192: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:207: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:253: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:284: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:301: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:435: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:446: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:460: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:471: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:577: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:592: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:641: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:651: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:666: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:668: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:697: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:741: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:762: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:780: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:804: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:824: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:841: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:861: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:882: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:904: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:933: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:1319: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/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:256:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(const char* path, int flags, int mode) { data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:321:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* fopen(const char* path, const char* mode) { data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:339:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::fopen(path, mode); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:445:7: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(inUtf8 ? CP_UTF8 : CP_ACP, 0, s, -1, nullptr, 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:450:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar( data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.h:65:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PROTOBUF_EXPORT FILE* fopen(const char* path, const char* mode); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.h:72:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PROTOBUF_EXPORT int open(const char* path, int flags, int mode = 0); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:294: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(file.c_str(), O_CREAT | O_WRONLY, 0644); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:334: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(file.c_str(), O_CREAT | O_WRONLY, 0644); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:342:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ASSERT_EQ(open("c:bad.txt", O_CREAT | O_WRONLY, 0644), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:344:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ASSERT_EQ(open("/tmp/bad.txt", O_CREAT | O_WRONLY, 0644), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32_unittest.cc:346:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ASSERT_EQ(open("\\bad.txt", O_CREAT | O_WRONLY, 0644), -1); data/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.cc:252: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.cc:264: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:55: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:63: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:89: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:118: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:155: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:211: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:254: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:294: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:318: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:343: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:367: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:416: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:443: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:498: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:509: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:524: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:539: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:556: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer_unittest.cc:580: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc:65:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:187: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:90:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:156: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:161: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:191: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:198: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:724:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0777); data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:755:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0777); data/protobuf-4.0.0~rc2/src/google/protobuf/message_lite.h:142:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[sizeof(T)]; data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:125:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_ + kSlopBytes, data, kSlopBytes); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:131:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_ + kSlopBytes, data, size_); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:261:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, ptr, block_size); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:277:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dst, ptr, block_size); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:304:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(ptr, data, size); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:527:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[8]; data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.cc:551:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[4]; data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:227:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(buffer_, flat.data(), flat.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:257: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_[2 * kSlopBytes] = {}; data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:401:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[2] = {static_cast<char>(tag | 0x80), static_cast<char>(tag >> 7)}; data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:418:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&tmp, p, 2); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:430:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&tmp, p, 4); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:442:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&tmp, p, 8); data/protobuf-4.0.0~rc2/src/google/protobuf/parse_context.h:454: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(&res, &tmp, sizeof(T)); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.cc:75: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(rep_->elements, old_rep->elements, data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.h:124: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(&tmp, p, sizeof(T)); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.h:125: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(p, q, sizeof(T)); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.h:126: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(q, &tmp, sizeof(T)); data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field.h:1641: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, static_cast<size_t>(array_size) * sizeof(Element)); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc:63: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(dest_, data, n); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc:82: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(outbuf_ + size_, bytes, n); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc:109: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(buf_ + size_, bytes, n); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc:126: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(bigger, buf_, size_); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/bytestream.cc:137: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(just_enough, buf_, size_); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.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 buffer[128]; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/common.cc:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:131:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 1: memcpy(dst, src, 1); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:132:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 2: memcpy(dst, src, 2); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:133:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 3: memcpy(dst, src, 3); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:134:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 4: memcpy(dst, src, 4); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:135:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 5: memcpy(dst, src, 5); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:136:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 6: memcpy(dst, src, 6); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:137:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 7: memcpy(dst, src, 7); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:138:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 8: memcpy(dst, src, 8); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:139:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 9: memcpy(dst, src, 9); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:140:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 10: memcpy(dst, src, 10); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:141:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 11: memcpy(dst, src, 11); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:142:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 12: memcpy(dst, src, 12); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:143:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 13: memcpy(dst, src, 13); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:144:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 14: memcpy(dst, src, 14); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:145:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 15: memcpy(dst, src, 15); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:146:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 16: memcpy(dst, src, 16); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/fastmem.h:147:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. default: memcpy(dst, src, size); break; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:194: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(&t, p, sizeof t); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:200: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(&t, p, sizeof t); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:206: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(&t, p, sizeof t); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:211: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(p, &v, sizeof v); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:215: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(p, &v, sizeof v); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/port.h:219: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(p, &v, sizeof v); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece.cc:96: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, ptr_ + pos, ret); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece_unittest.cc:284: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[4] = { '%', '%', '%', '%' }; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc:60: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringprintf.cc:140: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/protobuf-4.0.0~rc2/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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/structurally_valid.cc:324: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:529:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char c_escaped_len[256] = { data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:943: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1120: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1127: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1134: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1141: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1148: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1155: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1203: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1208: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1253: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1256: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1259: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1371: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1374: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1377: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1436: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, x.data(), x.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1444: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, x1.data(), x1.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1448: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, x2.data(), x2.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1457: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, x1.data(), x1.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1461: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, x2.data(), x2.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1465: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, x3.data(), x3.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1469: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, x4.data(), x4.size()); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:2278:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(output, reinterpret_cast<const char*>(&tmp) + sizeof(tmp) - len, len); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:2283: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 kUTF8LenTbl[256] = { data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:2429: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:617: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 digits[kFastToBufferSize]; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:440:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char encode_buffer[100]; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:442:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char decode_buffer[100]; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:579:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char websafe[100]; data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.cc:121: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:137:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char scratch_[kFastToBufferSize]; data/protobuf-4.0.0~rc2/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/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:64:36: [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). using google::protobuf::io::win32::fopen; data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:74: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:75: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(), text_mode ? "rt" : "rb"); data/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:94: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/file.cc:113: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:62:36: [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). using google::protobuf::io::win32::open; data/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:121: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:205: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/googletest.cc:220: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1307: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(buffer_, data, buffer_size_); data/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:1318: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format_unittest.cc:442: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/protobuf-4.0.0~rc2/src/google/protobuf/timestamp.pb.cc:100: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(&seconds_, &from.seconds_, data/protobuf-4.0.0~rc2/src/google/protobuf/type.pb.cc:787: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(&kind_, &from.kind_, data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_escaping.cc:52: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 kCommonEscapes[160][7] = { data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_escaping.cc:303: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[12] = "\\udead\\ubee"; data/protobuf-4.0.0~rc2/src/google/protobuf/util/internal/json_stream_parser.cc:517: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[UTFmax]; data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:65: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_, bytes, len); data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util.cc:71: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_, bytes, buffer_size_); data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util_test.cc:539: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[kOutputBufferLength]; data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util_test.cc:623: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 proto_buffer[10000]; data/protobuf-4.0.0~rc2/src/google/protobuf/wire_format_lite.h:1448: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, ii, static_cast<size_t>(bytes)); data/protobuf-4.0.0~rc2/conformance/conformance_cpp.cc:81:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t bytes_read = read(fd, (char*)buf + ofs, len); data/protobuf-4.0.0~rc2/conformance/conformance_test_runner.cc:319:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t bytes_read = read(fd, (char*)buf + ofs, len); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2542:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = static_cast<unsigned>(strlen(prefixed)); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2771:79: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value))); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:2842: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). otherComment.comment_, strlen(otherComment.comment_)); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3392: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). key, static_cast<unsigned>(strlen(key)), CZString::noDuplication); // NOTE! data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3443:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Value const* found = find(key, key + strlen(key)); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3455:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return resolveReference(key, key + strlen(key)); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3487:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return get(key, key + strlen(key), defaultValue); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3510: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). return removeMember(key, key + strlen(key), removed); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3524: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). removeMember(key, key + strlen(key), &removed); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3569:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return isMember(key, key + strlen(key)); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:3732: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). setComment(comment, strlen(comment), placement); data/protobuf-4.0.0~rc2/conformance/third_party/jsoncpp/jsoncpp.cpp:4150:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(value) * 2 + 3; // allescaped+quotes+NULL data/protobuf-4.0.0~rc2/objectivec/Tests/GPBTestUtilities.h:43:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return [NSData dataWithBytes:str length:strlen(str)]; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/convert.c:476:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(prefix_name), data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:158: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). zend_string *str = zend_string_init(classname, strlen(classname), 0); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:563: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). zend_string *str = zend_string_init(classname, strlen(classname), 0); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:803:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str = zend_string_init(classname, strlen(classname), 0); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:832:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str = zend_string_init(classname, strlen(classname), 0); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/def.c:1057:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define STR(str) (str), strlen(str) data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:136:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). stringsink_string(classname, prefix_given, strlen(prefix_given)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:163:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(php_namespace) != 0) { data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:164:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). stringsink_string(classname, php_namespace, strlen(php_namespace)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:169:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t package_len = strlen(package); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:189:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t package_len = strlen(package); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/names.c:192:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t fullname_len = strlen(fullname); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:1417:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strdup2(s, strlen(s), a); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:2287:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(status->msg, msg, UPB_STATUS_MAX_MESSAGE - 1); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:2309:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(status->msg); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4541: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). return n == strlen(b) && memcmp(a, b, n) == 0; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4552:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(prefix); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4619:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CHK_OOM(upb_strtable_insert3(ctx->addtab, name, strlen(name), v, ctx->tmp)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:4879: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). json_size = strlen(json_name); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5037: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). upb_strtable_insert3(&e->ntoi, name2, strlen(name2), v, ctx->alloc)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:5378: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). CHK_OOM(upb_strtable_insert3(&s->files, file->name, strlen(file->name), data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:6027: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). return str.size == strlen(lit) && memcmp(str.data, lit, str.size) == 0; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:6073:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(lit); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:6949:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t after_len = after ? strlen(after) : 0; data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.c:7472:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). jsonenc_putbytes(e, str, strlen(str)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:278: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). return upb_strview_make(data, strlen(data)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:770:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_insert2(t, key, strlen(key), val); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:782:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_lookup2(t, key, strlen(key), v); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:799:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_remove2(t, key, strlen(key), v); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:3277:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_oneofdef_ntof(o, name, strlen(name)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:3336: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). return upb_msgdef_ntoo(m, name, strlen(name)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:3341: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). return upb_msgdef_ntof(m, name, strlen(name)); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:3357:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_msgdef_lookupname(m, name, strlen(name), f, o); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/php-upb.h:3414: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 upb_enumdef_ntoi(e, name, strlen(name), num); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/protobuf.c:261: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). zend_hash_str_add_ptr(&PROTOBUF_G(name_msg_cache), k, strlen(k), (void*)m); data/protobuf-4.0.0~rc2/php/ext/google/protobuf/protobuf.c:267:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_hash_str_add_ptr(&PROTOBUF_G(name_enum_cache), k, strlen(k), (void*)e); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/defs.c:2030: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). ret.size = strlen(str); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c:195:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wrapper_field_name, name, name_len - 9); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/message.c:222:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(enum_name, name, name_len - 6); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:1392:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strdup2(s, strlen(s), a); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:2271:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(status->msg, msg, UPB_STATUS_MAX_MESSAGE - 1); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4078: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). return n == strlen(b) && memcmp(a, b, n) == 0; data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4089:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(prefix); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4156:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CHK_OOM(upb_strtable_insert3(ctx->addtab, name, strlen(name), v, ctx->tmp)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4416: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). json_size = strlen(json_name); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4566: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). upb_strtable_insert3(&e->ntoi, name2, strlen(name2), v, ctx->alloc)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:4908: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). CHK_OOM(upb_strtable_insert3(&s->files, file->name, strlen(file->name), data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7454:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int32_t ok = getbytes(d, &data, read); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7457:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read < bytes && memcmp(&data, &expected, read) == 0) { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:7457:55: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read < bytes && memcmp(&data, &expected, read) == 0) { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9903:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(buf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9976:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len == strlen("Infinity") && strcmp(buf, "Infinity") == 0) { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:9979:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (len == strlen("-Infinity") && strcmp(buf, "-Infinity") == 0) { data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:11418: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). capture_end(p, membername + strlen(membername)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:11435: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). capture_end(p, membername + strlen(membername)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:11452: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). capture_end(p, membername + strlen(membername)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12275:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). upb_strtable_insert3(&m->name_table, name, strlen(name), v, alloc); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12282:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). upb_strtable_insert3(&m->name_table, name, strlen(name), v, alloc); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12459: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). ret->len = strlen(ret->ptr); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12462: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). ret->len = strlen(ret->ptr); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12473: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). ret->len = strlen(str); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12549: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). print_data(p, escape, strlen(escape)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12575:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CHKLENGTH(length >= strlen(inf)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12577:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(inf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12579:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CHKLENGTH(length >= strlen(neginf)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12581:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen(neginf); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12711: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). putstring(p, symbolic_name, strlen(symbolic_name)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:12726: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). putstring(p, symbolic_name, strlen(symbolic_name)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13267: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). base_len = strlen(buffer); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13281:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). curr = strlen(buffer); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13282:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(buffer + curr, "s"); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13288:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). print_data(p, buffer, strlen(buffer)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13355:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). curr = strlen(buffer); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13356:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(buffer + curr, "Z"); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.c:13362:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). print_data(p, buffer, strlen(buffer)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:264: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). return upb_strview_make(data, strlen(data)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:756:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_insert2(t, key, strlen(key), val); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:768:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_lookup2(t, key, strlen(key), v); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:785:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_strtable_remove2(t, key, strlen(key), v); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:3206:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_oneofdef_ntof(o, name, strlen(name)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:3264: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). return upb_msgdef_ntoo(m, name, strlen(name)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:3269: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). return upb_msgdef_ntof(m, name, strlen(name)); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:3285:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return upb_msgdef_lookupname(m, name, strlen(name), f, o); data/protobuf-4.0.0~rc2/ruby/ext/google/protobuf_c/upb.h:3342: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 upb_enumdef_ntoi(e, name, strlen(name), num); data/protobuf-4.0.0~rc2/src/google/protobuf/arena_unittest.cc:310: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(original.optional_string().c_str()), data/protobuf-4.0.0~rc2/src/google/protobuf/arena_unittest.cc:311: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). strlen(arena_message->optional_string().c_str())); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/command_line_interface.cc:206:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(buffer); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/importer_unittest.cc:106: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/parser_unittest.cc:111: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:57:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* ns = (char*)malloc(strlen(s) + 1); data/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:339: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:344: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/protobuf-4.0.0~rc2/src/google/protobuf/compiler/subprocess.cc:418: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:704: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:708: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:750: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:751: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:755: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:758: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:770: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:773: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:776: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:790: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:797: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:800: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:852: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:856: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:872: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:876: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:894: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:898: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:917: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:921: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:940: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:942: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:943: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/protobuf-4.0.0~rc2/src/google/protobuf/io/coded_stream_unittest.cc:947: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/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.cc:349:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(int fd, void* buffer, size_t size) { data/protobuf-4.0.0~rc2/src/google/protobuf/io/io_win32.h:73:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PROTOBUF_EXPORT int read(int fd, void* buffer, size_t size); data/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.cc:115: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/protobuf-4.0.0~rc2/src/google/protobuf/io/printer.cc:203: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/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer_unittest.cc:295: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/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer_unittest.cc:499: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/protobuf-4.0.0~rc2/src/google/protobuf/io/tokenizer_unittest.cc:952: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc:66:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). using google::protobuf::io::win32::read; data/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc:136: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_impl.cc:275: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:313: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:314: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:321: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:322: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:332: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:337: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:614: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:625: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:639: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/protobuf-4.0.0~rc2/src/google/protobuf/io/zero_copy_stream_unittest.cc:645: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/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1919: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(), fibonacci.end(), data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1921: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/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1927: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(), halves.end(), data/protobuf-4.0.0~rc2/src/google/protobuf/repeated_field_unittest.cc:1929: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece.h:216:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length_ = CheckedSsizeTFromSizeT(strlen(str)); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/stringpiece.h:265:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length_ = CheckedSsizeTFromSizeT(strlen(str)); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:268: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:1241: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:2437: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.cc:2470: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(str); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:646:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : piece_data_(digits), piece_size_(strlen(FloatToBuffer(f, digits))) {} data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:648:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : piece_data_(digits), piece_size_(strlen(DoubleToBuffer(f, digits))) {} data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil.h:653:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : piece_data_(c_str), piece_size_(strlen(c_str)) {} data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:453:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cypher_length = strlen(base64_tests[i].cyphertext); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:581:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(websafe, base64_tests[i].cyphertext, cypher_length); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:783:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int plain_length = strlen(base64_strings[i].plaintext); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/strutil_unittest.cc:784:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int cypher_length = strlen(base64_strings[i].cyphertext); data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:92: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:109: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:111: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:113: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:115: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:117: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/protobuf-4.0.0~rc2/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_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} data/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:121: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:123: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:125: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:127: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/protobuf-4.0.0~rc2/src/google/protobuf/stubs/substitute.h:129: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/protobuf-4.0.0~rc2/src/google/protobuf/testing/zcgzip.cc:76: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/protobuf-4.0.0~rc2/src/google/protobuf/text_format.cc:2027: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). generator->Print(kDoNotParse, std::strlen(kDoNotParse)); data/protobuf-4.0.0~rc2/src/google/protobuf/util/json_util_test.cc:622:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). io::ArrayInputStream input_stream(json, strlen(json)); ANALYSIS SUMMARY: Hits = 1144 Lines analyzed = 349642 in approximately 8.10 seconds (43169 lines/second) Physical Source Lines of Code (SLOC) = 246566 Hits@level = [0] 58 [1] 184 [2] 436 [3] 8 [4] 515 [5] 1 Hits@level+ = [0+] 1202 [1+] 1144 [2+] 960 [3+] 524 [4+] 516 [5+] 1 Hits/KSLOC@level+ = [0+] 4.87496 [1+] 4.63973 [2+] 3.89348 [3+] 2.12519 [4+] 2.09275 [5+] 0.00405571 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.