]> git.ipfire.org Git - thirdparty/grub.git/commit
zfs: add missing NULL check and fix incorrect buffer overwrite
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 3 May 2015 15:55:13 +0000 (18:55 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sun, 3 May 2015 15:57:32 +0000 (18:57 +0300)
commit6210b8e8f7b4640711dd449ca8301d06fee62334
treee4690056bb69a1c879fdd7d05c2ffcf477581b43
parent4a7ea4003bd9f39e9bf2ebadbe4ab38f8874be66
zfs: add missing NULL check and fix incorrect buffer overwrite

grub_memset should zero out padding after data end. It is not clear
why it is needed at all - ZFS block is at least 512 bytes and power
of two, so it is always multiple of 16 bytes. This grub_memset
apparently never did anything.
grub-core/fs/zfs/zfs.c