Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing overflow checking #19

Open
gavinwahl opened this issue Jul 21, 2018 · 1 comment
Open

Missing overflow checking #19

gavinwahl opened this issue Jul 21, 2018 · 1 comment
Labels

Comments

@gavinwahl
Copy link

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.

@df7cb
Copy link
Owner

df7cb commented Jul 23, 2018

Right. I'll see to get that fixed.

@df7cb df7cb added the bug label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants