Skip to content
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

Fix crash on config parse error #13

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Fix crash on config parse error #13

merged 1 commit into from
Sep 13, 2023

Conversation

NekoCWD
Copy link
Contributor

@NekoCWD NekoCWD commented Aug 8, 2023

Fixed crash on bad configuration

When the configuration is not parsed correctly, an exception is thrown. When we catch it, m_pConfig = nullptr.
Then if (m_pConfig->contains("plugins") && m_pConfig->get("plugins")->is_array()) also throws an exception because m_pConfig is nullptr.
I think we need to return when we catch the first exception

@NekoCWD NekoCWD mentioned this pull request Aug 8, 2023
@shadowelite-sec shadowelite-sec mentioned this pull request Aug 9, 2023
@Duckonaut Duckonaut merged commit 72c1fb8 into Duckonaut:main Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants