mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE for 32-byte hex literals and zero literals in bytes.concat() by disallowing them
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
contract C {
|
||||
function f() public returns (bytes memory) {
|
||||
return bytes.concat(0, -0, 0.0, -0.0, 0e10, 0e-10, 0x00, (0));
|
||||
}
|
||||
|
||||
function g() public returns (bytes memory) {
|
||||
return bytes.concat(0, "abc", 0, "abc", 0);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// compileToEwasm: also
|
||||
// ----
|
||||
// f() -> 0x20, 8, "\0\0\0\0\0\0\0\0"
|
||||
// g() -> 0x20, 9, "\0abc\0abc\0"
|
||||
Reference in New Issue
Block a user