Solidity Bug Info
Bug Name | Description | Severity |
---|---|---|
IncorrectByteInstructionOptimizationThe optimizer incorrectly handles byte opcodes whose second argument is 31 or a constant expression that evaluates to 31. This can result in unexpected values. | The optimizer incorrectly handles byte opcodes that use the constant 31 as second argument. This can happen when performing index access on bytesNN types with a compile-time constant value (not index) of 31 or when using the byte opcode in inline assembly. - Link: https://blog.soliditylang.org/2019/03/26/solidity-optimizer-and-abiencoderv2-bug/ - First Introduced: 0.5.5 - Fixed in Version: 0.5.7 - Published: - Severity<: very low - Optimizer Used: true | very low |