summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-27 20:28:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-27 22:22:02 +0200
commitbf565ecf45bcdd3e098576731a2f815d6de2792f (patch)
tree3fcc48ef0f5dd40d6ccda379667ccb46fb696359 /sw
parent5a0f4d00d2e74785f2bffafc5daf85a3839d3961 (diff)
ofz#3504 Null-dereference READ
Change-Id: I2e2ad8e9fbbcdb8bc3d60da8b5ddde71b935805e Reviewed-on: https://gerrit.libreoffice.org/42875 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 547a54504121..0e24c1b7fbd1 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -666,7 +666,7 @@ void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp,
}
else
{
- if (!m_aFieldStack.empty() && End_Field())
+ if (!m_aFieldStack.empty() && End_Field() && !aChunks.empty())
aChunks.back().SetEndPos(nStart+1);
}
}