summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/syncop.c
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2012-10-03 12:22:50 +0530
committerAnand Avati <avati@redhat.com>2012-10-03 14:18:13 -0700
commit8d92fabe6a29143a70b26182e63dddfb80c14f98 (patch)
tree7c92b486f3547f2cf20c3be014938f751f2d5acd /libglusterfs/src/syncop.c
parent557602e7637a7ef702db2b60f9cf10ecbe2837f3 (diff)
cli: fixed cli crash during volume set operation
PROBLEM: The cli crashes in the following case: gluster> volume set v3 auth.allow "write-behind" CAUSE: The second strncat operation in the last iteration of the for loop, in cli_to_glusterd writes off the end of the space malloc'd for "cmd", leading to memory corruption. FIX: Made the last strncat operation conditional so that in the last iteration, strncat is avoided. Change-Id: I8f836c684f33a6328e384ab8e677b8e32bcb4e55 BUG: 862526 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/4025 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/syncop.c')
0 files changed, 0 insertions, 0 deletions