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): commit 4b4e188
Issue description
If a loop is defined over some non-literal static or dynamic array, the
type obtained from the annotation of the iterator is not used to
type-check the iterable. If the iterable's value type does not match the
annotation, the type-checker will miss it and the compiler will later
panic during code generation due to some assertion.
POC
For example, the following code crashes the compiler with vyper.exceptions.CodegenPanic: unhandled exception , parse_For.
Version Information
vyper --version
): commit 4b4e188Issue description
If a loop is defined over some non-literal static or dynamic array, the
type obtained from the annotation of the iterator is not used to
type-check the iterable. If the iterable's value type does not match the
annotation, the type-checker will miss it and the compiler will later
panic during code generation due to some assertion.
POC
For example, the following code crashes the compiler with
vyper.exceptions.CodegenPanic: unhandled exception , parse_For
.credits: @trocher
The text was updated successfully, but these errors were encountered: