|
1 | 1 | [
|
| 2 | + { |
| 3 | + "name": "ExpExponentCleanup", |
| 4 | + "summary": "Using the ** operator with an exponent of type shorter than 256 bits can result in unexpected values.", |
| 5 | + "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.", |
| 6 | + "fixed": "0.4.25", |
| 7 | + "severity": "medium/high", |
| 8 | + "check": {"regex-source": "[^/]\\*\\* *[^/0-9 ]"} |
| 9 | + }, |
| 10 | + { |
| 11 | + "name": "EventStructWrongData", |
| 12 | + "summary": "Using structs in events logged wrong data.", |
| 13 | + "description": "If a struct is used in an event, the address of the struct is logged instead of the actual data.", |
| 14 | + "introduced": "0.4.17", |
| 15 | + "fixed": "0.4.25", |
| 16 | + "severity": "very low", |
| 17 | + "check": {"ast-compact-json-path": "$..[?(@.nodeType === 'EventDefinition')]..[?(@.nodeType === 'UserDefinedTypeName' && @.typeDescriptions.typeString.startsWith('struct'))]"} |
| 18 | + }, |
| 19 | + { |
| 20 | + "name": "PublicLibFunctionsDoNotReturnNestedArrays", |
| 21 | + "summary": "Calls to public library functions (internal functions are safe) that return nested arrays return only zeroes.", |
| 22 | + "description": "The compiler does not complain about public library functions (internal functions are safe) returning nested arrays, but it also does not return it correctly. Thus, the function caller receives only zeroes.", |
| 23 | + "introduced": "0.4.11", |
| 24 | + "fixed": "0.4.22", |
| 25 | + "severity": "low" |
| 26 | + }, |
2 | 27 | {
|
3 | 28 | "name": "OneOfTwoConstructorsSkipped",
|
4 | 29 | "summary": "If a contract has both a new-style constructor (using the constructor keyword) and an old-style constructor (a function with the same name as the contract) at the same time, one of them will be ignored.",
|
|
7 | 32 | "fixed": "0.4.23",
|
8 | 33 | "severity": "very low"
|
9 | 34 | },
|
| 35 | + { |
| 36 | + "name": "NestedArrayFunctionCallDecoder", |
| 37 | + "summary": "Calling functions that return multi-dimensional fixed-size arrays can result in memory corruption.", |
| 38 | + "description": "If Solidity code calls a function that returns a multi-dimensional fixed-size array, array elements are incorrectly interpreted as memory pointers and thus can cause memory corruption if the return values are accessed. Calling functions with multi-dimensional fixed-size arrays is unaffected as is returning fixed-size arrays from function calls. The regular expression only checks if such functions are present, not if they are called, which is required for the contract to be affected.", |
| 39 | + "introduced": "0.1.4", |
| 40 | + "fixed": "0.4.22", |
| 41 | + "severity": "medium", |
| 42 | + "check": {"regex-source": "returns[^;{]*\\[\\s*[^\\] \\t\\r\\n\\v\\f][^\\]]*\\]\\s*\\[\\s*[^\\] \\t\\r\\n\\v\\f][^\\]]*\\][^{;]*[;{]"} |
| 43 | + }, |
10 | 44 | {
|
11 | 45 | "name": "ZeroFunctionSelector",
|
12 | 46 | "summary": "It is possible to craft the name of a function such that it is executed instead of the fallback function in very specific circumstances.",
|
|
0 commit comments