This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use x{v,}asprintf some more
- From: Andi Kleen <andi at firstfloor dot org>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 26 Dec 2014 12:52:57 -0800
- Subject: Re: [PATCH] Use x{v,}asprintf some more
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZSSeXOZS-WbMwdNM5VfLLgELKk-WGS=hoKbDTTXCWQfg at mail dot gmail dot com>
Uros Bizjak <ubizjak@gmail.com> writes:
> Hello!
>
> This patch uses x{v,}asprintf where the result of the function is unused.
I would be careful with it. Some old glibc versions have an asprintf
that corrupts memory. If you do this force the libiberty version
unconditionally.
-Andi
--
ak@linux.intel.com -- Speaking for myself only