summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorShyamsundarR <srangana@redhat.com>2018-08-20 16:01:47 -0400
committerShyamsundarR <srangana@redhat.com>2018-08-20 16:16:55 -0400
commit690ca8207269919e89341a9a49a3cff0e56e344b (patch)
tree1934044e0371be443607b0a0d3527cb6690ece89 /api/src
parenta0fb796c233f30cbbde56768f7073e954e02dfcb (diff)
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@redhat.com>
Diffstat (limited to 'api/src')
0 files changed, 0 insertions, 0 deletions