Skip to content

Commit

Permalink
mgmt/glusterd: Out of bounds access to fs_info struct
Browse files Browse the repository at this point in the history
Change-Id: Ibc75713d35c9cbafd493c8cf6b5294eaf29f05d4
BUG: 1163920
Signed-off-by: Petr Medonos <petr.medonos@etnetera.cz>
Reviewed-on: http://review.gluster.org/9126
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
  • Loading branch information
etn-security authored and raghavendrabhat committed Dec 13, 2014
1 parent 52df13d commit 1fd6c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlators/mgmt/glusterd/src/glusterd-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -7293,7 +7293,7 @@ glusterd_add_inode_size_to_dict (dict_t *dict, int count)
runinit (&runner);
runner_redir (&runner, STDOUT_FILENO, RUN_PIPE);

for (fs = glusterd_fs ; glusterd_fs->fs_type_name; fs++) {
for (fs = glusterd_fs ; fs->fs_type_name; fs++) {
if (strcmp (fs_name, fs->fs_type_name) == 0) {
snprintf (fs_tool_name, sizeof fs_tool_name,
"/usr/sbin/%s", fs->fs_tool_name);
Expand Down

0 comments on commit 1fd6c9c

Please sign in to comment.