summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-04 15:03:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-03-04 15:03:04 +0000
commitb29c81017f9efbdf1c8a16fa9674b03900ae05d1 (patch)
tree0e45bff9dc2850a65b66990966eaa701680c49ac
parent17be67e282fe94ab856d00f857a6586b4811552c (diff)
regression test for CVE-2010-3452
-rw-r--r--sw/qa/core/CVE/CVE-2010-3452-1.rtf1
-rw-r--r--sw/qa/core/filters-test.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/core/CVE/CVE-2010-3452-1.rtf b/sw/qa/core/CVE/CVE-2010-3452-1.rtf
new file mode 100644
index 000000000000..b2800b5edbb0
--- /dev/null
+++ b/sw/qa/core/CVE/CVE-2010-3452-1.rtf
@@ -0,0 +1 @@
+{\rtf1\ansi{\*\pnseclvlÿ}}
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index 98edaee18a1f..85cfb3e952c6 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -136,6 +136,11 @@ void FiltersTest::testCVEs()
m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/CVE/CVE-2010-3451-1.rtf")));
CPPUNIT_ASSERT_MESSAGE("CVE-2010-3451 regression", bResult == false);
+ 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-3452-1.rtf")));
+ CPPUNIT_ASSERT_MESSAGE("CVE-2010-3452 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-3453-1.doc")));