summaryrefslogtreecommitdiff
path: root/basegfx/source/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-08 20:58:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-08 20:58:51 +0000
commit6b084f0001fc15112bf3c40d20a0c7096c83b7fe (patch)
tree68c910a467bc62eb06cd5a38cb6d8c4bc8c2a8d3 /basegfx/source/tools
parent869402a58720b45e7227438b2e56e5a9532c0000 (diff)
asan: global-buffer-overflow on fdo55736-1.docx
Change-Id: If69a57aa9ff011cc670f868cb87b3a1c4d904435
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r--basegfx/source/tools/unotools.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx
index f5b1e273b8f4..2a923e1bdb9a 100644
--- a/basegfx/source/tools/unotools.cxx
+++ b/basegfx/source/tools/unotools.cxx
@@ -52,7 +52,10 @@ namespace unotools
{
const sal_Int32 nInnerSequenceCount(pInnerSequence->getLength());
- if(pInnerSequenceFlags->getLength() != nInnerSequenceCount)
+ if (!nInnerSequenceCount)
+ throw lang::IllegalArgumentException();
+
+ if (pInnerSequenceFlags->getLength() != nInnerSequenceCount)
throw lang::IllegalArgumentException();
// prepare new polygon