[PATCH] fixed #2316
authorjeanlf <jeanlf@gpac.io>
Wed, 23 Nov 2022 14:59:43 +0000 (15:59 +0100)
committerAron Xu <aron@debian.org>
Tue, 23 May 2023 11:53:25 +0000 (12:53 +0100)
Gbp-Pq: Name CVE-2023-0770.patch

src/scenegraph/vrml_proto.c

index 97b41e9246aee3e0c5d528f94d4094c972ab9dfc..a74f4a0a55caab17c3eb95bd513cfe3d3e54b0bd 100644 (file)
@@ -1289,7 +1289,10 @@ Bool gf_sg_proto_field_is_sftime_offset(GF_Node *node, GF_FieldInfo *field)
 
                gf_node_get_field(r->ToNode, r->ToField.fieldIndex, &inf);
                /*IS to another proto*/
-               if (r->ToNode->sgprivate->tag == TAG_ProtoNode) return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
+               if (r->ToNode->sgprivate->tag == TAG_ProtoNode) {
+                       if (r->ToNode==node) continue;
+                       return gf_sg_proto_field_is_sftime_offset(r->ToNode, &inf);
+               }
                /*IS to a startTime/stopTime field*/
                if (!stricmp(inf.name, "startTime") || !stricmp(inf.name, "stopTime")) return 1;
        }