Manifest copy constructor does not deeply copy individual section Attributes

Philipp Kunz philipp.kunz at
Sat Jan 19 18:32:25 UTC 2019


Creating a new manifest as a copy from an existing one using the copy
constructor assigns the new manifest individual sections entries map
the same values which are references to attributes as the original
rather than copying them as well deeply resulting in two manifests
pointing to the same attributes instances modifications to which always
affect both manifests. See test and proposed fix in the attached patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: manifestcopyconstructor.patch
Type: text/x-patch
Size: 3039 bytes
Desc: not available
URL: <>

More information about the core-libs-dev mailing list