]> dgit.raspbian.org Git - grub2.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)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commit1b4676ef0d52d92d6575332cd0a12b2abb31dc24
tree6fbfff55be54fa06486fb81d1f7d2acdde1e2c8d
parent58138c5d36ba2ed19c5f3b00cf0132059b2c70a7
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>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-zfs-Use-safe-math-macros-to-prevent-overflows.patch
grub-core/fs/zfs/zfs.c