Open PurelyApplied opened 4 years ago
I assume this includes embedding? E.g. if a struct embeds another struct, implicitly it has the embedded struct as a field.
I would say yes. The distinction in embedding is just a method-set delegation, and we're generally not concerning ourselves with the interface layer. The embedded field is still a field and should covered by this issue as well.
Consider the following:
While explicit instantiation
c := Container{ID: 10, content: Source{secret: "my-token"}}
should be currently detected by taint propagation to the struct's field, this context may be lost outside the instantiation of the wrapper.