[krbdev.mit.edu #9014] git commit

"Greg Hudson via RT" <[email protected]> Mon, 12 Jul 2021 12:41:40 -0400
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9014 >


Using locking in MEMORY krb5_cc_get_principal()

Without locking, the principal pointer could be freed out from under
krb5_copy_principal() by another thread calling krb5_cc_initialize()
or krb5_cc_destroy().

(cherry picked from commit 1848447291c68e21311f441b0458ae53471d00d3)

https://github.com/krb5/krb5/commit/4abb051f76ae8f55247875a68f424a62a6315ec0
Author: Greg Hudson <[email protected]>
Commit: 4abb051f76ae8f55247875a68f424a62a6315ec0
Branch: krb5-1.18
 src/lib/krb5/ccache/cc_memory.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)