-
Notifications
You must be signed in to change notification settings - Fork 650
Fix some more code sanitizer errors #644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -103,6 +103,7 @@ void transaction::get_required_authorities( flat_set<account_id_type>& active, f | |||
|
|||
|
|||
|
|||
const fc::flat_set<public_key_type> empty_keyset; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it's boost::flat_set
. It's actually a fc wrapper? Perhaps just remove fc::
here, since everywhere else doesn't have it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fc::flat_set is a typedef. Will remove fc:: here
@@ -537,7 +537,7 @@ namespace detail { | |||
_is_finished_syncing = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this code block can be removed because it will never execute?
Either already returned, or an exception was thrown out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have enough background to answer your question.
At this point we are only concerned about stability and code sanitizers. Cleaning up the code is a different matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, i think we should add this. i guess AddressSanitizer was used in the entire project and only this 3 problems were found. if this is the case, great, if more were found please post them up as issue so we can work on them. thanks.
Here is the list of addressed errors:
The function handle_block not returning a value
create_committee_member' test: invalid database index used
verify_authority: stack use after scope