mirror of https://github.com/grpc/grpc.git
[EE client channel resolver] Use std::strlen instead of sizeof in TXT record parsing (#33131)
This is a mistake made in https://github.com/grpc/grpc/pull/33030. `sizeof()` would count the null byte terminated the C string and would cause us to skip a byte if it is used as the index to `result->substr()`. This would also crash if `result` only contains `grpc_config=` as @drfloob pointed out. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->pull/33137/head
parent
cd44a2433e
commit
de295eb424
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue