[ [ { "elements": [ { "type": "function", "name": "bad0", "source_mapping": { "start": 284, "length": 76, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 15, 16, 17 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad0()" } }, { "type": "node", "name": "owner = msg.sender", "source_mapping": { "start": 325, "length": 18, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 16 ], "starting_column": 5, "ending_column": 23 }, "type_specific_fields": { "parent": { "type": "function", "name": "bad0", "source_mapping": { "start": 284, "length": 76, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 15, 16, 17 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad0()" } } } } ], "description": "Bug.bad0() (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#15-17) should emit an event for: \n\t- owner = msg.sender (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#16) \n", "markdown": "[Bug.bad0()](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L15-L17) should emit an event for: \n\t- [owner = msg.sender](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L16) \n", "first_markdown_element": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L15-L17", "id": "4d3c0f7336bc2f5248fb9488caa06bf496a1076398fca7a730a4e18ef9eedb23", "check": "events-access", "impact": "Low", "confidence": "Medium" }, { "elements": [ { "type": "function", "name": "bad1", "source_mapping": { "start": 364, "length": 90, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 19, 20, 21 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad1(address)" } }, { "type": "node", "name": "owner = newOwner", "source_mapping": { "start": 421, "length": 16, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 20 ], "starting_column": 5, "ending_column": 21 }, "type_specific_fields": { "parent": { "type": "function", "name": "bad1", "source_mapping": { "start": 364, "length": 90, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 19, 20, 21 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad1(address)" } } } } ], "description": "Bug.bad1(address) (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#19-21) should emit an event for: \n\t- owner = newOwner (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#20) \n", "markdown": "[Bug.bad1(address)](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L19-L21) should emit an event for: \n\t- [owner = newOwner](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L20) \n", "first_markdown_element": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L19-L21", "id": "b2bf34ab3d02054c5f803cd517689d1e3d055b46ca612b2457d845d8d4b94731", "check": "events-access", "impact": "Low", "confidence": "Medium" }, { "elements": [ { "type": "function", "name": "bad2", "source_mapping": { "start": 458, "length": 127, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 23, 24, 25, 26 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad2(address)" } }, { "type": "node", "name": "owner = newOwner", "source_mapping": { "start": 552, "length": 16, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 25 ], "starting_column": 5, "ending_column": 21 }, "type_specific_fields": { "parent": { "type": "function", "name": "bad2", "source_mapping": { "start": 458, "length": 127, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "is_dependency": false, "lines": [ 23, 24, 25, 26 ], "starting_column": 3, "ending_column": 4 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Bug", "source_mapping": { "start": 0, "length": 1309, "filename_used": "/GENERIC_PATH", "filename_relative": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol", "filename_absolute": "/GENERIC_PATH", "filename_short": "tests/detectors/events-access/0.4.25/missing_events_access_control.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 ], "starting_column": 1, "ending_column": 2 } }, "signature": "bad2(address)" } } } } ], "description": "Bug.bad2(address) (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#23-26) should emit an event for: \n\t- owner = newOwner (tests/detectors/events-access/0.4.25/missing_events_access_control.sol#25) \n", "markdown": "[Bug.bad2(address)](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L23-L26) should emit an event for: \n\t- [owner = newOwner](tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L25) \n", "first_markdown_element": "tests/detectors/events-access/0.4.25/missing_events_access_control.sol#L23-L26", "id": "9411f6b4b3e6f3833a72789f341adf88796bcb58b4a12a47a6f7117746d09c53", "check": "events-access", "impact": "Low", "confidence": "Medium" } ] ]