]> git.proxmox.com Git - grub2.git/commit
io/gzio: Bail if gzio->tl/td is NULL
authorDaniel Axtens <dja@axtens.net>
Wed, 13 Jan 2021 09:59:09 +0000 (20:59 +1100)
committerColin Watson <cjwatson@debian.org>
Sun, 13 Jun 2021 23:40:46 +0000 (00:40 +0100)
commit7ad63f14e62e04675ae6fc4ee8eac39cb49f08e2
treee22291305a2e26989f6028beb497591ebf6dcf6a
parent6bd6187cd082eae001988368c0a04fdf74f81630
io/gzio: Bail if gzio->tl/td is NULL

This is an ugly fix that doesn't address why gzio->tl comes to be NULL.
However, it seems to be sufficient to patch up a bunch of NULL derefs.

It would be good to revisit this in future and see if we can have
a cleaner solution that addresses some of the causes of the unexpected
NULL pointers.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Patch-Name: 2021-02-security/080-io-gzio-Bail-if-gzio-tl-td-is-NULL.patch
grub-core/io/gzio.c