postgresql-unit icon indicating copy to clipboard operation
postgresql-unit copied to clipboard

Missing overflow checking

Open gavinwahl opened this issue 6 years ago • 1 comments

It looks like this addition is missing an overflow check: https://github.com/ChristophBerg/postgresql-unit/blob/cf6728e3773e1ff4a1c67f850aa44338405abafe/unit.h#L116

Multiplying values with very high exponents could result in undefined behavior.

gavinwahl avatar Jul 21 '18 04:07 gavinwahl

Right. I'll see to get that fixed.

df7cb avatar Jul 23 '18 08:07 df7cb