42b07ba
From 08232c1eababe3c12c94eb1eb272bd363693450e Mon Sep 17 00:00:00 2001
42b07ba
From: Stephan Bergmann <sbergman@redhat.com>
42b07ba
Date: Wed, 9 May 2018 12:15:09 +0200
42b07ba
Subject: [PATCH] Missing template clone() in configmgr dconf mode
42b07ba
42b07ba
...that could cause infinite recursion, e.g. when an erroneously modified
42b07ba
/org.openoffice.ucb.Hierarchy/Entry template (which recursively has children of
42b07ba
the same template type) is later used to instantiate a new set member.
42b07ba
42b07ba
Change-Id: I7b9e55fa1c92979aed98b9f23f4432600afffed4
42b07ba
---
42b07ba
 configmgr/source/dconf.cxx | 1 +
42b07ba
 1 file changed, 1 insertion(+)
42b07ba
42b07ba
diff --git a/configmgr/source/dconf.cxx b/configmgr/source/dconf.cxx
42b07ba
index 22c80841addf..642e37ec0257 100644
42b07ba
--- a/configmgr/source/dconf.cxx
42b07ba
+++ b/configmgr/source/dconf.cxx
42b07ba
@@ -938,6 +938,7 @@ void readDir(
42b07ba
                                 << templ);
42b07ba
                         continue;
42b07ba
                     }
42b07ba
+                    member = member->clone(true);
42b07ba
                     break;
42b07ba
                 default:
42b07ba
                     assert(false); // cannot happen
42b07ba
-- 
42b07ba
2.14.3
42b07ba