]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lua: fix CopyFrom crash 59336/head
authorYuval Lifshitz <ylifshit@redhat.com>
Mon, 10 Apr 2023 14:27:05 +0000 (14:27 +0000)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 20 Aug 2024 12:36:42 +0000 (19:36 +0700)
Fixes: https://tracker.ceph.com/issues/59381
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit 41ed6b3c353c74089da2e6e6d6564365ada1cfeb)

src/rgw/rgw_lua_request.cc

index f123062c24ae0e25fc450538cbe683defea08a26..2fc971fc3843a3aedcef64c4a3d4139513a6dc30 100644 (file)
@@ -757,7 +757,7 @@ struct RequestMetaTable : public EmptyMetaTable {
       create_metatable<ObjectMetaTable>(L, false, s->object);
     } else if (strcasecmp(index, "CopyFrom") == 0) {
       if (s->op_type == RGW_OP_COPY_OBJ) {
-        create_metatable<CopyFromMetaTable>(L, s);
+        create_metatable<CopyFromMetaTable>(L, false, s);
       } else {
         lua_pushnil(L);
       }