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 in Modulesd when parsing command with missing tag #2470

Merged
merged 1 commit into from Jan 28, 2019

Conversation

vikman90
Copy link
Member

@vikman90 vikman90 commented Jan 25, 2019

Fixes
#2469

As described by Valgrind, Modulesd compares the tag of every module to find duplicates and remove one of them.

There is a special case: commands with no tag. They are unique, no internal tag is defined so they must never be removed.

Fix

Tags must be compared when filled only: test that both strings are set before comparing them.

Tags must be compared when filled only.
@vikman90 vikman90 added type/bug Something isn't working module/command Command module labels Jan 25, 2019
Copy link
Contributor

@chemamartinez chemamartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chemamartinez chemamartinez merged commit 9ec9c97 into 3.8 Jan 28, 2019
@chemamartinez chemamartinez deleted the 3.8-fix-command-config branch January 28, 2019 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/command Command module type/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants