-
Notifications
You must be signed in to change notification settings - Fork 276
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
Lack of precision vuln updated to precision loss. #86
base: master
Are you sure you want to change the base?
Conversation
vulnerabilities/precision-loss.md
Outdated
``` | ||
and ``funcB()`` returns: | ||
```solidity | ||
11 * 2 / 10 = 55 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually return 2. I think your example is mixed up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Fixed in the latest commit!
@@ -0,0 +1,44 @@ | |||
# Using ``msg.value`` in a Loop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will have to merge/rebase to remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's still included for some reason. Just me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no changes in the latest commit for msgvalue-loop.md file but file changes shows msgvalue-loop.md file being updated.
Also, Nothing seems to work even after merging and rebasing with both msgValue and master branch. I think it is because one commit from msgValue got included here and it is causing the problem. As this PR has no conflicts with the base branch, and msgvalue-loop.md content hasn't been changed and is similar to the master branch, it can be merged without any issues.
Or we can close this PR and create a new one.
Related Issue
Checklist
Describe the changes you've made:
I added precision loss due to solidity decimal truncation vulnerability including various ways this can occur.
Type of change
Select the appropriate checkbox:
Additional Information
I thought the title needed some change so I changed it to
Precision Loss
. You suggestedInteger Rounding
andInteger truncation
which are good for root cause but precision loss and rounding errors represent the actual vulnerability. Let me know if I should revert back to the root cause titles.