On Mon, Dec 9, 2024 at 12:34 PM Heiko Eißfeldt <he...@hexco.de> wrote:
>
> On 12/9/24 10:15 AM, Richard Biener wrote:
> > Can you send the patch in git format-patch format please so that
> > it includes the commit message and Author tag and I can git am
> > for pushing?  At least you are not listed in MAINTAINERS and thus
> > likely do not have git commit access?
> Yes, currently I do not have no commit access.
> Here it comes:
>
>         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#. The full treatment of these invalid
>         values was considered out of scope for this patch.

Pushed.  I've edited the above ChangeLog entry into the commit message
as follows.

From: Heiko Eißfeldt <he...@hexco.de>

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>
---
 gcc/c/gimple-parser.cc | 20 +++++++++++++++-----
...

Reply via email to