Skip to content

Too large multi-dimensional array causes crash #5058

@axic

Description

@axic

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions