File 3032-CVE-2024-47866.patch of Package ceph-ceph-20.2.0+20260319.5bb32787
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc
index 02acc8aee..414972e46 100644
--- a/src/rgw/rgw_op.cc
+++ b/src/rgw/rgw_op.cc
@@ -5741,6 +5741,9 @@ bool RGWCopyObj::parse_copy_location(const std::string_view& url_src,
params_str = url_src.substr(pos + 1);
}
+ if (name_str.empty()) {
+ return false;
+ }
if (name_str[0] == '/') // trim leading slash
name_str.remove_prefix(1);