summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-10 13:11:35 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-10 13:11:35 +0100
commit1aad8cee6f7747bff58f8545fef3c4a8df5f7902 (patch)
tree5af4848cfdaa388454b64813ba0c42d5231d178f /source/html
parent9af771284d7e74d7e1685872f14dd970dc8b0aec (diff)
downloadmupdf-1aad8cee6f7747bff58f8545fef3c4a8df5f7902.tar.xz
Fix hang in bidi directinality detection code.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c4
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 */