From: Thomas Jarosch <thomas.jarosch@intra2net.com>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Re: [perf PATCH] Use pclose() instead of fclose() on pipe stream
Date: Wed, 16 Jan 2013 10:09:48 +0100 [thread overview]
Message-ID: <1798138.DOH3quA1zP@storm> (raw)
In-Reply-To: <20130111041603.GB3054@ghostprotocols.net>
Hi Arnaldo,
On Friday, 11. January 2013 01:16:03 you wrote:
> > Also fix descriptor leak on error
> >
> > Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
> > ---
> >
> > tools/perf/util/sort.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> After applying this:
>
> CC /home/acme/git/build/perf/util/cpumap.o
> cc1: warnings being treated as errors
> util/sort.c: In function ‘hist_entry__srcline_snprintf’:
> util/sort.c:254: error: ‘fp’ may be used uninitialized in this function
> make: *** [/home/acme/git/build/perf/util/sort.o] Error 1
Alright, looks like I've messed up the "early" error path.
The "FILE *fp" pointer needs to be initialized to NULL.
Should I send another patch or do you want to fix it on the fly?
What about the other patch
"[perf PATCH] Fix possible (unlikely) buffer overflow"
?
Cheers,
Thomas
next prev parent reply other threads:[~2013-01-16 9:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-25 16:02 Thomas Jarosch
2013-01-11 4:16 ` Arnaldo Carvalho de Melo
2013-01-16 9:09 ` Thomas Jarosch [this message]
2013-01-16 18:13 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1798138.DOH3quA1zP@storm \
--to=thomas.jarosch@intra2net.com \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome