]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/lua: fix CopyFrom crash 54296/head
authorYuval Lifshitz <ylifshit@redhat.com>
Mon, 10 Apr 2023 14:27:05 +0000 (14:27 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Wed, 1 Nov 2023 15:29:48 +0000 (15:29 +0000)
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 6d324d4fcaab67a076ca97e497d756a2f7d87a13..551f5fd72207d26a42219260d9acda969d281114 100644 (file)
@@ -786,7 +786,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);
       }