Re: [PATCH] x86/lib: Fix num_digits() signed overflow for INT_MIN
From: H. Peter Anvin
Date: Tue Jan 20 2026 - 13:02:42 EST
On January 20, 2026 8:40:50 AM PST, Borislav Petkov <bp@xxxxxxxxx> wrote:
>On Tue, Jan 20, 2026 at 08:23:16AM -0800, H. Peter Anvin wrote:
>> That has got to be the dumbest possible implementation of that task, bug or no bug.
>
>LOL, did you read the comment above that function?
>
>ROTFL.
>
I did. No wonder it sucked! 🤣