mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Bug list entry about the signed immutables bug.
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"uid": "SOL-2021-3",
|
||||
"name": "SignedImmutables",
|
||||
"summary": "Immutable variables of signed integer type shorter than 256 bits can lead to values with invalid higher order bits if inline assembly is used.",
|
||||
"description": "When immutable variables of signed integer type shorter than 256 bits are read, their higher order bits were unconditionally set to zero. The correct operation would be to sign-extend the value, i.e. set the higher order bits to one if the sign bit is one. This sign-extension is performed by Solidity just prior to when it matters, i.e. when a value is stored in memory, when it is compared or when a division is performed. Because of that, to our knowledge, the only way to access the value in its unclean state is by reading it through inline assembly.",
|
||||
"link": "https://blog.soliditylang.org/2021/09/29/signed-immutables-bug/",
|
||||
"introduced": "0.6.5",
|
||||
"fixed": "0.8.9",
|
||||
"severity": "very low"
|
||||
},
|
||||
{
|
||||
"uid": "SOL-2021-2",
|
||||
"name": "ABIDecodeTwoDimensionalArrayMemory",
|
||||
|
||||
Reference in New Issue
Block a user