diff options
| author | Richard M. Stallman | 1994-02-01 06:49:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-01 06:49:18 +0000 |
| commit | a07d4bc5245f6995e8723c48be12c8034501b7a2 (patch) | |
| tree | 5bf926916729345158e703b49745217b25a9cb35 /src | |
| parent | fc51b251906d796c0f812156b775eac5a20b48a6 (diff) | |
| download | emacs-a07d4bc5245f6995e8723c48be12c8034501b7a2.tar.gz emacs-a07d4bc5245f6995e8723c48be12c8034501b7a2.zip | |
(dumpglyphs): Don't crash for invalid face code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index e471311da5a..cc7f9aa7089 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -524,11 +524,11 @@ dumpglyphs (f, left, top, gp, n, hl) | |||
| 524 | /* First look at the face of the text itself. */ | 524 | /* First look at the face of the text itself. */ |
| 525 | if (cf != 0) | 525 | if (cf != 0) |
| 526 | { | 526 | { |
| 527 | /* The face codes on the glyphs must be valid indices into the | 527 | /* It's possible for the display table to specify |
| 528 | frame's face table. */ | 528 | a face code that is out of range. Use 0 in that case. */ |
| 529 | if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) | 529 | if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) |
| 530 | || FRAME_COMPUTED_FACES (f) [cf] == 0) | 530 | || FRAME_COMPUTED_FACES (f) [cf] == 0) |
| 531 | abort (); | 531 | cf = 0; |
| 532 | 532 | ||
| 533 | if (cf == 1) | 533 | if (cf == 1) |
| 534 | face = FRAME_MODE_LINE_FACE (f); | 534 | face = FRAME_MODE_LINE_FACE (f); |