]> git.ipfire.org Git - thirdparty/grub.git/commit
net/dns: Don't read past the end of the string we're checking against
authorDaniel Axtens <dja@axtens.net>
Mon, 20 Dec 2021 10:55:43 +0000 (21:55 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:33 +0000 (16:39 +0200)
commit96abf4fb9d829f4a405d5df39bc74bbccbd0e322
treec417ab954f4c1d9594bde2091ff3990c0576d932
parentc1b7eef9fa4aaefbf7d0507505c3bb2914e1ad6b
net/dns: Don't read past the end of the string we're checking against

I don't really understand what's going on here but fuzzing found
a bug where we read past the end of check_with. That's a C string,
so use grub_strlen() to make sure we don't overread it.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/dns.c