summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 20:57:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 20:57:59 +0000
commitc45feb7bec23c3f19bd3ca3f4305e6cd80c48d19 (patch)
treed762015babb614fd2dc24a481fecc5559d893c93 /sw
parentaf924d94038ea38d2d47af23f378ae4d45881333 (diff)
regression test for CVE-2009-3302
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/core/CVE/CVE-2009-3302-1.docbin0 -> 27648 bytes
-rw-r--r--sw/qa/core/CVE/CVE-2009-3302-2.docbin0 -> 27648 bytes
-rw-r--r--sw/qa/core/filters-test.cxx10
3 files changed, 10 insertions, 0 deletions
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 000000000000..8f1c2de02016
--- /dev/null
+++ b/sw/qa/core/CVE/CVE-2009-3302-1.doc
Binary files 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 000000000000..0cd7a7dcd1f7
--- /dev/null
+++ b/sw/qa/core/CVE/CVE-2009-3302-2.doc
Binary files differ
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index f69085415ac0..1b6877cac8ef 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")));