Closed mozkeeler closed 1 year ago
Oh yeah. I think that this is right. The SECItem
can move without an issue, but the self-reference inside the SECItem
depends on the memory referenced by the Vec
not moving (this is not the Vec
itself even).
Consider
ParamItem
:It's entirely possible I'm misunderstanding
Pin
, but I don't think the correct field is being pinned. Pinning theSECItem
means it (theSECItem
) can't be moved around in memory, butparams
can still be moved, because it isn't pinned. This means that thedata
field of theSECItem
may point to invalid memory.