-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
Description
At least at one place we hand over Go pointers to the Ceph API that gonna get stored in a handler registry after the call returns, which violates the pointer passing rules:
Lines 80 to 81 in 312e4cf
| &gos.more, | |
| &gos.rval, |
So there is no guarantee that the pointers remain valid.
With the iterator right before:
Line 79 in 312e4cf
| &gos.iter, |
we are safe, since - as far as I can tell - it doesn't get stored anywhere.