]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix trailing null in object names of multipart reuploads 39277/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 14 Jan 2021 13:41:16 +0000 (08:41 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 3 Feb 2021 19:45:40 +0000 (20:45 +0100)
commit77e3e8ba1a22444dc0c9b477a76220d7129ff42a
treee76cd0c48d58ce1c1b40c9ef1b0c8d5831d6b079
parentf68164023d01b12676acfab90561b8c846f71ff9
rgw: fix trailing null in object names of multipart reuploads

the overload being called had a comment saying:
/* size should be the required string size + 1 */

this calls a different overload that returns std::string and handles
this null termination correctly

Fixes: https://tracker.ceph.com/issues/48874
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 2ede30782b00fe28ac714047f55b11b76ae1593f)
src/rgw/rgw_putobj_processor.cc