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.7.6/missing_zero_address_valida...

1505 lines
77 KiB

[
[
{
"elements": [
{
"type": "variable",
"name": "new_owner",
"source_mapping": {
"start": 149,
"length": 17,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol#10) lacks a zero-check on :\n\t\t- owner = new_owner (tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#11)\n",
"markdown": "[C.bad0_set_owner(address).new_owner](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L10) lacks a zero-check on :\n\t\t- [owner = new_owner](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L11)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L10",
"id": "2c8db81e6ce5a16bd76db4dd9d27d931037b6b06bacd06afa427e35f4dd22aa6",
"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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol#14) lacks a zero-check on :\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#15)\n\t\t- addr.send(msg.value) (tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#16)\n",
"markdown": "[C.bad1_send(address).addr](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L14) lacks a zero-check on :\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L15)\n\t\t- [addr.send(msg.value)](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L16)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L14",
"id": "1a145c4f40c60c9db09f5743139503a60b40be83dda9c57f8c47a400f1bc5b8a",
"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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol#19) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#20)\n",
"markdown": "[C.bad2_transfer(address).addr](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L19) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L20)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L19",
"id": "f7028c02d7b7a78ef72a33c7b976bcb047206b9c82a9acc39cdf11a5e188208f",
"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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol#23) lacks a zero-check on :\n\t\t- addr.transfer(msg.value) (tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#24)\n",
"markdown": "[C.bad3_transfer(address).addr](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L23) lacks a zero-check on :\n\t\t- [addr.transfer(msg.value)](tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L24)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L23",
"id": "1cc3cad32b73e31e6d6f214b9a99b19c5bd5633ddf3ab58267a5870051c22a02",
"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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/missing-zero-check/0.7.6/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.7.6/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.7.6/missing_zero_address_validation.sol#29)\n",
"markdown": "[C.bad4_call(address).addr](tests/detectors/missing-zero-check/0.7.6/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.7.6/missing_zero_address_validation.sol#L29)\n",
"first_markdown_element": "tests/detectors/missing-zero-check/0.7.6/missing_zero_address_validation.sol#L28",
"id": "64e549d94c8869ed8c827ad3ee766cb23d4e8a64bc9b19e06d593fa8942363b4",
"check": "missing-zero-check",
"impact": "Low",
"confidence": "Medium"
}
]
]