mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Add hardening fix for Self provider to avoid copying bugs
This commit is contained in:
parent
e29040d2ee
commit
980f9fc2bc
File diff suppressed because it is too large
Load Diff
|
@ -474,6 +474,8 @@ cdef class Self(Provider):
|
|||
return copied
|
||||
|
||||
copied = self.__class__()
|
||||
memo[id(self)] = copied
|
||||
|
||||
copied.set_container(deepcopy(self.__container, memo))
|
||||
copied.set_alt_names(self.__alt_names)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user