Re: [PATCH] Convert malloc() + sprintf() to safe_asprintf().
Rene Kita <[email protected]> Wed, 20 May 2026 08:20:59 +0200
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 19, 2026 at 01:11:24PM +0800, Kevin J. McCarthy wrote: > Thanks to Alejandro Colomar for pointing out that it would be better > to use a safer sprintf() alternative in the previous commit. > > This fixes the calls in mutt_idna.c, as well as the rest of the > codebase where I found a malloc() followed by a sprintf(). > --- > This is based on top of the previous patchset updating mutt_idna.c. > > I haven't pushed that patchset yet, to give more time for comments. > > curs_lib.c | 4 ++-- > init.c | 6 ++---- > mutt_idna.c | 9 +++------ > rfc822.c | 3 +-- > send.c | 6 ++---- > 5 files changed, 10 insertions(+), 18 deletions(-) LGTM