path: root/contrib
diff options
authorJim Meyering <>2012-06-19 11:41:19 +0200
committerAnand Avati <>2012-07-11 19:13:31 -0700
commit57e72677ac1123b583be8daec2287efac87362df (patch)
tree610004e098233740386a184b8e33321a50e1fb31 /contrib
parentfa946a8448dd3916c3fb31c9ba6cf195f98fc58c (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 <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions