Re: CodeQL warning about returning stack-allocated memory in gettext.h

2023-11-14 Thread Eric Gallager
On Tue, Nov 14, 2023 at 8:14 PM Bruno Haible wrote: > > Hi, > > Eric Gallager wrote: > > Hi, I have a project that uses gnulib's gettext.h, and also has CodeQL > > scanning turned on in GitHub. In this project, CodeQL warns about the > > "return translation;" statement on line 247 of gettext.h, sa

Re: CodeQL warning about returning stack-allocated memory in gettext.h

2023-11-14 Thread Bruno Haible
Hi, Eric Gallager wrote: > Hi, I have a project that uses gnulib's gettext.h, and also has CodeQL > scanning turned on in GitHub. In this project, CodeQL warns about the > "return translation;" statement on line 247 of gettext.h, saying that > it "May return stack-allocated memory from msg_ctxt_id