summaryrefslogtreecommitdiff
path: root/vcl/workben/fftester.cxx
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 /vcl/workben/fftester.cxx
parenta6698b9fd558ab48f2314b4ce3170175acade9b4 (diff)
add s[y]lk fuzzer
Change-Id: I46272f8a0b35776b9d14f72b1720e951458ab208
Diffstat (limited to 'vcl/workben/fftester.cxx')
-rw-r--r--vcl/workben/fftester.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 2f0f8b0b4dc8..48e17858a231 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -490,6 +490,20 @@ try_again:
SvFileStream aFileStream(out, StreamMode::READ);
ret = (int) (*pfnImport)(aFileStream);
}
+ else if (strcmp(argv[2], "slk") == 0)
+ {
+ static FFilterCall pfnImport(nullptr);
+ if (!pfnImport)
+ {
+ osl::Module aLibrary;
+ aLibrary.loadRelative(&thisModule, "libsclo.so", SAL_LOADMODULE_LAZY);
+ pfnImport = reinterpret_cast<FFilterCall>(
+ aLibrary.getFunctionSymbol("TestImportSLK"));
+ aLibrary.release();
+ }
+ SvFileStream aFileStream(out, StreamMode::READ);
+ ret = (int) (*pfnImport)(aFileStream);
+ }
#endif
}