Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Length check accommodates NUL emitted by sprintf (protocolbuffers#10128)
Update the length check in google::protobuf::CEscapeInternal to account for the extra NUL character emitted by snprintf when escaping hex and octal sequences. That function is an internal detail, not exported via any header. Internally, it is used in two places, and both calls make buffers that do have space for the extra NUL. So in the actual usage, the check is redundant.
- Loading branch information