1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00

Fix bug #16819 with dereferencing invalid face pointer.

src/xdisp.c (init_iterator): Don't dereference a bogus face
 pointer.
This commit is contained in:
Eli Zaretskii 2014-02-20 19:13:55 +02:00
parent f5bee33b82
commit 44a2be2d66
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-02-20 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (init_iterator): Don't dereference a bogus face
pointer. (Bug#16819)
2014-02-20 Glenn Morris <rgm@gnu.org>
* data.c (Fdefalias): Doc fix.

View file

@ -2928,7 +2928,7 @@ init_iterator (struct it *it, struct window *w,
/* If we have a boxed mode line, make the first character appear
with a left box line. */
face = FACE_FROM_ID (it->f, remapped_base_face_id);
if (face->box != FACE_NO_BOX)
if (face && face->box != FACE_NO_BOX)
it->start_of_box_run_p = true;
}