PR binutils/14526
* argv.c (buildargv): Replace alloca with xmalloc/free.
From-SVN: r190766
+2011-08-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/14526
+ * argv.c (buildargv): Replace alloca with xmalloc/free.
+
2012-08-17 Andreas Schwab <schwab@linux-m68k.org>
* floatformat.c (floatformat_to_double): Correctly handle numbers
if (input != NULL)
{
- copybuf = (char *) alloca (strlen (input) + 1);
+ copybuf = (char *) xmalloc (strlen (input) + 1);
/* Is a do{}while to always execute the loop once. Always return an
argv, even for null strings. See NOTES above, test case below. */
do
consume_whitespace (&input);
}
while (*input != EOS);
+
+ free (copybuf);
}
return (argv);
}