vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.84k stars 788 forks source link

Missing Case in `clamp_basetype` #4083

Open ritzdorf opened 4 months ago

ritzdorf commented 4 months ago

Version Information

In the case the value to be clamped is an instance of a Flag type having 256 members, clamp_basetype() will make the compiler panic as the case is not handled. Note that in practice, the function is currently only called with Flag types needing clamping and this case should not be reachable.