aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNandakumar Edamana <nandakumar@nandakumar.co.in>2024-04-04 10:56:14 +0530
committerAlan Modra <amodra@gmail.com>2024-04-04 17:58:50 +1030
commit1bc2544b895f001cef00c9d71e70557dacb8ee55 (patch)
tree348fa3b4a796faaf8936072db032550d57f7e10f /binutils
parentb43b352837ea11af64ea83754b06f0e8d335706e (diff)
downloadgdb-1bc2544b895f001cef00c9d71e70557dacb8ee55.zip
gdb-1bc2544b895f001cef00c9d71e70557dacb8ee55.tar.gz
gdb-1bc2544b895f001cef00c9d71e70557dacb8ee55.tar.bz2
dlltool: replace unchecked malloc with xmalloc
Diffstat (limited to 'binutils')
-rw-r--r--binutils/dlltool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 066c99a..7a3d20f 100644
--- a/binutils/dlltool.c
+++ b/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;