Browse Source

dlltool: replace unchecked malloc with xmalloc

master
Nandakumar Edamana 2 years ago
committed by Alan Modra
parent
commit
1bc2544b89
  1. 2
      binutils/dlltool.c

2
binutils/dlltool.c

@ -876,7 +876,7 @@ dlltmp (char **buf, const char *fmt)
{
if (!*buf)
{
*buf = malloc (strlen (tmp_prefix) + 64);
*buf = xmalloc (strlen (tmp_prefix) + 64);
sprintf (*buf, fmt, tmp_prefix);
}
return *buf;

Loading…
Cancel
Save