Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a07d4bc5
Commit
a07d4bc5
authored
Feb 01, 1994
by
Richard M. Stallman
Browse files
(dumpglyphs): Don't crash for invalid face code.
parent
fc51b251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/xterm.c
src/xterm.c
+3
-3
No files found.
src/xterm.c
View file @
a07d4bc5
...
...
@@ -524,11 +524,11 @@ dumpglyphs (f, left, top, gp, n, hl)
/* 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 tabl
e. */
/*
It's possible for the display table to specify
a face code that is out of range. Use 0 in that cas
e. */
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment