Length check accommodates NUL emitted by sprintf (#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.pull/10135/head
parent
1bbf6f37cc
commit
af699898d2
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue