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

Detector Request: Implicit Typecast #2273

Open
akshatmittal opened this issue Jan 8, 2024 · 2 comments
Open

Detector Request: Implicit Typecast #2273

akshatmittal opened this issue Jan 8, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@akshatmittal
Copy link

Describe the desired feature

It would be great to have a detector that checks for an implicit typecast in the code.

Example:

uint64 a = 12345;
uint64 b = 1e18;

uint256 x = a * b;

This would revert since a * b happens in the uint64 space then gets upcasted to uint256 but won't be detected either by Solidity or Slither.

@akshatmittal akshatmittal added the enhancement New feature or request label Jan 8, 2024
@0xalpharush
Copy link
Member

This is something that is on our radar #1688 and we started work on in #2079

@akshatmittal
Copy link
Author

Thanks for the quick response @0xalpharush, looking forward to it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants