]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't specify a length when convert bl -> string 15599/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 9 Jun 2017 13:27:25 +0000 (15:27 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 9 Jun 2017 13:36:11 +0000 (15:36 +0200)
commitb38bda730dd9a0112024e9ecea95cd0d9c80d18f
tree2947b756aa4a2ca93a701e9ef1ec54de27cb6a0b
parent9eda2bb9ff46ba9b3f9e54d705da1e66f7a7e9d9
rgw: don't specify a length when convert bl -> string

in rgw_admin we're assigning a string from a bufferlist by explicitly
specifying a size and using assign, in this case the whole contents of
the buffer are copied regardless of whether the null character is seen.
Just use normal assign which would only copy until the null is
encountered

Fixes: http://tracker.ceph.com/issues/20037
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.cc