* [binutils-gdb] dlltool: replace unchecked malloc with xmalloc
@ 2024-04-04 8:16 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2024-04-04 8:16 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1bc2544b895f001cef00c9d71e70557dacb8ee55
commit 1bc2544b895f001cef00c9d71e70557dacb8ee55
Author: Nandakumar Edamana <nandakumar@nandakumar.co.in>
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 = malloc (strlen (tmp_prefix) + 64);
+ *buf = xmalloc (strlen (tmp_prefix) + 64);
sprintf (*buf, fmt, tmp_prefix);
}
return *buf;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-04 8:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 8:16 [binutils-gdb] dlltool: replace unchecked malloc with xmalloc Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).