summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-07-20 15:53:18 +0100
committerRobin Watts <robin.watts@artifex.com>2015-07-20 17:19:08 +0100
commit48cbb0fe106cdee008b41883dff830c7530c663e (patch)
tree05d997eef545c344fc7d59cbb3da3566ffeb8a97
parent47855bdda808c98f7be9ac9eb62ecd296e118116 (diff)
downloadmupdf-48cbb0fe106cdee008b41883dff830c7530c663e.tar.xz
Bug 696100: Fix NULL deref.
Check flow is not NULL before dereferencing it. Everything else in this area of the code copes with it being NULL.
-rw-r--r--source/html/html-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 3d34be59..bfb1b09e 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -922,7 +922,7 @@ static fz_html_flow *find_list_mark_anchor(fz_context *ctx, fz_html *box)
if (box->type == BOX_FLOW)
{
fz_html_flow *flow = box->flow_head;
- if (flow->type == FLOW_BREAK)
+ if (flow && flow->type == FLOW_BREAK)
flow = flow->next;
while (flow && flow->type == FLOW_GLUE)
flow = flow->next;