summaryrefslogtreecommitdiff
path: root/src/bidi.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-10-14 12:16:02 +0300
committerEli Zaretskii <eliz@gnu.org>2014-10-14 12:16:02 +0300
commitc1621a49bdadc92c6c60965078dc9d83b2154770 (patch)
tree6aa31c23054e59cd54a97b9d9c1fc351edebde2d /src/bidi.c
parenta3c88bc624a5c04362e75aea22de48aa86a9b10a (diff)
downloademacs-c1621a49bdadc92c6c60965078dc9d83b2154770.tar.gz
Increase 'level' in glyph struct; convert bad type aborts into assertions.
Diffstat (limited to 'src/bidi.c')
-rw-r--r--src/bidi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bidi.c b/src/bidi.c
index d03aa4e3e10..fc47a583cfe 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -3161,6 +3161,9 @@ bidi_move_to_visually_next (struct bidi_it *bidi_it)
bidi_cache_iterator_state (bidi_it, 1, 0);
}
+ eassert (bidi_it->resolved_level >= 0
+ && bidi_it->resolved_level <= BIDI_MAXDEPTH + 2);
+
if (STRINGP (bidi_it->string.lstring))
UNGCPRO;
}