[Libreoffice-commits] .: sw/qa

Caolán McNamara caolan at kemper.freedesktop.org
Fri Mar 4 13:03:17 PST 2011


 sw/qa/core/CVE/CVE-2009-3302-1.doc |binary
 sw/qa/core/CVE/CVE-2009-3302-2.doc |binary
 sw/qa/core/filters-test.cxx        |   10 ++++++++++
 3 files changed, 10 insertions(+)

New commits:
commit 37cbbb0d559a55bdc3842968e0b4d9e52b0c09e7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 4 20:57:59 2011 +0000

    regression test for CVE-2009-3302

diff --git a/sw/qa/core/CVE/CVE-2009-3302-1.doc b/sw/qa/core/CVE/CVE-2009-3302-1.doc
new file mode 100644
index 0000000..8f1c2de
Binary files /dev/null and b/sw/qa/core/CVE/CVE-2009-3302-1.doc differ
diff --git a/sw/qa/core/CVE/CVE-2009-3302-2.doc b/sw/qa/core/CVE/CVE-2009-3302-2.doc
new file mode 100644
index 0000000..0cd7a7d
Binary files /dev/null and b/sw/qa/core/CVE/CVE-2009-3302-2.doc differ
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index f690854..1b6877c 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -151,6 +151,16 @@ void FiltersTest::testCVEs()
         m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/CVE/CVE-2009-3301-1.doc")));
     CPPUNIT_ASSERT_MESSAGE("CVE-2009-3301 regression", bResult == true);
 
+    bResult = testLoad(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MS Word 97")),
+        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CWW8")),
+        m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/CVE/CVE-2009-3302-1.doc")));
+    CPPUNIT_ASSERT_MESSAGE("CVE-2009-3302 regression", bResult == true);
+
+    bResult = testLoad(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MS Word 97")),
+        rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CWW8")),
+        m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/CVE/CVE-2009-3302-2.doc")));
+    CPPUNIT_ASSERT_MESSAGE("CVE-2009-3302 regression", bResult == true);
+
     bResult = testLoad(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Rich Text Format")),
         rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RTF")),
         m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/CVE/CVE-2010-3451-1.rtf")));


More information about the Libreoffice-commits mailing list