[krbdev.mit.edu #7764] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Tue Nov 12 11:20:27 EST 2013


Catch more strtol() failures when using KEYRINGs

When parsing what should be a UID while resolving a KEYRING ccache
name, don't just depend on strtol() to set errno when the residual
that we pass to it can't be parsed as a number.  In addition to
checking errno, pass in and check the value of an "endptr".

[ghudson at mit.edu: simplified slightly]

https://github.com/krb5/krb5/commit/5ac159e220297a8f62dd5edcec6f9b988b0627ea
Author: Nalin Dahyabhai <nalin at dahyabhai.net>
Committer: Greg Hudson <ghudson at mit.edu>
Commit: 5ac159e220297a8f62dd5edcec6f9b988b0627ea
Branch: master
 src/lib/krb5/ccache/cc_keyring.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)



More information about the krb5-bugs mailing list