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/missing-zero-check/0.6.11/missing_zero_address_valida...

1505 lines
77 KiB

[
[
{
"elements": [
{
"type": "variable",
"name": "addr",
"source_mapping": {
"start": 730,
"length": 20,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/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.6.11/missing_zero_address_validation.sol#29)\n",
"markdown": "[C.bad4_call(address).addr](tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol#L29)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L28",
"id": "174a4f81c4e872deda0a31c10f8136b52d60adc89ba9be1548b308a09e225763",
"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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol#10) lacks a zero-check on :\n\t\t- owner = new_owner (tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#11)\n",
"markdown": "[C.bad0_set_owner(address).new_owner](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L10) lacks a zero-check on :\n\t\t- [owner = new_owner](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L11)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L10",
"id": "1d2f6294ee0cfc4aae290fe04610e1df21d508008e75000ef017463482d78f95",
"check": "missing-zero-check",
"impact": "Low",
"confidence": "Medium"
},
{
"elements": [
{
"type": "variable",
"name": "addr",
"source_mapping": {
"start": 256,
"length": 20,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol#14) lacks a zero-check on :\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#15)\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#16)\n",
"markdown": "[C.bad1_send(address).addr](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L14) lacks a zero-check on :\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L15)\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L16)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L14",
"id": "21de216080f0f27154e9b3cd2fef7ead38dacc945160b619923c33344d636826",
"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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol#19) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#20)\n",
"markdown": "[C.bad2_transfer(address).addr](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L19) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L20)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L19",
"id": "3d8300f19d40cb2f76fcb587f94e3dfc751319b119bd83af4cd7f962b680feb8",
"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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.6.11/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.6.11/missing_zero_address_validation.sol#23) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#24)\n",
"markdown": "[C.bad3_transfer(address).addr](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L23) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L24)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.6.11/missing_zero_address_validation.sol#L23",
"id": "efee9ceff8491c62ed42aab7c70b0a8d9c7731af8ecb304e6deafcc64a20c6f4",
"check": "missing-zero-check",
"impact": "Low",
"confidence": "Medium"
}
]
]