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

Caolán McNamara caolanm at redhat.com
Sat Dec 23 16:24:11 UTC 2017


 sw/source/filter/html/swhtml.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4b3648ffaffe5b341c29e4665ca99b4da5e37ce4
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 22 21:28:02 2017 +0000

    TestImportHTML: survive std::out_of_range
    
    Change-Id: I084fd72e472bd2e647da3a80c7573280cd22bd93
    Reviewed-on: https://gerrit.libreoffice.org/46998
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 2e22f5345037..d8b2398b7f20 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -5552,6 +5552,9 @@ bool TestImportHTML(SvStream &rStream)
     catch (const std::runtime_error&)
     {
     }
+    catch (const std::out_of_range&)
+    {
+    }
     pD->SetInReading(false);
 
     return bRet;


More information about the Libreoffice-commits mailing list