Re: [PATCH 1/5] string.h: add array-wrappers for (v)memdup_user()

From: Andy Shevchenko
Date: Wed Aug 30 2023 - 14:52:49 EST


On Wed, Aug 30, 2023 at 4:46 PM Philipp Stanner <pstanner@xxxxxxxxxx> wrote:

> + if (unlikely(check_mul_overflow(n, size, &nbytes)))
> + return ERR_PTR(-EINVAL);

> + if (unlikely(check_mul_overflow(n, size, &nbytes)))
> + return ERR_PTR(-EINVAL);

Btw, why not -EOVERFLOW ?

--
With Best Regards,
Andy Shevchenko