https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127666
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:0a038d40de7323ad225e50d451bd2ecdd27aa4b4 commit r14-12913-g0a038d40de7323ad225e50d451bd2ecdd27aa4b4 Author: Jonathan Wakely <[email protected]> Date: Thu Oct 1 17:39:33 2026 +0100 libstdc++: Fix std::from_chars to not read past end of input [PR127666] The bug report points out one out-of-bounds read and the second was found by an LLM. The testcase was generated by an LLM. The code fixes are artisanal handwritten code. Assisted-by: LLM libstdc++-v3/ChangeLog: PR libstdc++/127666 * src/c++17/floating_from_chars.cc (pattern): Avoid reading past the end of the input. Remove unused variable. * testsuite/20_util/from_chars/127666.cc: New test. Reviewed-by: Tomasz KamiÅski <[email protected]> (cherry picked from commit 524847fec983eaedca147840ce46fcbb0cd38952)
