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.pull/4264/head
parent
d83837ded5
commit
d570d48648
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue