summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-28 08:46:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-28 09:18:04 +0100
commitea3ca5e10aa3190e28fe37801727f8b5f8543e13 (patch)
tree917e723a6b4c49cde290f74dd20d944ec098c5ca /sc
parenta6698b9fd558ab48f2314b4ce3170175acade9b4 (diff)
add s[y]lk fuzzer
Change-Id: I46272f8a0b35776b9d14f72b1720e951458ab208
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 2bc164829ec7..40b24695eff4 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -3240,4 +3240,13 @@ void ScDocShell::SetIsInUcalc()
mbUcalcTest = true;
}
+extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportSLK(SvStream &rStream)
+{
+ ScDLL::Init();
+ ScDocument aDocument;
+ aDocument.MakeTable(0);
+ ScImportExport aImpEx(&aDocument);
+ return aImpEx.ImportStream(rStream, OUString(), SotClipboardFormatId::SYLK);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */