Subject: | memory ccache cursors are invalidated by initialize |
Memory ccache objects contain a linked list of credentials. The
iteration cursor is a pointer to one of the list elements. If the
cache is initialized by one thread while another thread is iterating
over it, the second thread's cursor contains a dangling pointer and the
process will likely crash.
(This behavior can also be demonstrated in a single-threaded caller,
but the caller would have to be doing something obtuse.)
iteration cursor is a pointer to one of the list elements. If the
cache is initialized by one thread while another thread is iterating
over it, the second thread's cursor contains a dangling pointer and the
process will likely crash.
(This behavior can also be demonstrated in a single-threaded caller,
but the caller would have to be doing something obtuse.)