diff options
author | Jim Meyering <meyering@redhat.com> | 2012-06-19 11:41:19 +0200 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-11 19:13:31 -0700 |
commit | 57e72677ac1123b583be8daec2287efac87362df (patch) | |
tree | 610004e098233740386a184b8e33321a50e1fb31 /xlators/mgmt/glusterd/src/glusterd-rpc-ops.c | |
parent | fa946a8448dd3916c3fb31c9ba6cf195f98fc58c (diff) |
glusterd: avoid buffer overrun for over-long volname
[in glusterd_store_is_valid_brickpath]
When strlen(volname) is no smaller than sizeof(volinfo->volname),
volinfo->volname would end up not being NUL-terminated.
Then, a use of that buffer that expects it to be NUL-terminated
(i.e., glusterd_store_brickinfopath_set's GLUSTERD_GET_BRICK_DIR)
will access beyond the end of the buffer.
Instead, diagnose the too-long volume name and fail.
Change-Id: I655d8638547bf342d33280c14ff1edacc3cdeb5a
BUG: 789278
Signed-off-by: Jim Meyering <meyering@redhat.com>
Reviewed-on: http://review.gluster.com/3591
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rpc-ops.c')
0 files changed, 0 insertions, 0 deletions