aboutsummaryrefslogtreecommitdiffstats
path: root/docs/bugs.json
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-06 23:30:51 +0800
committerchriseth <chris@ethereum.org>2018-09-10 20:38:48 +0800
commit3b7be594cf046cc34864cefbd3cf0f5159770163 (patch)
tree77a6636ab3583bbd240e1203ab8fd6b6d7819cc2 /docs/bugs.json
parentbe713ed1176c4dee2c1e444d41e5a72ab9caf115 (diff)
downloaddexon-solidity-3b7be594cf046cc34864cefbd3cf0f5159770163.tar.gz
dexon-solidity-3b7be594cf046cc34864cefbd3cf0f5159770163.tar.zst
dexon-solidity-3b7be594cf046cc34864cefbd3cf0f5159770163.zip
Update bug description, add regex and tests.
Diffstat (limited to 'docs/bugs.json')
-rw-r--r--docs/bugs.json9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/bugs.json b/docs/bugs.json
index d0704c1f..560176d1 100644
--- a/docs/bugs.json
+++ b/docs/bugs.json
@@ -8,11 +8,12 @@
"severity": "very low"
},
{
- "name": "ExpCleanupZero",
- "summary": "Using exponentiating with types shorter than 256 bits and zero as base can result in unexpected values.",
- "description": "As defined by the EVM, 0 ** 0 is one. Solidity does not always remove dirty higher order bits of types that are smaller than 256 bits before applying an operation because it does not matter if the cleanup is performed before or after the operation. This is true for EXP except for the case where the base is zero, which was overlooked.",
+ "name": "ExpExponentCleanup",
+ "summary": "Using the ** operator with an exponent of type shorter than 256 bits can result in unexpected values.",
+ "description": "Higher order bits in the exponent are not properly cleaned before the EXP opcode is applied if the type of the exponent expression is smaller than 256 bits and not smaller than the type of the base. In that case, the result might be larger than expected if the exponent is assumed to lie within the value range of the type. Literal numbers as exponents are unaffected as are exponents or bases of type uint256.",
"fixed": "0.4.25",
- "severity": "high"
+ "severity": "medium/high",
+ "check": {"regex-source": "[^/]\\*\\* *[^/0-9 ]"}
},
{
"name": "OneOfTwoConstructorsSkipped",