Skip to content

Missing overflow checking #19

Open
@gavinwahl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions