You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): b43ffac
Issue Description
When some node is folded the folded value is not validated. In the
general case, it is not an issue as the semantic validation phase will
catch the error. However, if the folded value is used in a type
annotation for a String or Byte type, the compiler will not raise.
POC
The following contract compiles although the size in byte of the String
is greater than the maximum value of uint256
x:String[max_value(uint256) +10]
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@): b43ffacIssue Description
When some node is folded the folded value is not validated. In the
general case, it is not an issue as the semantic validation phase will
catch the error. However, if the folded value is used in a type
annotation for a
String
orByte
type, the compiler will not raise.POC
The following contract compiles although the size in byte of the String
is greater than the maximum value of uint256
The text was updated successfully, but these errors were encountered: