[Libreoffice-commits] core.git: writerperfect/source

Caolán McNamara caolanm at redhat.com
Thu Oct 8 03:19:14 PDT 2015


 writerperfect/source/writer/WordPerfectImportFilter.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 64a252ffa9d0c30bec195a68c6837a0acdeca29a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 8 11:18:33 2015 +0100

    don't crash on loading abi13730-1.wpd
    
    Change-Id: I3796f16c4df8cc055fb1a75b1583c5b959f02799

diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx
index cc38317..7bbb36f 100644
--- a/writerperfect/source/writer/WordPerfectImportFilter.cxx
+++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx
@@ -84,6 +84,9 @@ static bool handleEmbeddedWPGImage(const librevenge::RVNGBinaryData &input, libr
     if (!libwpg::WPGraphics::parse(input.getDataStream(), &aSVGGenerator, fileFormat))
         return false;
 
+    if (svgOutput.empty())
+        return false;
+
     assert(1 == svgOutput.size());
 
     output.clear();


More information about the Libreoffice-commits mailing list