diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-10 13:11:35 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-10 13:11:35 +0100 |
commit | 1aad8cee6f7747bff58f8545fef3c4a8df5f7902 (patch) | |
tree | 5af4848cfdaa388454b64813ba0c42d5231d178f /source | |
parent | 9af771284d7e74d7e1685872f14dd970dc8b0aec (diff) | |
download | mupdf-1aad8cee6f7747bff58f8545fef3c4a8df5f7902.tar.xz |
Fix hang in bidi directinality detection code.
Diffstat (limited to 'source')
-rw-r--r-- | source/html/html-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c index 0a6e9970..fdabe93b 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -1831,6 +1831,8 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b break; } + end = end->next; + if (broken) break; @@ -1851,8 +1853,6 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b text += fz_chartorune(&rune, text); buffer->data[buffer->len++] = rune; } - - end = end->next; } /* Detect directionality for the buffer */ |