[krbdev.mit.edu #7917] git commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Fri Jun 27 12:34:56 EDT 2014


Properly handle PKCS11 label in PKINIT

The CK_TOKEN_INFO label field is defined to be zero-filled, but it may
not be zero-terminated if all bytes of the field are used.  Use only
length-counted operations to process it.  Also avoid underrunning the
buffer pointer if the label is empty or contains only whitespace.

(cherry picked from commit f8b42ef541a463f56720ec9358dd07716b04c5e2)

https://github.com/krb5/krb5/commit/acb07eae351434ca1058634270e5a9674ea064c5
Author: Greg Hudson <ghudson at mit.edu>
Committer: Tom Yu <tlyu at mit.edu>
Commit: acb07eae351434ca1058634270e5a9674ea064c5
Branch: krb5-1.12
 src/plugins/preauth/pkinit/pkinit_crypto_openssl.c |   28 ++++++++++++-------
 1 files changed, 18 insertions(+), 10 deletions(-)



More information about the krb5-bugs mailing list