https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117322
--- Comment #2 from Anton Kryukov ---
(In reply to Andrew Pinski from comment #1)
> So adding:
> if ((long)(len*4) <= 0) return;
>
> Fixes the warning.
>
> Looks like GCC does not realize len can't be too big to overflow.
>
> I am not 100%
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117322
Bug ID: 117322
Summary: Another spurios "may be used uninitialized" warning
when using alloca.
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal