Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lite_unittest to pad varints before calling `internal::VarintP…
…arse()` The `VarintParse()` function is ordinarily called only by the proto parser, which always provides 16 bytes of "slop" space at the end of the buffer. The ARM-specific optimized path takes advantage of this by always reading at least 8 bytes. However, this caused some test failures in msan due to unit tests not providing a sufficient amount of initialized padding. This CL fixes the problem by making sure the unit tests initialize the full 10-byte buffer and adding a comment stating that this is a precondition of the function. PiperOrigin-RevId: 592366291
- Loading branch information