mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-15 09:47:20 +00:00
* font.c (font_make_object): Avoid dangling pointer which may
crash GC (Bug#17771).
This commit is contained in:
parent
bc2fb4fdad
commit
52a6194ff6
@ -1,3 +1,8 @@
|
||||
2014-06-19 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* font.c (font_make_object): Avoid dangling pointer which may
|
||||
crash GC (Bug#17771).
|
||||
|
||||
2014-06-18 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* image.c [5 < GIFLIB_MAJOR + (1 <= GIFLIB_MINOR)]: Declare the
|
||||
|
@ -207,6 +207,9 @@ font_make_object (int size, Lisp_Object entity, int pixelsize)
|
||||
= (struct font *) allocate_pseudovector (size, FONT_OBJECT_MAX, PVEC_FONT);
|
||||
int i;
|
||||
|
||||
/* GC can happen before the driver is set up,
|
||||
so avoid dangling pointer here (Bug#17771). */
|
||||
font->driver = NULL;
|
||||
XSETFONT (font_object, font);
|
||||
|
||||
if (! NILP (entity))
|
||||
|
Loading…
Reference in New Issue
Block a user