I think, I overlooked something, so please ignore that. I will prepare
Patch V2 soon.

On 12/9/24 8:13 PM, Heiko Eißfeldt wrote:
Straight forward replacements of atoi() with strtoul() in order to
avoid UB
and detect invalid argument values.

Tested with x86_64-pc-linux-gnu.
2024-12-09 Heiko Eißfeldt <he...@hexco.de>

    PR lto/114542
    * lto-wrapper.cc (run_gcc):
    Use strtoul with ERANGE check instead of atoi

    * lto/lto.cc (do_whole_program_analysis):
    ditto

    * opts.cc (common_handle_option):
    ditto

    * gcc.dg/pr114542.c: new test case


Reply via email to