Fix rare aborts in bidi.c.
commit713bfeaab314f4ae943a19205d7db71cb3e70745
authorEli Zaretskii <eliz@gnu.org>
Mon, 11 Feb 2013 17:27:48 +0000 (11 19:27 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 11 Feb 2013 17:27:48 +0000 (11 19:27 +0200)
tree784f3f87cb99e9d023b328c7df7454cb2d692c84
parent93e0bed683b04006429c59564f276c2346e13b96
Fix rare aborts in bidi.c.

 src/bidi.c (bidi_resolve_neutral): After finding the next
 non-neutral character, accept NEUTRAL_ON type as well, because
 directional control characters, such as LRE and RLE, have their
 type converted to that by bidi_resolve_weak.  This avoids aborts
 when LRE/RLE follows a run of neutrals.
 (bidi_move_to_visually_next): Assert that return value of
 bidi_peek_at_next_level is non-negative.  Negative values will
 cause an infloop.
src/ChangeLog
src/bidi.c