Krutika Dhananjay 8d92fabe6a 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>
2012-10-03 14:18:13 -07:00
2012-10-03 12:26:45 -07:00
2011-08-05 01:50:35 -07:00
2012-10-03 12:26:45 -07:00
2012-09-13 13:19:37 -07:00
2010-03-12 04:09:34 -08:00
2009-02-18 17:36:07 +05:30
2011-07-18 17:24:14 +05:30
2011-07-18 15:47:16 +05:30
2011-11-23 04:57:57 -08:00

For more info, please visit http://www.gluster.org/.
Description
No description provided
Readme 86 MiB
Languages
C 86.6%
Shell 7.5%
Python 3.6%
Perl 0.7%
Makefile 0.4%
Other 0.9%