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

Jonathan Bar Or jonathanbaror at gmail.com
Thu Feb 13 02:46:16 AEDT 2025


Got it, looks good.

Jonathan

On Wed, Feb 12, 2025, 7:33 AM Gao Xiang <hsiangkao at linux.alibaba.com> wrote:

>
>
> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20250212/ddd6d0ef/attachment.htm>


More information about the Linux-erofs mailing list