Skip to content

Missing overflow checking #19

Description

@gavinwahl

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions