From: Nandakumar Edamana Date: Thu, 4 Apr 2024 05:26:14 +0000 (+0530) Subject: dlltool: replace unchecked malloc with xmalloc X-Git-Tag: gdb-15-branchpoint~493 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bc2544b895f001cef00c9d71e70557dacb8ee55;p=thirdparty%2Fbinutils-gdb.git dlltool: replace unchecked malloc with xmalloc --- diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 066c99a4d4f..7a3d20f0af9 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;