]> git.proxmox.com Git - grub2.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)
committerJulian Andres Klode <julian.klode@canonical.com>
Wed, 8 Jun 2022 10:41:03 +0000 (12:41 +0200)
commit968febf3a4de5df0f91cc13bc6b6053fc22575e1
tree350ef241116abb11f33b46240da07d9ec0078176
parent21158c5dfb5e0c5015277346128903397d498da4
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