]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix gic_keytab crash on memory exhaustion 1275/head
authorChenChen Zhou <357726167@qq.com>
Sun, 27 Nov 2022 14:57:14 +0000 (22:57 +0800)
committerGreg Hudson <ghudson@mit.edu>
Mon, 5 Dec 2022 21:50:00 +0000 (16:50 -0500)
commit6bc90214830cb5239aa397c20763902f10f11786
treed8962cd7c31711e93787ec6ff5b7e2ce0f9cef24
parent7736144eb613f797dea57a44da33007a19602e5e
Fix gic_keytab crash on memory exhaustion

get_as_key_keytab() does not check the result of krb5_copy_keyblock(),
and dereferences a null pointer if it fails.  Remove the call and
steal the memory from kt_ent instead.

[ghudson@mit.edu: rewrote commit message; fixed comments]

ticket: 9080 (new)
src/lib/krb5/krb/gic_keytab.c