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
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
Compiler version: 0.8.20
Target EVM version (as per compiler settings): No restrictions
Framework/IDE (e.g. Truffle or Remix): Command-line
contractC {
bytes data;
function f() publicreturns (bytesmemory) {
// Empty byte arraybytesmemory t;
// Store something else in memory after ituint[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;
}
}
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: