[Bugs] [Bug 1619423] cli: Command `gluster volume statedump <volname>` dumps core
bugzilla at redhat.com
bugzilla at redhat.com
Tue Aug 21 02:41:48 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1619423
Worker Ant <bugzilla-bot at gluster.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|POST |MODIFIED
--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20867 committed in master by "Shyamsundar
Ranganathan" <srangana at redhat.com> with a commit message- cli: Fix invalid
access of option_str variable
In function cli_cmd_volume_statedump_options_parse if
the wordcount of arguments is exactly 3, then option_str
would remain NULL, and hence the function will generate
a segmentation fault on the strstr check in its body.
This can be triggered when we run the command,
`gluster volume statedump <volname>`
The fix is to check if option_str is non-NULL before use
and also to pass in a duplicated empty string to the dict
key "options" when this is NULL.
Fixes: bz#1619423
Change-Id: Ic029ab60b64890d92c7a0876a638929495d3aa59
Signed-off-by: ShyamsundarR <srangana at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list