Avoid BlockFrequency overflow problems (#66280)
Multiplying raw block frequency with an integer carries a high risk of overflow. - Add `BlockFrequency::mul` return an std::optional with the product or `nullopt` to indicate an overflow. - Fix two instances where overflow was likely.
parent
e80a8b4a
Please register or sign in to comment