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
contractC {
function f( bytescalldatax,boolcond) externalpure {
bytes1 a = x[cond -1 : 2]. a;
if (0==1)
if (0<1)
continue;
}
}
produces:
Internal compiler error during compilation:
/home/user/solidity/libsolidity/ast/Types.h(797): Throw in function virtual std::unique_ptr<ReferenceType> solidity::frontend::ArraySliceType::copyForLocation(solidity::frontend::DataLocation, bool) const
Dynamic exception type: boost::exception_detail::clone_impl<solidity::langutil::InternalCompilerError>
std::exception::what:
[solidity::util::tag_comment*] =
when compiled.
On master, using AFL fuzzing. This was found with a new approach, that inlines a generic C-like source code mutation tool as a high-probability AFL havoc mutator.
Might be related to the other calldata storage location works we are doing.
chriseth
changed the title
Throw in function virtual std::unique_ptr<ReferenceType> solidity::frontend::ArraySliceType::copyForLocation(solidity::frontend::DataLocation, bool) const Dynamic exception type: boost::exception_detail::clone_impl<solidity::langutil::InternalCompilerError>
ArraySliceType::copyForLocation assertion failure
Feb 10, 2020
Description
This contract:
produces:
when compiled.
On master, using AFL fuzzing. This was found with a new approach, that inlines a generic C-like source code mutation tool as a high-probability AFL havoc mutator.
Environment
Steps to Reproduce
Save this contract in
shrink.sol
(or whatever filename)produces:
The text was updated successfully, but these errors were encountered: