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 Thu, Sep 3, 2015 at 12:23 AM, Andreas Schwab <schwab@suse.de> wrote:
> Paul Pluzhnikov <ppluzhnikov@google.com> writes:

>> +$(objpfx)tst-printf-bz18872.c: tst-printf-bz18872.sh
>> +     rm -f $@
>> +     $(BASH) $^ > $@
>
> Please make that atomic by using a temporary file.

Sorry, I didn't understand that comment.

Do you mean that I should have a rule like this:

$(objpfx)tst-printf-bz18872.out: tst-printf-bz18872.sh
        $(BASH) $^  | $(CC) ... -o $(objpfx)tst-printf-bz18872 -xc -
        $(test-something-or-other)

or something else?
(Figuring out the commands for that rule gives me a pause.)

Thanks,
-- 
Paul Pluzhnikov


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