Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Fix LibFixedMath._mul() overflow #2311

Conversation

dorothy-zbornak
Copy link
Contributor

Description

Fixes an overflow scenario when doing LibFixedMath._mul(-1, MIN_FIXED_VALUE).

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@dorothy-zbornak dorothy-zbornak force-pushed the fix/contracts/staking/LibFixedMath-overflow-pt-2 branch from 95cb46d to ae2915b Compare November 1, 2019 16:54
@dorothy-zbornak dorothy-zbornak marked this pull request as ready for review November 1, 2019 16:54
@coveralls
Copy link

coveralls commented Nov 1, 2019

Coverage Status

Coverage remained the same at 75.286% when pulling 4f56d68 on fix/contracts/staking/LibFixedMath-overflow-pt-2 into 8e6d92c on development.

@dorothy-zbornak dorothy-zbornak merged commit fb8360e into development Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants