]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix trailing null in object names of multipart reuploads
authorCasey Bodley <cbodley@redhat.com>
Thu, 14 Jan 2021 13:41:16 +0000 (08:41 -0500)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Feb 2021 09:47:04 +0000 (10:47 +0100)
commitc4f4bfbce98b730105729d0153a4b9f2290e0311
tree2efbd3d98729493264109ab4abda24ef284e1789
parent997f1b84b3e74ed23746d3632bf2b9f0e3f93951
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