Subject: bug#44850: 27.1; Emacs crash in font handling with font-backend ns

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 29 Nov 2020 10:45:24 +0100

Mattias Engdegård <[email-masked]> writes:

> Yes, the restriction is a bit odd but perhaps there was a good
> reason. For this application, however, we could just switch from
> esprintf to sprintf in nsterm.m. (The stated reason for using esprintf
> was in case the string is longer than 2 GiB but I think we would have
> bigger problems if a frame title ever becomes that long.)
>
> OK for master? (Also fixed the unsightly 'x' while at it)

Like Eli says, this really should be fixed in doprint.c.

However, since this is a crash that makes Emacs unusable, and since (as
you point out) sprintf is unproblematic here, I'm fine with applying the
patch.  Perhaps with a FIXME comment about how this should your esprintf
once doprintf has been fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no