Re: [PATCH] x86/lib: Fix num_digits() signed overflow for INT_MIN

From: Borislav Petkov

Date: Tue Jan 20 2026 - 16:28:02 EST


On Tue, Jan 20, 2026 at 09:16:28PM +0100, David Desobry wrote:
> I haven't hit this corner case in practice; I was just auditing the code and
> noticed the corner case overflow leading to wrong logic.

Ok, good.

> Then in a v2 version I brought some design improvement (switch case).

I saw it, thanks.

Btw, please do not send HTML mail and do not top-post on a public mailing
list.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette