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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b

commit r15-6039-g2b8ecbfe2ce6558637d42fdcb7efb3f878feb56b
Author: Heiko Eißfeldt <he...@hexco.de>
Date:   Mon Dec 9 10:39:50 2024 +0100

    replace atoi with stroul in c_parser_gimple_parse_bb_spec [PR114541]

    The full treatment of these invalid values was considered out of
    scope for this patch.

            PR c/114541
            * gimple-parser.cc (c_parser_gimple_parse_bb_spec):
            Use strtoul with ERANGE check instead of atoi to avoid UB
            and detect invalid __BB#.

    Signed-off-by: Heiko Eißfeldt <he...@hexco.de>

Reply via email to