diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-08 10:36:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-18 14:32:50 +0200 |
commit | 91c9026917ef930ab5f532ca62383a4dd6c0537c (patch) | |
tree | 8f91145ab5eb820523f439ca07457e83ca2d8306 /vcl | |
parent | 2b74f20c67bc23f3321d8d9425300d363646f594 (diff) |
add fodt fuzzer
Change-Id: I3e4de4b9dab96f0e4bc9ca90896c2c54ae66ca20
Reviewed-on: https://gerrit.libreoffice.org/42251
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/fftester.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 19e37ca0b0d6..aaf05df5311e 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -379,6 +379,20 @@ try_again: SvFileStream aFileStream(out, StreamMode::READ); ret = (int) (*pfnImport)(aFileStream); } + else if (strcmp(argv[2], "fodt") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libswlo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast<FFilterCall>( + aLibrary.getFunctionSymbol("TestImportFODT")); + aLibrary.release(); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = (int) (*pfnImport)(aFileStream); + } else if (strcmp(argv[2], "xls") == 0) { static WFilterCall pfnImport(nullptr); |