[fix] Prevent a signed integer overflow in timeout_encoding.cc (#32432)
Return `Timeout(kMaxHours, Unit::kHours)` if the value is about to overflow in `DivideRoundingUp`. <!-- 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/32439/head
parent
4b05dc88b7
commit
bdea76728b
3 changed files with 11 additions and 2 deletions
Binary file not shown.
Loading…
Reference in new issue