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

Fix potential overflows in utils::aligned_div, utils::rounded_div #9801

Merged
merged 1 commit into from Feb 19, 2021

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Feb 19, 2021

Bugfixes

  • Do not use value + nonzero as it can overflow if dectype(value) is u64 or s64.
  • Negating minimum negative values does not work and results in the same value, do not do that.

@Nekotekina Nekotekina merged commit b86ec2f into RPCS3:master Feb 19, 2021
@elad335 elad335 deleted the patch-14 branch March 2, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants