]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/tar: Initialize name in grub_cpio_find_file()
authorB Horn <b@horn.uk>
Sun, 12 May 2024 01:47:54 +0000 (02:47 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 16 Jan 2025 14:07:22 +0000 (15:07 +0100)
commit2c8ac08c99466c0697f704242363fc687f492a0d
tree9712e0d8d4d54d8c4e0b0993a7a40a47f32b73ac
parent417547c10410b714e43f08f74137c24015f8f4c3
fs/tar: Initialize name in grub_cpio_find_file()

It was possible to iterate through grub_cpio_find_file() without
allocating name and not setting mode to GRUB_ARCHELP_ATTR_END, which
would cause the uninitialized value for name to be used as an argument
for canonicalize() in grub_archelp_dir().

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/tar.c