]> git.eshelyaron.com Git - emacs.git/commit
Fix a rare segfault in syntax.c
authorEli Zaretskii <eliz@gnu.org>
Sat, 19 Sep 2020 16:54:01 +0000 (19:54 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 19 Sep 2020 16:54:01 +0000 (19:54 +0300)
commitdf04f3e755f3001ebb9cc428faa7fa46059e636b
treeacf478dc8aca3749f10ad6f9d5527cc29b05ed4c
parentfd1fe1e1ecb6c68bbdea4bf071166779388174d0
Fix a rare segfault in syntax.c

* src/syntax.c (Fforward_comment): Prevent the loop for COUNT < 0
from going outside the valid range of character/byte positions.
(Bug#43499)

* doc/lispref/syntax.texi (Syntax Class Table): Mention the
"comment-fence" and "string-fence" as alternative names of 2
syntax classes.
doc/lispref/syntax.texi
src/syntax.c