From f1d4c4009644a37f6d7c1981bc79b3bfb47188ac Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 24 Feb 2017 14:50:36 +0000 Subject: add 602 fuzzer Change-Id: I91242d4647922be1c668c6a6518dedf7048801be --- filter/Library_t602filter.mk | 2 +- filter/source/t602/t602filter.cxx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'filter') diff --git a/filter/Library_t602filter.mk b/filter/Library_t602filter.mk index e744c153bf6f..8aa293ee1254 100644 --- a/filter/Library_t602filter.mk +++ b/filter/Library_t602filter.mk @@ -28,7 +28,7 @@ $(eval $(call gb_Library_use_sdk_api,t602filter)) $(eval $(call gb_Library_use_libraries,t602filter,\ xo \ tl \ - comphelper \ + utl \ cppuhelper \ cppu \ sal \ diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx index 712e27a918bb..03f8beddaf4f 100644 --- a/filter/source/t602/t602filter.cxx +++ b/filter/source/t602/t602filter.cxx @@ -36,9 +36,9 @@ #include #include #include -#include #include #include +#include using namespace ::cppu; using namespace ::osl; @@ -1176,11 +1176,9 @@ Reference< XInterface > SAL_CALL T602ImportFilterDialog_createInstance( const Re } -extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImport602(const OUString &rURL) +extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImport602(SvStream &rStream) { - osl::File aInputFile(rURL); - aInputFile.open(osl_File_OpenFlag_Read); - css::uno::Reference xStream(new comphelper::OSLInputStreamWrapper(aInputFile)); + css::uno::Reference xStream(new utl::OSeekableInputStreamWrapper(rStream)); rtl::Reference aImport( new T602ImportFilter::T602ImportFilter(xStream)); return aImport->test(); -- cgit