Skip to content

Fix crash in Modulesd when parsing command with missing tag#2470

Merged
chemamartinez merged 1 commit into3.8from
3.8-fix-command-config
Jan 28, 2019
Merged

Fix crash in Modulesd when parsing command with missing tag#2470
chemamartinez merged 1 commit into3.8from
3.8-fix-command-config

Conversation

@vikman90
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants