]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/zfs: Use safe math macros to prevent overflows
authorLidong Chen <lidong.chen@oracle.com>
Wed, 22 Jan 2025 07:17:02 +0000 (07:17 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Feb 2025 14:45:57 +0000 (15:45 +0100)
commit88e491a0f744c6b19b6d4caa300a576ba56db7c9
tree0bc9066b66eb8e9ac57837d4dcec531f842939c9
parentcde9f7f338f8f5771777f0e7dfc423ddf952ad31
fs/zfs: Use safe math macros to prevent overflows

Replace direct arithmetic operations with macros from include/grub/safemath.h
to prevent potential overflow issues when calculating the memory sizes.

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/zfs/zfs.c