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 Committer: Tom Yu Commit: acb07eae351434ca1058634270e5a9674ea064c5 Branch: krb5-1.12 src/plugins/preauth/pkinit/pkinit_crypto_openssl.c | 28 ++++++++++++------- 1 files changed, 18 insertions(+), 10 deletions(-)