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

Too large multi-dimensional array causes crash #5058

Closed
axic opened this issue Sep 21, 2018 · 0 comments
Closed

Too large multi-dimensional array causes crash #5058

axic opened this issue Sep 21, 2018 · 0 comments
Assignees
Labels

Comments

@axic
Copy link
Member

axic commented Sep 21, 2018

Found by solfuzzer.

contract C {
  function f(bytes32[1263941234127518272][500] memory) public pure {}
}

Error:

Internal compiler error during compilation:
/Users/alex/Projects/solidity/libsolidity/ast/Types.cpp(1722): Throw in function virtual unsigned int dev::solidity::ArrayType::calldataEncodedSize(bool) const
Dynamic exception type: boost::exception_detail::clone_impl<dev::solidity::InternalCompilerError>
std::exception::what: Array size does not fit unsigned.
[dev::tag_comment*] = Array size does not fit unsigned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants