]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix crash on empty TXT records 1432/head
authorDavid Zhou <david.zhou@dell.com>
Fri, 24 May 2024 02:40:06 +0000 (02:40 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 22 May 2025 02:18:48 +0000 (22:18 -0400)
commit6a7877183ef668d3b52df1f2926acc8be6f1c475
treedaeb13283d650282fadc9e25caf69731a7db2c04
parent61e92fe9a06ca7890c227729a910dc017a8e07e2
Fix crash on empty TXT records

In k5_try_realm_txt_rr(), error out if the first text string in a TXT
record is empty or if its length exceeds the record length.

This function is only used when dns_lookup_realm is set to true in
krb5.conf.  An alternative implementation is used on Windows.

[ghudson@mit.edu: moved zero-length check and added upper bound check;
rewrote commit message]

ticket: 9174 (new)
src/lib/krb5/os/dnsglue.c