From fdd19a2ad1df83b3b0b48faa5060d73695707602 Mon Sep 17 00:00:00 2001 From: xxcs Date: Mon, 4 Nov 2019 20:29:46 +0800 Subject: [PATCH] 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) --- src/rgw/rgw_iam_policy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h index cc6453acd9b0..9e0665d89a3d 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; } -- 2.47.3