Re: [PATCH v5 1/5] lib: fix _parse_integer_limit() to handle overflow

From: Dmitry Antipov

Date: Thu Feb 05 2026 - 04:23:21 EST


On Wed, 2026-02-04 at 16:31 +0200, Andy Shevchenko wrote:

> In case you would need a v6, we can leave some of the lines untouched if we
> switch to for-loop instead of while, but it might make the for-loop quite long.

Hmm...the for-loop might be:

for (res = 0, rv = 0; max_chars--; rv++, s++) {
...
}

and it makes _parse_integer_limit() a few lines shorter.

Dmitry