From: xxcs Date: Mon, 4 Nov 2019 12:29:46 +0000 (+0800) Subject: rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket policy X-Git-Tag: v14.2.8~78^2~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F32832%2Fhead;p=ceph.git rgw: Incorrectly calling ceph::buffer::list::decode_base64 in bucket policy Fixes: https://tracker.ceph.com/issues/42616 Signed-off-by: GaryHyg (cherry picked from commit f56e9146f86f107bbf245700874ea849c57b5fef) --- diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h index cc6453acd9b..9e0665d89a3 100644 --- a/src/rgw/rgw_iam_policy.h +++ b/src/rgw/rgw_iam_policy.h @@ -325,7 +325,7 @@ struct Condition { ceph::bufferlist bin; try { - base64.decode_base64(bin); + bin.decode_base64(base64); } catch (const ceph::buffer::malformed_input& e) { return boost::none; }