diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-07-20 15:53:18 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-07-20 17:19:08 +0100 |
commit | 48cbb0fe106cdee008b41883dff830c7530c663e (patch) | |
tree | 05d997eef545c344fc7d59cbb3da3566ffeb8a97 /source | |
parent | 47855bdda808c98f7be9ac9eb62ecd296e118116 (diff) | |
download | mupdf-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.
Diffstat (limited to 'source')
-rw-r--r-- | source/html/html-layout.c | 2 |
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; |