[krbdev.mit.edu #8890] git commit
"Greg Hudson via RT" <[email protected]>
| Newsgroups | gmane.comp.encryption.kerberos.bugs |
|---|---|
| Message-ID | <[email protected]> |
Thu Mar 26 00:24:27 2020: Request 8890 was acted upon. Transaction: Ticket created by [email protected] Queue: krb5 Subject: git commit Owner: [email protected] Requestors: Status: new Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8890 > Add finalization safety check to com_err If the linker erroneously runs the libkrb5 finalizer after the libcom_err finalizer, the consequent remove_error_table() calls could crash due to accessing a destroyed mutex or an invalid et_list pointer. Add an unsynchronized check on finalized in remove_error_table(), and set et_list to null in com_err_terminate() after destroying the list. [[email protected]: minimized code hanges; rewrote comment and commit message] https://github.com/krb5/krb5/commit/9d654aa05e26bbf22f140abde3436afeff2fdf8d Author: Jiri Sasek <[email protected]> Committer: Greg Hudson <[email protected]> Commit: 9d654aa05e26bbf22f140abde3436afeff2fdf8d Branch: master src/util/et/error_message.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)