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.
456 lines
22 KiB
456 lines
22 KiB
4 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "variable",
|
||
4 years ago
|
"name": "st",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 698,
|
||
|
"length": 15,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
45
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 20
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Test2",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 644,
|
||
|
"length": 354,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45,
|
||
|
46,
|
||
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52,
|
||
|
53,
|
||
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "use",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 878,
|
||
|
"length": 117,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
53,
|
||
|
54,
|
||
|
55,
|
||
|
56
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Test2",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 644,
|
||
|
"length": 354,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45,
|
||
|
46,
|
||
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52,
|
||
|
53,
|
||
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "use()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test2.st (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#45) is never initialized. It is used in:\n\t- Test2.use() (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#53-56)\n",
|
||
|
"markdown": "[Test2.st](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L45) is never initialized. It is used in:\n\t- [Test2.use()](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L53-L56)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L45",
|
||
4 years ago
|
"id": "427f100397f455d8000eff7b1d2463763ca8e452d5d98f7b7de693fd5e625a32",
|
||
4 years ago
|
"check": "uninitialized-state",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "variable",
|
||
|
"name": "balances",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 192,
|
||
4 years ago
|
"length": 34,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
15
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 39
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 172,
|
||
4 years ago
|
"length": 332,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "use",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 359,
|
||
4 years ago
|
"length": 143,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 172,
|
||
4 years ago
|
"length": 332,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18,
|
||
|
19,
|
||
|
20,
|
||
|
21,
|
||
|
22,
|
||
|
23,
|
||
|
24,
|
||
|
25,
|
||
|
26,
|
||
|
27
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "use()"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test.balances (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#15) is never initialized. It is used in:\n\t- Test.use() (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#23-26)\n",
|
||
|
"markdown": "[Test.balances](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L15) is never initialized. It is used in:\n\t- [Test.use()](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L23-L26)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L15",
|
||
4 years ago
|
"id": "a2750d175b02d51aeb47a4576f74725ba991d3c8cf828a33ee78ccc34cf9e7d7",
|
||
|
"check": "uninitialized-state",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "variable",
|
||
4 years ago
|
"name": "v",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 751,
|
||
|
"length": 6,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
47
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 11
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test2",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 644,
|
||
4 years ago
|
"length": 354,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45,
|
||
|
46,
|
||
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52,
|
||
|
53,
|
||
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "init",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 820,
|
||
|
"length": 52,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
49,
|
||
|
50,
|
||
|
51
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "Test2",
|
||
|
"source_mapping": {
|
||
4 years ago
|
"start": 644,
|
||
4 years ago
|
"length": 354,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
42,
|
||
|
43,
|
||
|
44,
|
||
|
45,
|
||
|
46,
|
||
|
47,
|
||
|
48,
|
||
|
49,
|
||
|
50,
|
||
|
51,
|
||
|
52,
|
||
|
53,
|
||
|
54,
|
||
|
55,
|
||
|
56,
|
||
|
57,
|
||
|
58
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "init()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Test2.v (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#47) is never initialized. It is used in:\n\t- Test2.init() (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#49-51)\n",
|
||
|
"markdown": "[Test2.v](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L47) is never initialized. It is used in:\n\t- [Test2.init()](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L49-L51)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L47",
|
||
4 years ago
|
"id": "bf96eee949943a12926cf1407a2df2b07e99b30a6fc2e78aebf088cdefcf77a7",
|
||
4 years ago
|
"check": "uninitialized-state",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "variable",
|
||
4 years ago
|
"name": "destination",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 58,
|
||
|
"length": 19,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
5
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
4 years ago
|
"ending_column": 24
|
||
4 years ago
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Uninitialized",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 29,
|
||
|
"length": 140,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "function",
|
||
4 years ago
|
"name": "transfer",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 84,
|
||
|
"length": 82,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
7,
|
||
|
8,
|
||
|
9
|
||
4 years ago
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
4 years ago
|
"name": "Uninitialized",
|
||
4 years ago
|
"source_mapping": {
|
||
4 years ago
|
"start": 29,
|
||
|
"length": 140,
|
||
2 years ago
|
"filename_relative": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"filename_absolute": "/GENERIC_PATH",
|
||
2 years ago
|
"filename_short": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol",
|
||
4 years ago
|
"is_dependency": false,
|
||
|
"lines": [
|
||
4 years ago
|
3,
|
||
|
4,
|
||
|
5,
|
||
|
6,
|
||
|
7,
|
||
|
8,
|
||
|
9,
|
||
|
10,
|
||
|
11
|
||
4 years ago
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
4 years ago
|
"signature": "transfer()"
|
||
4 years ago
|
}
|
||
|
}
|
||
|
],
|
||
2 years ago
|
"description": "Uninitialized.destination (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#5) is never initialized. It is used in:\n\t- Uninitialized.transfer() (tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#7-9)\n",
|
||
|
"markdown": "[Uninitialized.destination](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L5) is never initialized. It is used in:\n\t- [Uninitialized.transfer()](tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L7-L9)\n",
|
||
|
"first_markdown_element": "tests/e2e/detectors/test_data/uninitialized-state/0.4.25/uninitialized.sol#L5",
|
||
4 years ago
|
"id": "e4711aebbd53922a9fe1e728917bf8e98eac065305e20d766b6b552debe79e44",
|
||
4 years ago
|
"check": "uninitialized-state",
|
||
|
"impact": "High",
|
||
|
"confidence": "High"
|
||
|
}
|
||
|
]
|
||
|
]
|