basegfx/source/tools/unotools.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 6b084f0001fc15112bf3c40d20a0c7096c83b7fe Author: Caolán McNamara <caol...@redhat.com> Date: Thu Jan 8 20:58:24 2015 +0000 asan: global-buffer-overflow on fdo55736-1.docx Change-Id: If69a57aa9ff011cc670f868cb87b3a1c4d904435 diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx index f5b1e273..2a923e1 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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits