grub2/grub-core/io
Daniel Axtens 2df30bf33e io/gzio: Zero gzio->tl/td in init_dynamic_block() if huft_build() fails
If huft_build() fails, gzio->tl or gzio->td could contain pointers that
are no longer valid. Zero them out.

This prevents a double free when grub_gzio_close() comes through and
attempts to free them again.

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

Patch-Name: 2021-02-security/083-io-gzio-Zero-gzio-tl-td-in-init_dynamic_block-if-huft_build-fails.patch
2021-02-27 14:50:08 +00:00
..
bufio.c Change fs functions to add fs_ prefix 2019-04-09 10:03:29 +10:00
gzio.c io/gzio: Zero gzio->tl/td in init_dynamic_block() if huft_build() fails 2021-02-27 14:50:08 +00:00
lzopio.c io/lzopio: Resolve unnecessary self-assignment errors 2021-02-27 14:48:35 +00:00
offset.c Change fs functions to add fs_ prefix 2019-04-09 10:03:29 +10:00
xzio.c Change fs functions to add fs_ prefix 2019-04-09 10:03:29 +10:00