This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix memory leak in printf_positional


On 09/12/2015 12:37 PM, Paul Pluzhnikov wrote:
On Thu, Sep 3, 2015 at 8:59 AM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:

Revised patch addressing all comments attached.
Thanks,

2015-09-03  Paul Eggert  <eggert@cs.ucla.edu>
             Paul Pluzhnikov  <ppluzhnikov@google.com>

         [BZ #18872]
         * stdio-common/Makefile (tst-printf-bz18872): New test.
         (tst-printf-bz18872-mem.out): Likewise.
         * stdio-common/tst-printf-bz18872.sh: Generate new test.
         * stdio-common/vfprintf.c: Fix memory leaks.

Ping?
https://sourceware.org/ml/libc-alpha/2015-09/msg00086.html

I see the test disables optimization to work around the GCC issue
but I wonder if a better solution might be to create an array object
for the format string rather than passing it as a literal to printf.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]