google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.77k stars 345 forks source link

bloaty: correct misuse of `std::log2` #271

Closed compnerd closed 3 years ago

compnerd commented 3 years ago

If the parameter to std::log2 is 0, a pole error occur. If the value is < 0, a domain error may occur. Ensure that the value being passed is always greater than 0.