Skip Menu |
 

Subject: Bad calloc test in krb5_authdata_context_init()
In krb5_authdata_context_init() I see:

context = calloc(1, sizeof(*context));
if (kcontext == NULL) {
code = ENOMEM;
goto cleanup;
}

Seems wrong, no?
Yes; I filed pull request #176 to fix it.
From: ghudson@mit.edu
Subject: git commit

Fix calloc check in krb5_authdata_context_init

https://github.com/krb5/krb5/commit/4abfd7bc3819a66f77a1cf121b7608af624ecb6e
Author: Greg Hudson <ghudson@mit.edu>
Commit: 4abfd7bc3819a66f77a1cf121b7608af624ecb6e
Branch: master
src/lib/krb5/krb/authdata.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: tlyu@mit.edu
Subject: git commit

Fix calloc check in krb5_authdata_context_init

(cherry picked from commit 4abfd7bc3819a66f77a1cf121b7608af624ecb6e)

https://github.com/krb5/krb5/commit/6f99ee3aa458443b9ca4722c2aab82db1400bbbf
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: 6f99ee3aa458443b9ca4722c2aab82db1400bbbf
Branch: krb5-1.12
src/lib/krb5/krb/authdata.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)