• Thomas Van Lenten's avatar
    Don't assume c-strings are 4 byte aligned. · d570d486
    Thomas Van Lenten authored
    The Undefined Behavior sanitizer flags one part of the unittests for this.
    For default values for `bytes` we write a length on the front of a c-string
    in the static data, apparently the compiler/linker doesn't always make this
    4 byte aligned, so it get flagged for undefined/degraded performance. Avoid
    this by using memcpy instead.
    d570d486
GPBDescriptor.m 34.4 KB