[PATCH] fs/erofs: fix an integer overflow in symlink resolution

Gao Xiang hsiangkao at linux.alibaba.com
Thu Feb 13 02:33:12 AEDT 2025



On 2025/2/12 22:17, Jonathan Bar Or wrote:
> This is good, but may I suggest using __builtin_add_overflow instead?

They are just the same.

erofs-utils follows the kernel style, mostly the kernel doesn't
directly use __builtin_add_overflow, instead it has a wrapper
check_add_overflow().

I could use __builtin_add_overflow for u-boot only.

Thanks,
Gao Xiang

> 
> Jonathan
> 


More information about the Linux-erofs mailing list