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
IR-based Codegen fails to generate bin at version of 0820 #15044
Labels
Comments
EmptyByteArrayCopy also have the problem contract C {
bytes data;
function f() public returns (bytes memory) {
// Empty byte array
bytes memory t;
// Store something else in memory after it
uint[2] memory x;
x[0] = type(uint).max;
// Copy the empty byte array to storage,
// this will copy too much from memory.
data = t;
// Create a new byte array element,
// this will only update the length value.
data.push();
// Now, `data[0]` is `0xff` instead of `0`.
return data;
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I want to reproduce this bug AbiReencodingHeadOverflowWithStaticArrayCleanup, I find that IR-based Codegen fails to generate bin under version of 0821. However, if I use solc-0821, IR-based Codegen success.
Environment
Steps to Reproduce
If I remove --bin-runtime, test.sol can be compiled successfully.
The text was updated successfully, but these errors were encountered: