From: "Jan D." <jan.h.d@swipnet.se>
To: John F Carr <jfc@mit.edu>
Cc: 20156-done@debbugs.gnu.org
Subject: bug#20156: Emacs 24 stack corruption in fontset.c:fontset_pattern_regexp
Date: Sun, 22 Mar 2015 10:23:27 +0100 [thread overview]
Message-ID: <A353AAE9-AF49-4146-B2FE-789C25B7E575@swipnet.se> (raw)
In-Reply-To: <F8A72762-CE59-4EEA-B06B-5E71E5FE1A04@exchange.mit.edu>
Good call. Fixed in trunk and emacs-24 branch.
Jan D.
> 21 mar 2015 kl. 13:06 skrev John F Carr <jfc@mit.edu>:
>
> Emacs crashes on Mac Yosemite (native window system) when I use set-frame-font with certain font patterns. The cause is writing past the end of an alloca buffer in fontset.c:fontset_pattern_regexp. This triggers a stack check assertion. Alloca is used to allocate space for a regexp, but the size neglects to consider the ^$ around the regexp. “+1” should be “+3”.
>
> To reproduce:
>
> (set-frame-font "-adobe-courier-medium-r-normal--24-*-75-75-m-150-iso8859-1”)
>
> without X installed.
>
> Bug in 24.3 and "GNU Emacs 24.4.2 (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72)”.
>
>
>
> <fontset.diff>
prev parent reply other threads:[~2015-03-22 9:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-21 12:06 bug#20156: Emacs 24 stack corruption in fontset.c:fontset_pattern_regexp John F Carr
2015-03-22 9:23 ` Jan D. [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A353AAE9-AF49-4146-B2FE-789C25B7E575@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=20156-done@debbugs.gnu.org \
--cc=jfc@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).