]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix trailing null in object names of multipart reuploads 39445/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 14 Jan 2021 13:41:16 +0000 (08:41 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Feb 2021 16:13:21 +0000 (11:13 -0500)
commitfc75d15f45596fa9ae4aeb704fe2a461ae09d603
treeba7845b7bf674e1907103dcf0487587f20866dca
parenta2b7a6299b4097257e1b555745572ba34b3ed7e3
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