https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114542
--- Comment #4 from Heiko Eißfeldt <heiko at hexco dot de> --- I submitted a patch to replace the atoi functions and add a new testcase. BTW: the maximum allowed value was INT_MAX (your example used UINT_MAX). https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671259.html