From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 043123858404; Thu, 4 Apr 2024 08:16:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 043123858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712218562; bh=qXXi59ttoOELTE5IMuYo745WFsUPFQT+jEGwi4fga54=; h=From:To:Subject:Date:From; b=RlVeyxYbtwWT/ewtlKjyU6AYkb2O4M468Eqd2ilECniI55KErh5oMp/V5iEKg0Bfz M7zZpeYH16kVedqAdddpgTK9+9vMjAU4mdyxgfx840LIXI/8dY1wzkBBZ8NwXVhaF6 O70HQ0K/gk0Ps0LvqxRZVgOkqxeyrBgaLfKofkcY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: binutils-cvs@sourceware.org Subject: [binutils-gdb] dlltool: replace unchecked malloc with xmalloc X-Act-Checkin: binutils-gdb X-Git-Author: Nandakumar Edamana X-Git-Refname: refs/heads/master X-Git-Oldrev: b43b352837ea11af64ea83754b06f0e8d335706e X-Git-Newrev: 1bc2544b895f001cef00c9d71e70557dacb8ee55 Message-Id: <20240404081602.043123858404@sourceware.org> Date: Thu, 4 Apr 2024 08:16:01 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1bc2544b895f= 001cef00c9d71e70557dacb8ee55 commit 1bc2544b895f001cef00c9d71e70557dacb8ee55 Author: Nandakumar Edamana Date: Thu Apr 4 10:56:14 2024 +0530 dlltool: replace unchecked malloc with xmalloc Diff: --- binutils/dlltool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =3D malloc (strlen (tmp_prefix) + 64); + *buf =3D xmalloc (strlen (tmp_prefix) + 64); sprintf (*buf, fmt, tmp_prefix); } return *buf;