Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

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@mit.edu: simplified slightly]

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

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@mit.edu: simplified slightly]

(cherry picked from commit 5ac159e220297a8f62dd5edcec6f9b988b0627ea)

https://github.com/krb5/krb5/commit/b9587b53d09cea8ff8625bcda12815eff359f6d6
Author: Nalin Dahyabhai <nalin@dahyabhai.net>
Committer: Tom Yu <tlyu@mit.edu>
Commit: b9587b53d09cea8ff8625bcda12815eff359f6d6
Branch: krb5-1.12
src/lib/krb5/ccache/cc_keyring.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)