Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Unnecesary OR, renders the overflow check useless

Summary

OR assembly operation in if statement can affect its intended functionality and not revert when it shoud.

Vulnerability Details

The or function in yul affects the value of the division div(not(0), y), x), this gives in incorrect results for the gt function thus not reverting when it should

Impact

High - Incorrect functionality

Tools Used

Manual testing.
Chisel to verify step by step.

Recommendations

Remove or function, if statement should just look like the one on mulWad.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`mulWadUp` has a bad overflow check

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.