[krbdev.mit.edu #9231] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu Aug 6 22:08:55 EDT 2026


Thu Aug 06 22:08:54 2026: Request 9231 was acted upon.
 Transaction: Ticket created by ghudson at mit.edu
       Queue: krb5
     Subject: git commit
       Owner: ghudson at mit.edu
  Requestors: 
      Status: new
 Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9231 >



Fix deserializing context with missing profile

k5_internalize_context() tolerates EINVAL and ENOENT failures from
profile_ser_internalize(), which should allow it to continue if a
configuration file (such as /etc/krb5.conf) is missing in the
deserializing process.  However, profile_ser_internalize() only
updates the caller's buffer pointer if the profile was initialized, so
k5_internalize_context() attempts to read its trailer from the
serialized profile data and fails.  Change profile_ser_internalize()
to update the caller's buffer pointer once it has consumed a whole
profile serialization, whether or not profile_init() succeeds.

[ghudson at mit.edu: edited commit message and comment]

https://github.com/krb5/krb5/commit/66f6fde30ec696437fecfddee778f0291a1d2ca1
Author: Sergey Bugaev <bugaevc at gmail.com>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 66f6fde30ec696437fecfddee778f0291a1d2ca1
Branch: master
 src/util/profile/prof_init.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)



More information about the krb5-bugs mailing list