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/missing_events_arithmetic.s...

512 lines
24 KiB

[
[
{
"elements": [
{
"type": "function",
"name": "bad0",
"source_mapping": {
"start": 392,
"length": 71,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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/missing_events_arithmetic.sol#22-24) should emit an event for: \n\t- uprice8 = _price (tests/detectors/events-maths/missing_events_arithmetic.sol#23) \n",
"markdown": "[Bug.bad0(uint8)](tests/detectors/events-maths/missing_events_arithmetic.sol#L22-L24) should emit an event for: \n\t- [uprice8 = _price](tests/detectors/events-maths/missing_events_arithmetic.sol#L23) \n",
"id": "d06657a1dc1f8c46e77dbcdd93667a379d95d84ca14ca94351c3a1eb799b9f3b",
"check": "events-maths",
"impact": "Low",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "bad1",
"source_mapping": {
"start": 535,
"length": 72,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/events-maths/missing_events_arithmetic.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/events-maths/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/missing_events_arithmetic.sol#30-32) should emit an event for: \n\t- iprice16 = _price (tests/detectors/events-maths/missing_events_arithmetic.sol#31) \n",
"markdown": "[Bug.bad1(int16)](tests/detectors/events-maths/missing_events_arithmetic.sol#L30-L32) should emit an event for: \n\t- [iprice16 = _price](tests/detectors/events-maths/missing_events_arithmetic.sol#L31) \n",
"id": "d155849bc5f174fe5fe9619b4722bdbb9e99282f0ace605cf629b48862ca0195",
"check": "events-maths",
"impact": "Low",
"confidence": "Medium"
}
]
]