Re: [PATCH] Plug possible snprintf overflow in lto-wrapper.

2021-09-30 Thread Richard Biener via Gcc-patches
On Thu, Sep 30, 2021 at 8:17 AM Aldy Hernandez via Gcc-patches wrote: > > My upcoming improvements to the DOM threader triggered a warning in > this code. It looks like the format string is ".ltrans%u.ltrans", but > we're only writing a max of ".ltrans" + whatever the MAX_INT is here. > > Tested

[PATCH] Plug possible snprintf overflow in lto-wrapper.

2021-09-29 Thread Aldy Hernandez via Gcc-patches
My upcoming improvements to the DOM threader triggered a warning in this code. It looks like the format string is ".ltrans%u.ltrans", but we're only writing a max of ".ltrans" + whatever the MAX_INT is here. Tested on x86-64 Linux. OK? gcc/ChangeLog: * lto-wrapper.c (run_gcc): Plug snp