Static Analyzer for Solidity
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.
 
 
 
 
slither/tests/detectors/events-maths/0.4.25/missing_events_arithmetic.s...

504 lines
23 KiB

[
[
{
"elements": [
{
"type": "function",
"name": "bad0",
"source_mapping": {
"start": 392,
"length": 71,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
22,
23,
24
],
"starting_column": 3,
"ending_column": 4
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "Bug",
"source_mapping": {
"start": 0,
"length": 1522,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
1,
2,
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,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "bad0(uint8)"
}
},
{
"type": "node",
"name": "uprice8 = _price",
"source_mapping": {
"start": 442,
"length": 16,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
23
],
"starting_column": 5,
"ending_column": 21
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "bad0",
"source_mapping": {
"start": 392,
"length": 71,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
22,
23,
24
],
"starting_column": 3,
"ending_column": 4
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "Bug",
"source_mapping": {
"start": 0,
"length": 1522,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
1,
2,
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,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "bad0(uint8)"
}
}
}
}
],
"description": "Bug.bad0(uint8) (tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#22-24) should emit an event for: \n\t- uprice8 = _price (tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#23) \n",
"markdown": "[Bug.bad0(uint8)](tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L22-L24) should emit an event for: \n\t- [uprice8 = _price](tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L23) \n",
"first_markdown_element": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L22-L24",
"id": "5bdc3116ab3855778ce4857872000648491e61af71273e503cc9439c5e8740c1",
"check": "events-maths",
"impact": "Low",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "bad1",
"source_mapping": {
"start": 535,
"length": 72,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
30,
31,
32
],
"starting_column": 3,
"ending_column": 4
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "Bug",
"source_mapping": {
"start": 0,
"length": 1522,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
1,
2,
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,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "bad1(int16)"
}
},
{
"type": "node",
"name": "iprice16 = _price",
"source_mapping": {
"start": 585,
"length": 17,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
31
],
"starting_column": 5,
"ending_column": 22
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "bad1",
"source_mapping": {
"start": 535,
"length": 72,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
30,
31,
32
],
"starting_column": 3,
"ending_column": 4
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "Bug",
"source_mapping": {
"start": 0,
"length": 1522,
"filename_relative": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol",
"is_dependency": false,
"lines": [
1,
2,
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,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63,
64,
65,
66,
67,
68,
69,
70,
71,
72
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "bad1(int16)"
}
}
}
}
],
"description": "Bug.bad1(int16) (tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#30-32) should emit an event for: \n\t- iprice16 = _price (tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#31) \n",
"markdown": "[Bug.bad1(int16)](tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L30-L32) should emit an event for: \n\t- [iprice16 = _price](tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L31) \n",
"first_markdown_element": "tests/detectors/events-maths/0.4.25/missing_events_arithmetic.sol#L30-L32",
"id": "a8bc1236abe35dd73049b7e452352ea609772a11ca5cc92e0ee958ac94e5a577",
"check": "events-maths",
"impact": "Low",
"confidence": "Medium"
}
]
]