# HG changeset patch # User Richard M. Stallman # Date 760085358 0 # Node ID d3074ff907418f937d8d50915580b173017b5fff # Parent 3548110b4957dc6c8f64684ce691b7fed8ec203d (dumpglyphs): Don't crash for invalid face code. diff -r 3548110b4957 -r d3074ff90741 src/xterm.c --- a/src/xterm.c Tue Feb 01 03:46:09 1994 +0000 +++ b/src/xterm.c Tue Feb 01 06:49:18 1994 +0000 @@ -524,11 +524,11 @@ /* First look at the face of the text itself. */ if (cf != 0) { - /* The face codes on the glyphs must be valid indices into the - frame's face table. */ + /* It's possible for the display table to specify + a face code that is out of range. Use 0 in that case. */ if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) || FRAME_COMPUTED_FACES (f) [cf] == 0) - abort (); + cf = 0; if (cf == 1) face = FRAME_MODE_LINE_FACE (f);