bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#44850: 27.1; Emacs crash in font handling with font-backend ns
Date: Sun, 29 Nov 2020 10:45:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Mattias EngdegÄrd <mattiase@acm.org> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]