mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
556 lines
19 KiB
556 lines
19 KiB
{
|
|
"success": true,
|
|
"error": null,
|
|
"results": {
|
|
"detectors": [
|
|
{
|
|
"check": "too-many-digits",
|
|
"impact": "Informational",
|
|
"confidence": "Medium",
|
|
"description": "C.f (tests/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x1 = 0x000001\n",
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "x1 = 0x000001",
|
|
"source_mapping": {
|
|
"start": 206,
|
|
"length": 18,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
10
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 27
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 174,
|
|
"length": 195,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 25,
|
|
"length": 897,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35,
|
|
36,
|
|
37,
|
|
38,
|
|
39,
|
|
40
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"check": "too-many-digits",
|
|
"impact": "Informational",
|
|
"confidence": "Medium",
|
|
"description": "C.f (tests/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x2 = 0x0000000000001\n",
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "x2 = 0x0000000000001",
|
|
"source_mapping": {
|
|
"start": 234,
|
|
"length": 25,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
11
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 34
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 174,
|
|
"length": 195,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 25,
|
|
"length": 897,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35,
|
|
36,
|
|
37,
|
|
38,
|
|
39,
|
|
40
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"check": "too-many-digits",
|
|
"impact": "Informational",
|
|
"confidence": "Medium",
|
|
"description": "C.f (tests/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x3 = 1000000000000000000\n",
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "x3 = 1000000000000000000",
|
|
"source_mapping": {
|
|
"start": 269,
|
|
"length": 29,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
12
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 38
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 174,
|
|
"length": 195,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 25,
|
|
"length": 897,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35,
|
|
36,
|
|
37,
|
|
38,
|
|
39,
|
|
40
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"check": "too-many-digits",
|
|
"impact": "Informational",
|
|
"confidence": "Medium",
|
|
"description": "C.f (tests/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x4 = 100000\n",
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "x4 = 100000",
|
|
"source_mapping": {
|
|
"start": 308,
|
|
"length": 16,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
13
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "f",
|
|
"source_mapping": {
|
|
"start": 174,
|
|
"length": 195,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 25,
|
|
"length": 897,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35,
|
|
36,
|
|
37,
|
|
38,
|
|
39,
|
|
40
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "f()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"check": "too-many-digits",
|
|
"impact": "Informational",
|
|
"confidence": "Medium",
|
|
"description": "C.h (tests/too_many_digits.sol#20-24) uses literals with too many digits:\n\t- x2 = 100000\n",
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "x2 = 100000",
|
|
"source_mapping": {
|
|
"start": 509,
|
|
"length": 16,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
22
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "h",
|
|
"source_mapping": {
|
|
"start": 453,
|
|
"length": 113,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 25,
|
|
"length": 897,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_relative": "tests/too_many_digits.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/too_many_digits.sol",
|
|
"filename_short": "tests/too_many_digits.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35,
|
|
36,
|
|
37,
|
|
38,
|
|
39,
|
|
40
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "h()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |