https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127666

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <[email protected]>:

https://gcc.gnu.org/g:524847fec983eaedca147840ce46fcbb0cd38952

commit r17-4826-g524847fec983eaedca147840ce46fcbb0cd38952
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]>

Reply via email to