]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rgw_rados: use to_str() instead of c_str() 8559/head
authorSage Weil <sage@redhat.com>
Tue, 12 Apr 2016 14:25:19 +0000 (10:25 -0400)
committerSage Weil <sage@redhat.com>
Tue, 12 Apr 2016 15:15:14 +0000 (11:15 -0400)
commit2601e2fb7e5770a620dfa00abb939eab218ac38e
treea79839964995a1d37eae6e86463d0aa18941b11e
parentd56e43950cc4a083d32367746168c2b64e002b42
rgw/rgw_rados: use to_str() instead of c_str()

bufferlist::c_str() doesn't guarantee null termination.

Fixes: http://tracker.ceph.com/issues/15463
Signed-off-by: Sage Weil <sage@redhat.com>
src/rgw/rgw_rados.cc