summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 14:53:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 14:53:36 +0000
commitab2c3ff76598d61bf52f82ff9f4337458a9b969f (patch)
tree9e45a7bde88422f39087cc0d2a209def0022fb77
parent97a4bb4a63acfa46f9e5b3991522ad7e127f331f (diff)
add regression test for CVE-2010-3453
-rw-r--r--sw/qa/core/CVE/CVE-2010-3453-1.docbin0 -> 126464 bytes
-rw-r--r--sw/qa/core/filters-test.cxx5
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/core/CVE/CVE-2010-3453-1.doc b/sw/qa/core/CVE/CVE-2010-3453-1.doc
new file mode 100644
index 0000000000..22cd8eebbe
--- /dev/null
+++ b/sw/qa/core/CVE/CVE-2010-3453-1.doc
Binary files differ
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 1e09a05479..98edaee18a 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -138,6 +138,11 @@ void FiltersTest::testCVEs()
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-2010-3453-1.doc")));
+ CPPUNIT_ASSERT_MESSAGE("CVE-2010-3453 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-2010-3454-1.doc")));
CPPUNIT_ASSERT_MESSAGE("CVE-2010-3454 regression", bResult == true);
#endif