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.
1505 lines
77 KiB
1505 lines
77 KiB
[
|
|
[
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "addr",
|
|
"source_mapping": {
|
|
"start": 256,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14
|
|
],
|
|
"starting_column": 22,
|
|
"ending_column": 42
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad1_send",
|
|
"source_mapping": {
|
|
"start": 237,
|
|
"length": 137,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad1_send(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "addr.send(msg.value)",
|
|
"source_mapping": {
|
|
"start": 298,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
15
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad1_send",
|
|
"source_mapping": {
|
|
"start": 237,
|
|
"length": 137,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad1_send(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "addr.send(msg.value)",
|
|
"source_mapping": {
|
|
"start": 348,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
16
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad1_send",
|
|
"source_mapping": {
|
|
"start": 237,
|
|
"length": 137,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad1_send(address)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "C.bad1_send(address).addr (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#14) lacks a zero-check on :\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#15)\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#16)\n",
|
|
"markdown": "[C.bad1_send(address).addr](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L14) lacks a zero-check on :\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L15)\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L16)\n",
|
|
"first_markdown_element": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L14",
|
|
"id": "3d9ba6630d8f1357ab26196f519d74d6410a8e52994ae341d26a17d466200308",
|
|
"check": "missing-zero-check",
|
|
"impact": "Low",
|
|
"confidence": "Medium"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "addr",
|
|
"source_mapping": {
|
|
"start": 401,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
19
|
|
],
|
|
"starting_column": 26,
|
|
"ending_column": 46
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad2_transfer",
|
|
"source_mapping": {
|
|
"start": 378,
|
|
"length": 122,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad2_transfer(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "addr.transfer(msg.value)",
|
|
"source_mapping": {
|
|
"start": 443,
|
|
"length": 24,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
20
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 29
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad2_transfer",
|
|
"source_mapping": {
|
|
"start": 378,
|
|
"length": 122,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad2_transfer(address)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "C.bad2_transfer(address).addr (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#19) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#20)\n",
|
|
"markdown": "[C.bad2_transfer(address).addr](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L19) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L20)\n",
|
|
"first_markdown_element": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L19",
|
|
"id": "654c703c39420ad30e6624b6a98892faffc5e90820e7aabfd3cd66fe8870b7b8",
|
|
"check": "missing-zero-check",
|
|
"impact": "Low",
|
|
"confidence": "Medium"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "addr",
|
|
"source_mapping": {
|
|
"start": 527,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
23
|
|
],
|
|
"starting_column": 26,
|
|
"ending_column": 46
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad3_transfer",
|
|
"source_mapping": {
|
|
"start": 504,
|
|
"length": 203,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad3_transfer(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "addr.transfer(msg.value)",
|
|
"source_mapping": {
|
|
"start": 569,
|
|
"length": 24,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
24
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 29
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad3_transfer",
|
|
"source_mapping": {
|
|
"start": 504,
|
|
"length": 203,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad3_transfer(address)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "C.bad3_transfer(address).addr (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#23) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#24)\n",
|
|
"markdown": "[C.bad3_transfer(address).addr](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L23) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L24)\n",
|
|
"first_markdown_element": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L23",
|
|
"id": "98f43dd716a11685725ad4c615b07dd773bcf0f1c7710357fa1a5606084dd999",
|
|
"check": "missing-zero-check",
|
|
"impact": "Low",
|
|
"confidence": "Medium"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "addr",
|
|
"source_mapping": {
|
|
"start": 730,
|
|
"length": 20,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
28
|
|
],
|
|
"starting_column": 22,
|
|
"ending_column": 42
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad4_call",
|
|
"source_mapping": {
|
|
"start": 711,
|
|
"length": 120,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
28,
|
|
29,
|
|
30
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad4_call(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "addr.call.value(msg.value)()",
|
|
"source_mapping": {
|
|
"start": 772,
|
|
"length": 30,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
29
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 35
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad4_call",
|
|
"source_mapping": {
|
|
"start": 711,
|
|
"length": 120,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
28,
|
|
29,
|
|
30
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad4_call(address)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "C.bad4_call(address).addr (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#28) lacks a zero-check on :\n\t\t- addr.call.value(msg.value)() (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#29)\n",
|
|
"markdown": "[C.bad4_call(address).addr](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L28) lacks a zero-check on :\n\t\t- [addr.call.value(msg.value)()](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L29)\n",
|
|
"first_markdown_element": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L28",
|
|
"id": "aa90b9a8002d093f5996492eae0d441bde928e8187fc6d2790f973f6383d6095",
|
|
"check": "missing-zero-check",
|
|
"impact": "Low",
|
|
"confidence": "Medium"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "new_owner",
|
|
"source_mapping": {
|
|
"start": 149,
|
|
"length": 17,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
10
|
|
],
|
|
"starting_column": 27,
|
|
"ending_column": 44
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad0_set_owner",
|
|
"source_mapping": {
|
|
"start": 125,
|
|
"length": 108,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
10,
|
|
11,
|
|
12
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad0_set_owner(address)"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "node",
|
|
"name": "owner = new_owner",
|
|
"source_mapping": {
|
|
"start": 188,
|
|
"length": 17,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
11
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 22
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "bad0_set_owner",
|
|
"source_mapping": {
|
|
"start": 125,
|
|
"length": 108,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
10,
|
|
11,
|
|
12
|
|
],
|
|
"starting_column": 3,
|
|
"ending_column": 4
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "C",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 2049,
|
|
"filename_used": "/GENERIC_PATH",
|
|
"filename_relative": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
},
|
|
"signature": "bad0_set_owner(address)"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "C.bad0_set_owner(address).new_owner (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#10) lacks a zero-check on :\n\t\t- owner = new_owner (tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#11)\n",
|
|
"markdown": "[C.bad0_set_owner(address).new_owner](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L10) lacks a zero-check on :\n\t\t- [owner = new_owner](tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L11)\n",
|
|
"first_markdown_element": "tests/detectors/missing-zero-check/0.5.16/missing_zero_address_validation.sol#L10",
|
|
"id": "ac59285350b35c2b885a6e9efe641474ae51b830fad5856f622fe264096e44cd",
|
|
"check": "missing-zero-check",
|
|
"impact": "Low",
|
|
"confidence": "Medium"
|
|
}
|
|
]
|
|
] |