• Thomas Van Lenten's avatar
    Never use strlen on utf8 runs so null characters work. · 1a6c1d09
    Thomas Van Lenten authored
    Fixes https://github.com/google/protobuf/issues/1933
    
    Add a new test that forces strings into two different implementations from the
    NSString class cluster to help confirm we're exercising both paths by which
    CodedOutputStream will extract data from an NSString.
    
    Move the old +load test (that was flawed because the behavior really depends on
    the type of string from the NSString class cluster); into a unittest that
    targets the specific case we're adding a behavior confirmation on.
    
    As a bonus, improve the TextFormat generation of string characters < 0x20.
    1a6c1d09
Name
Last commit
Last update
..
DevTools Loading commit data...
ProtocolBuffers_OSX.xcodeproj Loading commit data...
ProtocolBuffers_iOS.xcodeproj Loading commit data...
Tests Loading commit data...
google/protobuf Loading commit data...
.gitignore Loading commit data...
GPBArray.h Loading commit data...
GPBArray.m Loading commit data...
GPBArray_PackagePrivate.h Loading commit data...
GPBBootstrap.h Loading commit data...
GPBCodedInputStream.h Loading commit data...
GPBCodedInputStream.m Loading commit data...
GPBCodedInputStream_PackagePrivate.h Loading commit data...
GPBCodedOutputStream.h Loading commit data...
GPBCodedOutputStream.m Loading commit data...
GPBCodedOutputStream_PackagePrivate.h Loading commit data...
GPBDescriptor.h Loading commit data...
GPBDescriptor.m Loading commit data...
GPBDescriptor_PackagePrivate.h Loading commit data...
GPBDictionary.h Loading commit data...
GPBDictionary.m Loading commit data...
GPBDictionary_PackagePrivate.h Loading commit data...
GPBExtensionInternals.h Loading commit data...
GPBExtensionInternals.m Loading commit data...
GPBExtensionRegistry.h Loading commit data...
GPBExtensionRegistry.m Loading commit data...
GPBMessage.h Loading commit data...
GPBMessage.m Loading commit data...
GPBMessage_PackagePrivate.h Loading commit data...
GPBProtocolBuffers.h Loading commit data...
GPBProtocolBuffers.m Loading commit data...
GPBProtocolBuffers_RuntimeSupport.h Loading commit data...
GPBRootObject.h Loading commit data...
GPBRootObject.m Loading commit data...
GPBRootObject_PackagePrivate.h Loading commit data...
GPBRuntimeTypes.h Loading commit data...
GPBUnknownField.h Loading commit data...
GPBUnknownField.m Loading commit data...
GPBUnknownFieldSet.h Loading commit data...
GPBUnknownFieldSet.m Loading commit data...
GPBUnknownFieldSet_PackagePrivate.h Loading commit data...
GPBUnknownField_PackagePrivate.h Loading commit data...
GPBUtilities.h Loading commit data...
GPBUtilities.m Loading commit data...
GPBUtilities_PackagePrivate.h Loading commit data...
GPBWellKnownTypes.h Loading commit data...
GPBWellKnownTypes.m Loading commit data...
GPBWireFormat.h Loading commit data...
GPBWireFormat.m Loading commit data...
README.md Loading commit data...
generate_well_known_types.sh Loading commit data...