Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix null pointer dereference while find_plugin #5082

Merged
merged 3 commits into from
Aug 9, 2018
Merged

Fix null pointer dereference while find_plugin #5082

merged 3 commits into from
Aug 9, 2018

Conversation

spartucus
Copy link
Contributor

@spartucus spartucus commented Aug 7, 2018

There are chances that application::find_pluginreturn nullptr, so it's safer to EOS_ASSERT all before dereference plugin pointer. While mongo_db_plugin.cpp and sql_db_plugin.cpp did the job.

Although it has fewer chance chain_plugin is invalid, still it's safer to assert it.
Although there are fewer chances that chain_plugin is invalid, still it's safer to assert it.
Although there are fewer chances that chain_plugin is invalid, still it's safer to assert it.
@heifner heifner changed the base branch from master to develop August 8, 2018 12:39
@heifner heifner merged commit f04e151 into EOSIO:develop Aug 9, 2018
@spartucus spartucus deleted the patch-2 branch August 10, 2018 05:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants