]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violation in intervals.c
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Apr 2020 08:21:18 +0000 (11:21 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Apr 2020 08:21:18 +0000 (11:21 +0300)
commitd5750af151853f13bf3481876d487741eebe36b7
treef108736980edac8a3ec52d13309b804f60c6b137
parent18d1bc0a09db280cc1653706f7f8022786f77c94
Avoid assertion violation in intervals.c

* src/intervals.c (delete_interval): Allow negative values of
LENGTH (i).  This happens when delete_interval is called from
set_intervals_multibyte_1, because the caller zeroes out the
total_length field of the interval to be deleted.  See
https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00131.html
for more details.  See also a related old discussion at
https://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00399.html.
src/intervals.c