]> git.ipfire.org Git - thirdparty/grub.git/commit
safemath: Add ALIGN_UP_OVF() which checks for an overflow
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 20 May 2024 17:20:57 +0000 (01:20 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 May 2024 13:19:06 +0000 (15:19 +0200)
commit1ba39de62f91302f7eb95e78dc8ce9c086f74df8
tree3f2dd7a509d294cd2a92ed63e2077263f0a406b7
parentd291449ba3a7b51c4469404c2036a91002788d69
safemath: Add ALIGN_UP_OVF() which checks for an overflow

The following EROFS patch will use this helper to handle
ALIGN_UP() overflow.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/safemath.h