summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-04-15 09:48:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-04-15 09:51:31 +0100
commit7ec9c4c703967ecc871b349b46bf56d759c80978 (patch)
treeaf506088adadf68284f82ad4ad2f38c5b864d941 /sc
parent766280b8ebbb61d4c06828322575911839adb7ce (diff)
add CVE-2016-0122 test
Change-Id: I065f6d7c62ffa604fc5cc3e522c991068652c8bb
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/xlsm/fail/.gitignore0
-rw-r--r--sc/qa/unit/data/xlsm/indeterminate/.gitignore0
-rw-r--r--sc/qa/unit/data/xlsm/pass/.gitignore0
-rw-r--r--sc/qa/unit/data/xlsm/pass/CVE-2016-0122-1.xlsmbin0 -> 1837365 bytes
-rw-r--r--sc/qa/unit/data/xlsx/fail/.gitignore0
-rw-r--r--sc/qa/unit/data/xlsx/indeterminate/.gitignore0
-rw-r--r--sc/qa/unit/data/xlsx/pass/.gitignore0
-rw-r--r--sc/qa/unit/filters-test.cxx6
8 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsm/fail/.gitignore b/sc/qa/unit/data/xlsm/fail/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsm/fail/.gitignore
diff --git a/sc/qa/unit/data/xlsm/indeterminate/.gitignore b/sc/qa/unit/data/xlsm/indeterminate/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsm/indeterminate/.gitignore
diff --git a/sc/qa/unit/data/xlsm/pass/.gitignore b/sc/qa/unit/data/xlsm/pass/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsm/pass/.gitignore
diff --git a/sc/qa/unit/data/xlsm/pass/CVE-2016-0122-1.xlsm b/sc/qa/unit/data/xlsm/pass/CVE-2016-0122-1.xlsm
new file mode 100644
index 000000000000..a86f92fc5ab9
--- /dev/null
+++ b/sc/qa/unit/data/xlsm/pass/CVE-2016-0122-1.xlsm
Binary files differ
diff --git a/sc/qa/unit/data/xlsx/fail/.gitignore b/sc/qa/unit/data/xlsx/fail/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/fail/.gitignore
diff --git a/sc/qa/unit/data/xlsx/indeterminate/.gitignore b/sc/qa/unit/data/xlsx/indeterminate/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/indeterminate/.gitignore
diff --git a/sc/qa/unit/data/xlsx/pass/.gitignore b/sc/qa/unit/data/xlsx/pass/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/pass/.gitignore
diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index 0a0eac8851ec..a8a6d7f47b7c 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -140,6 +140,12 @@ void ScFiltersTest::testCVEs()
testDir("MS Excel 97",
m_directories.getURLFromSrc("/sc/qa/unit/data/xls/"));
+ testDir("Calc Office Open XML",
+ m_directories.getURLFromSrc("/sc/qa/unit/data/xlsx/"), OUString(), XLSX_FORMAT_TYPE);
+
+ testDir("Calc Office Open XML",
+ m_directories.getURLFromSrc("/sc/qa/unit/data/xlsm/"), OUString(), XLSX_FORMAT_TYPE);
+
testDir("dBase",
m_directories.getURLFromSrc("/sc/qa/unit/data/dbf/"));