[Libreoffice-commits] core.git: vcl/workben

2023-10-09 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ba4e3aa94eb7425729a3ec1647a4c7cbe6b64cf8
Author: Caolán McNamara 
AuthorDate: Mon Oct 9 21:30:23 2023 +0100
Commit: Caolán McNamara 
CommitDate: Mon Oct 9 22:31:05 2023 +0200

bump odt2pdffuzzer max_len again

Change-Id: I2fcd448d4efef924d088bfc9470ae800dbd78504
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157737
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index 02cefef5c1e5..b75fa1aff355 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 24576
+max_len = 32768
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-09-07 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ff155649c40d4114c4f253e371ef5dd75a3133ee
Author: Caolán McNamara 
AuthorDate: Thu Sep 7 12:57:16 2023 +0100
Commit: Caolán McNamara 
CommitDate: Thu Sep 7 15:16:53 2023 +0200

increase max_len for fodt2pdffuzzer further

Change-Id: I517fe5c9a3168cbaea670e0ead6d1f9588f588a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156664
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index 34d772abe884..02cefef5c1e5 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 16384
+max_len = 24576
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-08-30 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4ffea8f932cbad912863f7df668ed7090e6f1821
Author: Caolán McNamara 
AuthorDate: Wed Aug 30 21:15:58 2023 +0100
Commit: Caolán McNamara 
CommitDate: Wed Aug 30 22:17:23 2023 +0200

increase max_len for fodt2pdffuzzer

it's all gone very quiet since ofz#61511 Direct-leak

Change-Id: Ia78de8b10e89905a29c0150f9582ad769e6984a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156311
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index f52b0a7ed421..34d772abe884 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 12288
+max_len = 16384
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-08-06 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c2b8e86b96d8abfbf1758a2b4161fe29735d38de
Author: Caolán McNamara 
AuthorDate: Sat Aug 5 16:58:49 2023 +0100
Commit: Caolán McNamara 
CommitDate: Sun Aug 6 17:07:03 2023 +0200

increase max_len for fodt2pdffuzzer

very little output from this fuzzer to date

Change-Id: I1bd0eaf983c3c88f620803bbd85f464923d6484d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155374
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index 1248b2fc615b..f52b0a7ed421 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 8192
+max_len = 12288
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-07-07 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 243e54564050f87535a5e7b96cd5bc143dffae0c
Author: Caolán McNamara 
AuthorDate: Fri Jul 7 21:50:01 2023 +0100
Commit: Caolán McNamara 
CommitDate: Fri Jul 7 22:52:13 2023 +0200

give fodt2pdffuzzer more rope to play with

Change-Id: I30ee4e76e1ffb8cdec989f81d5bb43ed7bf7529e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154204
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index caa2af4fbf45..1248b2fc615b 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 4096
+max_len = 8192
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-05-11 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.cxx |8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 12b9c296d9a233b1c02a356225354c056ff78b54
Author: Caolán McNamara 
AuthorDate: Thu May 11 21:11:21 2023 +0100
Commit: Caolán McNamara 
CommitDate: Thu May 11 22:16:37 2023 +0200

move xmlSetGenericErrorFunc into LLVMFuzzerInitialize

and add xmlInitParser there

Change-Id: Ifde0f8d9e8be413fd3dcf216ad33effa731fa549
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151684
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.cxx b/vcl/workben/fodt2pdffuzzer.cxx
index 6d255cd2564a..0b6323a61ad8 100644
--- a/vcl/workben/fodt2pdffuzzer.cxx
+++ b/vcl/workben/fodt2pdffuzzer.cxx
@@ -19,6 +19,8 @@ extern "C" void* SwCreateDialogFactory() { return nullptr; }
 
 extern "C" bool TestPDFExportFODT(SvStream& rStream);
 
+static void silent_error_func(void*, const char* /*format*/, ...) {}
+
 extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 {
 if (__lsan_disable)
@@ -47,13 +49,14 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 if (__lsan_enable)
 __lsan_enable();
 
+xmlInitParser();
+xmlSetGenericErrorFunc(nullptr, silent_error_func);
+
 return 0;
 }
 
 extern "C" size_t LLVMFuzzerMutate(uint8_t* Data, size_t Size, size_t MaxSize);
 
-static void silent_error_func(void*, const char* /*format*/, ...) {}
-
 extern "C" size_t LLVMFuzzerCustomMutator(uint8_t* Data, size_t Size, size_t 
MaxSize,
   unsigned int /*Seed*/)
 {
@@ -64,7 +67,6 @@ extern "C" size_t LLVMFuzzerCustomMutator(uint8_t* Data, 
size_t Size, size_t Max
 // pdf export
 
 xmlParserCtxtPtr ctxt = xmlNewParserCtxt();
-xmlSetGenericErrorFunc(nullptr, silent_error_func);
 xmlDocPtr Doc = xmlCtxtReadMemory(ctxt, reinterpret_cast(Data), Ret, nullptr,
   nullptr, XML_PARSE_NONET);
 if (Doc == nullptr)


[Libreoffice-commits] core.git: vcl/workben

2023-05-09 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4232b46b4a0f7b4ae0c6967778af437f59b90e14
Author: Caolán McNamara 
AuthorDate: Tue May 9 15:19:50 2023 +0100
Commit: Caolán McNamara 
CommitDate: Tue May 9 16:20:53 2023 +0200

increase max_len for fodt2pdffuzzer

Change-Id: Ib8c3c0e35c6a7cc8b3b40fce4f89c038e819f088
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151587
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index 01b2eedfcd5e..caa2af4fbf45 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 3072
+max_len = 4096
 dict = odf.dict


[Libreoffice-commits] core.git: vcl/workben

2023-05-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.options |2 +-
 vcl/workben/htmlfuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7e68e49667f58e741abeaa88bb934faaa2d46244
Author: Caolán McNamara 
AuthorDate: Fri May 5 15:53:56 2023 +0100
Commit: Caolán McNamara 
CommitDate: Fri May 5 16:54:30 2023 +0200

adjust some fuzzer max-lens

Change-Id: Idf893faafac27d8a395bd39ca8297121e8ceffa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151435
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.options 
b/vcl/workben/fodt2pdffuzzer.options
index 5419e88c7780..01b2eedfcd5e 100644
--- a/vcl/workben/fodt2pdffuzzer.options
+++ b/vcl/workben/fodt2pdffuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 2048
+max_len = 3072
 dict = odf.dict
diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index de8893111aca..32f759a0969a 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 24576
+max_len = 20480
 dict = html.dict


[Libreoffice-commits] core.git: vcl/workben

2023-05-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.cxx |   26 ++
 1 file changed, 26 insertions(+)

New commits:
commit 2d428c1b7d6221eb634cecb2ca7719bf4997ead4
Author: Caolán McNamara 
AuthorDate: Thu May 4 21:31:12 2023 +0100
Commit: Caolán McNamara 
CommitDate: Fri May 5 16:50:51 2023 +0200

experiment with LLVMFuzzerCustomMutator

Change-Id: I3294c4e6cc5671927824cffaf03fd536a0a7dba6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151403
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.cxx b/vcl/workben/fodt2pdffuzzer.cxx
index 6c9b273a88ba..e4bb1ac3c0da 100644
--- a/vcl/workben/fodt2pdffuzzer.cxx
+++ b/vcl/workben/fodt2pdffuzzer.cxx
@@ -12,6 +12,7 @@
 #include 
 #include 
 #include 
+#include 
 #include "commonfuzzer.hxx"
 
 extern "C" void* SwCreateDialogFactory() { return nullptr; }
@@ -49,6 +50,31 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 return 0;
 }
 
+extern "C" size_t LLVMFuzzerMutate(uint8_t* Data, size_t Size, size_t MaxSize);
+
+static void silent_error_func(void*, const char* /*format*/, ...) {}
+
+extern "C" size_t LLVMFuzzerCustomMutator(uint8_t* Data, size_t Size, size_t 
MaxSize,
+  unsigned int /*Seed*/)
+{
+size_t Ret = LLVMFuzzerMutate(Data, Size, MaxSize);
+
+// an effort to only generate valid xml, in this fuzzer we only really care
+// about the deeper levels of turning valid input into writer layout and
+// pdf export
+
+xmlParserCtxtPtr ctxt = xmlNewParserCtxt();
+xmlSetGenericErrorFunc(nullptr, silent_error_func);
+xmlDocPtr Doc = xmlCtxtReadMemory(ctxt, reinterpret_cast(Data), Ret, nullptr,
+  nullptr, XML_PARSE_NONET);
+if (Doc == nullptr)
+Ret = 0;
+else
+xmlFreeDoc(Doc);
+xmlFreeParserCtxt(ctxt);
+return Ret;
+}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);


[Libreoffice-commits] core.git: vcl/workben

2023-04-30 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodt2pdffuzzer.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6377fe10964ebf1936e4a55f845e3f1eda5501ac
Author: Caolán McNamara 
AuthorDate: Sun Apr 30 09:58:19 2023 +0100
Commit: Caolán McNamara 
CommitDate: Sun Apr 30 11:03:51 2023 +0200

fix fuzzer build

Change-Id: I9b980f3c81d468da4bcc33b6d27df9233f78c365
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151219
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodt2pdffuzzer.cxx b/vcl/workben/fodt2pdffuzzer.cxx
index cc73b895d640..6c9b273a88ba 100644
--- a/vcl/workben/fodt2pdffuzzer.cxx
+++ b/vcl/workben/fodt2pdffuzzer.cxx
@@ -39,7 +39,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 
 // create and hold a reference to XToolkit here to avoid the lsan warning 
about its leak
 // due to getting created in the unusual case of no vcl main loop
-static css::uno::Reference xTk(
+static css::uno::Reference xTk(
 
comphelper::getProcessServiceFactory()->createInstance("com.sun.star.awt.Toolkit"),
 css::uno::UNO_QUERY_THROW);
 


[Libreoffice-commits] core.git: vcl/workben

2023-02-06 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 36aa8b43daccff63ab9b2f2c3df064abd2517a28
Author: Caolán McNamara 
AuthorDate: Sun Feb 5 20:38:17 2023 +
Commit: Caolán McNamara 
CommitDate: Mon Feb 6 19:46:33 2023 +

ofz: bump sc-rtf and html max lengths

Change-Id: Id2b97538dcc2919b2fb993e8494478a7a444a9a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146568
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index 67cf11a33a52..cb08f2c88c5e 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 20480
+max_len = 24576
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 748ec4b161c0..f41b545a43a4 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 24576
+max_len = 32768


[Libreoffice-commits] core.git: vcl/workben

2023-01-28 Thread Andrea Gelmini (via logerrit)
 vcl/workben/minvcl.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 713faaa6519b7f6099eb97cfa458215c379192e7
Author: Andrea Gelmini 
AuthorDate: Sat Jan 28 13:20:49 2023 +0100
Commit: Julien Nabet 
CommitDate: Sat Jan 28 14:54:31 2023 +

Fix typo

Change-Id: I45f5252291875b8e3dbf8f39f304e3a3f77a9f56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146289
Tested-by: Jenkins
Reviewed-by: Julien Nabet 

diff --git a/vcl/workben/minvcl.cxx b/vcl/workben/minvcl.cxx
index 465573918cfd..aafef4a9864e 100644
--- a/vcl/workben/minvcl.cxx
+++ b/vcl/workben/minvcl.cxx
@@ -66,7 +66,7 @@ SAL_IMPLEMENT_MAIN()
 }
 catch (...)
 {
-std::cout << "Exception has occured\n";
+std::cout << "Exception has occurred\n";
 return 1;
 }
 


[Libreoffice-commits] core.git: vcl/workben

2023-01-28 Thread Hossein (via logerrit)
 vcl/workben/minvcl.cxx |   68 -
 1 file changed, 29 insertions(+), 39 deletions(-)

New commits:
commit 10c340c2b59dd677d6f598901506b08ff2cbd49c
Author: Hossein 
AuthorDate: Mon Dec 5 03:15:36 2022 +0100
Commit: Hossein 
CommitDate: Sat Jan 28 09:00:04 2023 +

Add exception handling to minvcl, minify code

Improve minvcl example:

* Add exception handling
* Minify code by removing custom Window

Change-Id: I1f1dc10c05812b4cfad7d38e09d7ecd26bec35b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143650
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/vcl/workben/minvcl.cxx b/vcl/workben/minvcl.cxx
index 2e5aa3c061bb..465573918cfd 100644
--- a/vcl/workben/minvcl.cxx
+++ b/vcl/workben/minvcl.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include 
+
 #include 
 #include 
 #include 
@@ -14,73 +16,61 @@
 #include 
 #include 
 #include 
-#include 
 
 #include 
 #include 
+#include 
+
+#include 
 
 namespace
 {
-class TheWindow : public WorkWindow
-{
-public:
-TheWindow()
-: WorkWindow(nullptr, WB_APP | WB_STDWORK)
-{
-}
-virtual void Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& rRect);
-};
-
 class TheApplication : public Application
 {
 public:
 virtual int Main();
 
 private:
-VclPtr mpWin;
+VclPtr mpWin;
 };
 }
 
-void TheWindow::Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& rRect)
-{
-rRenderContext.DrawText(Point(rRect.GetWidth() / 2, rRect.getOpenHeight() 
/ 2),
-OUString(u"VCL module in LibreOffice"));
-}
-
 int TheApplication::Main()
 {
-mpWin = VclPtr::Create();
-mpWin->SetText(u"VCL");
+mpWin = VclPtr::Create(nullptr, WB_APP | WB_STDWORK);
+mpWin->SetText(u"Minimum VCL application with a window");
 mpWin->Show();
 Execute();
 mpWin.disposeAndClear();
 return 0;
 }
 
-static int main_impl()
+SAL_IMPLEMENT_MAIN()
 {
-auto xContext = cppu::defaultBootstrap_InitialComponentContext();
-css::uno::Reference xServiceManager(
-xContext->getServiceManager(), css::uno::UNO_QUERY);
-comphelper::setProcessServiceFactory(xServiceManager);
-LanguageTag::setConfiguredSystemLanguage(MsLangId::getSystemLanguage());
+try
+{
+TheApplication aApp;
 
-TheApplication aApp;
-InitVCL();
-int ret = aApp.Main();
-
framework::getDesktop(::comphelper::getProcessComponentContext())->terminate();
-DeInitVCL();
+auto xContext = cppu::defaultBootstrap_InitialComponentContext();
+css::uno::Reference xServiceManager(
+xContext->getServiceManager(), css::uno::UNO_QUERY);
+comphelper::setProcessServiceFactory(xServiceManager);
+
LanguageTag::setConfiguredSystemLanguage(MsLangId::getSystemLanguage());
+InitVCL();
 
-comphelper::setProcessServiceFactory(nullptr);
+aApp.Main();
 
-return ret;
-}
+
framework::getDesktop(::comphelper::getProcessComponentContext())->terminate();
+DeInitVCL();
+comphelper::setProcessServiceFactory(nullptr);
+}
+catch (...)
+{
+std::cout << "Exception has occured\n";
+return 1;
+}
 
-int main()
-{
-int ret;
-suppress_fun_call_w_exception(ret = main_impl());
-return ret;
+return 0;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */


[Libreoffice-commits] core.git: vcl/workben

2022-11-22 Thread Leonid Ryzhov (via logerrit)
 vcl/workben/vcldemo.cxx |   20 ++--
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 49737dff4b7b46c44f8c8e1c4de0291309eef78e
Author: Leonid Ryzhov 
AuthorDate: Thu Nov 17 22:34:51 2022 +0300
Commit: Hossein 
CommitDate: Tue Nov 22 15:28:59 2022 +0100

tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro

Change-Id: Iec561daa71b17cedf0ea4cd2b473df9591a7bf3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142900
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index e6ef740dd6aa..4588b4e73a8e 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -300,10 +300,10 @@ public:
 rDev.SetLineColor(COL_BLACK);
 basegfx::B2DPolygon aPoly;
 tools::Rectangle aSub(aRegions[i]);
-for (size_t j = 0; j < SAL_N_ELEMENTS(aPoints); j++)
+for (const auto& rPoint : aPoints)
 {
-aPoly.append(basegfx::B2DPoint(aSub.Left() + 
aSub.GetWidth() * aPoints[j].nX,
-   aSub.Top()  + 
aSub.GetHeight() * aPoints[j].nY));
+aPoly.append(basegfx::B2DPoint(aSub.Left() + 
aSub.GetWidth() * rPoint.nX,
+   aSub.Top()  + 
aSub.GetHeight() * rPoint.nY));
 }
 rDev.DrawPolyLine(aPoly, aLineWidths[i], eJoins[i], 
eLineCaps[i]);
 }
@@ -369,7 +369,7 @@ public:
 {
 for (int x = 0; x < 4; x++)
 {
-assert(i < SAL_N_ELEMENTS(aRenderData));
+assert(i < std::size(aRenderData));
 drawText(rDev, aSubRegions[i], aRenderData[i].mbClip,
  aRenderData[i].mbArabicText, 
aRenderData[i].mbRotate);
 i++;
@@ -550,7 +550,7 @@ public:
 Point aPos(r.Left(), r.Top()+20);
 
 tools::Long nMaxTextHeight = 0;
-for (size_t i = 0; i < SAL_N_ELEMENTS(aRuns); ++i)
+for (size_t i = 0; i < std::size(aRuns); ++i)
 {
 // Legend
 vcl::Font aIndexFont("sans", Size(0,20));
@@ -573,7 +573,7 @@ public:
 aRuns[i].mpFont),
 Size(0,42));
 aFont.SetColor(COL_BLACK);
-for (size_t j = 0; j < SAL_N_ELEMENTS(aWeights); ++j)
+for (size_t j = 0; j < std::size(aWeights); ++j)
 {
 aFont.SetItalic(aItalics[j]);
 aFont.SetWeight(aWeights[j]);
@@ -867,9 +867,9 @@ public:
 tools::Long aSizes[] = { 200, 100, 200, 100, 50, 5, 2 };
 
 // and yes - we really do this in the page border rendering code 
...
-for (size_t i = 0; i < SAL_N_ELEMENTS(aSizes); i++)
+for (const auto& rSize : aSizes)
 {
-
aShadowStretch.Scale(Size(aShadowStretch.GetSizePixel().Width(), aSizes[i]),
+
aShadowStretch.Scale(Size(aShadowStretch.GetSizePixel().Width(), rSize),
  BmpScaleFlag::Fast);
 
 rDev.DrawBitmapEx(aRenderPt, aShadowStretch);
@@ -947,8 +947,8 @@ public:
 tools::Rectangle aSubRect(r);
 aSubRect.Move(x * r.GetWidth()/3, y * r.GetHeight()/3);
 aSubRect.SetSize(Size(r.GetWidth()/2, r.GetHeight()/4));
-tools::Polygon aPoly(SAL_N_ELEMENTS(aPoints));
-for (size_t v = 0; v < SAL_N_ELEMENTS(aPoints); v++)
+tools::Polygon aPoly(std::size(aPoints));
+for (size_t v = 0; v < std::size(aPoints); v++)
 {
 aPoly.SetPoint(Point(aSubRect.Left() +
  aSubRect.GetWidth() * 
aPoints[v].nX,


[Libreoffice-commits] core.git: vcl/workben

2022-11-06 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b53a0e3dc206b4cec57f142080573d8d165c4035
Author: Caolán McNamara 
AuthorDate: Sun Nov 6 12:22:55 2022 +
Commit: Caolán McNamara 
CommitDate: Sun Nov 6 14:15:08 2022 +0100

ofz: bump sc-rtf and html max lengths

Change-Id: I5a9f8ec669a211898989e5f4f7a11c4c33a8a665
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142351
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index d57cbc0ed9e4..67cf11a33a52 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 16384
+max_len = 20480
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 58889a21064b..748ec4b161c0 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 20480
+max_len = 24576


[Libreoffice-commits] core.git: vcl/workben

2022-10-15 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 94e3cce5a9d8136d7c36d1ed596b995aaf47c297
Author: Caolán McNamara 
AuthorDate: Sat Oct 15 16:56:44 2022 +0100
Commit: Caolán McNamara 
CommitDate: Sat Oct 15 20:28:13 2022 +0200

ofz: bump sc-rtf and html max lengths

Change-Id: Idd605931d7637d2fc4d1ca878c4ddc6eca9af87b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141419
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index 9ab77d3b579f..d57cbc0ed9e4 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 12288
+max_len = 16384
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 9e9bf3455ee5..58889a21064b 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 16384
+max_len = 20480


[Libreoffice-commits] core.git: vcl/workben

2022-09-23 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e5793c64063e83cc6682e3a8691308f740fbc268
Author: Caolán McNamara 
AuthorDate: Fri Sep 23 20:52:55 2022 +0100
Commit: Caolán McNamara 
CommitDate: Fri Sep 23 21:56:16 2022 +0200

ofz: bump sc-rtf and html max lengths

Change-Id: Ic7c596b59a420dc098ae61298d9fa048f826662c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140528
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index 1173eaee3f05..9ab77d3b579f 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 8192
+max_len = 12288
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 68fa4817300a..9e9bf3455ee5 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 12288
+max_len = 16384


[Libreoffice-commits] core.git: vcl/workben

2022-09-17 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9788961cc30e151adcc32044d16899a5406d2c51
Author: Caolán McNamara 
AuthorDate: Sat Sep 17 12:11:22 2022 +0100
Commit: Caolán McNamara 
CommitDate: Sat Sep 17 16:53:46 2022 +0200

ofz: bump sc-rtf and html max lengths

Change-Id: Id3400c686fefbf395e459ee9a654382bac87f141
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140102
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index 82c2654a4936..1173eaee3f05 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 4096
+max_len = 8192
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 8ea8588375d7..68fa4817300a 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 8192
+max_len = 12288


[Libreoffice-commits] core.git: vcl/workben

2022-09-08 Thread Khaled Hosny (via logerrit)
 vcl/workben/listfonts.cxx |9 +
 1 file changed, 9 insertions(+)

New commits:
commit f82e1596f5d886c60cbf41e9912de77be42eff9f
Author: Khaled Hosny 
AuthorDate: Thu Sep 8 01:25:29 2022 +0200
Commit: خالد حسني 
CommitDate: Thu Sep 8 16:31:25 2022 +0200

vcl: Sort fonts in workben/listfonts

I only need a stable font order, so I can compare the output across
invocations.

Change-Id: I8141fd0425cdb638b0bf4bb4faa1889200bf8578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139621
Tested-by: Jenkins
Reviewed-by: خالد حسني 

diff --git a/vcl/workben/listfonts.cxx b/vcl/workben/listfonts.cxx
index 00ab5a39120d..c66f964a895d 100644
--- a/vcl/workben/listfonts.cxx
+++ b/vcl/workben/listfonts.cxx
@@ -353,7 +353,16 @@ int ListFonts::Main()
 std::cout.rdbuf(out.rdbuf());
 }
 
+std::vector aIndices;
 for (int i = 0; i < pOutDev->GetFontFaceCollectionCount(); i++)
+aIndices.push_back(i);
+
+std::sort(aIndices.begin(), aIndices.end(), [&](int a, int b) {
+return 
pOutDev->GetFontMetricFromCollection(a).GetHashValueIgnoreColor()
+   > 
pOutDev->GetFontMetricFromCollection(b).GetHashValueIgnoreColor();
+});
+
+for (const auto& i : aIndices)
 {
 // note: to get the correct font metrics, you actually have to get 
the font metric from the
 // system, and *then* you must set it as the current font of 
OutputDevice... then you need


[Libreoffice-commits] core.git: vcl/workben

2022-09-02 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options  |2 +-
 vcl/workben/scrtffuzzer.options |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a3b1c886227af1b117783bc569d32675441cd3fd
Author: Caolán McNamara 
AuthorDate: Fri Sep 2 15:39:16 2022 +0100
Commit: Caolán McNamara 
CommitDate: Fri Sep 2 18:10:56 2022 +0200

ofz#39186 reduce htmlfuzzer len to hasten closure of Timeout state

restrict this to a very short length to reset ofz Timeout to force
ofz to report a new issue when restored later. Bump up the sc-rtf
one.

Change-Id: Ida1a12f4833cef50a1fb8b7bb4c47f85f3fc155e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139268
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index 94364a60bb93..82c2654a4936 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 49152
+max_len = 4096
 dict = html_tags.dict
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 9fda93fcb340..8ea8588375d7 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 4096
+max_len = 8192


[Libreoffice-commits] core.git: vcl/workben

2022-08-30 Thread Caolán McNamara (via logerrit)
 vcl/workben/scrtffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3978a2d53ec4e8a69ebae1d904e05211d202a0ff
Author: Caolán McNamara 
AuthorDate: Tue Aug 30 17:33:51 2022 +0100
Commit: Caolán McNamara 
CommitDate: Tue Aug 30 18:34:29 2022 +0200

bump scrtf input len some more

Change-Id: I02a8250f85ee13e5eb8596f2ebf609b743a6cc38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139060
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 60bd9b0b2fa5..9fda93fcb340 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 2048
+max_len = 4096


[Libreoffice-commits] core.git: vcl/workben

2022-08-26 Thread Caolán McNamara (via logerrit)
 vcl/workben/scrtffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 872ea3ac4a45700f1cd23fec48b700ee10fda613
Author: Caolán McNamara 
AuthorDate: Fri Aug 26 21:40:21 2022 +0100
Commit: Caolán McNamara 
CommitDate: Fri Aug 26 22:43:01 2022 +0200

bump scrtf input len some more

Change-Id: I3690f2ec60eed58bba149c322e92b39cf2f8ba32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138887
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 7940990a..60bd9b0b2fa5 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 1024
+max_len = 2048


[Libreoffice-commits] core.git: vcl/workben

2022-08-23 Thread Caolán McNamara (via logerrit)
 vcl/workben/scrtffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 937c22f242d0c08b0980ce864530966378ada9a9
Author: Caolán McNamara 
AuthorDate: Mon Aug 22 21:50:47 2022 +0100
Commit: Caolán McNamara 
CommitDate: Tue Aug 23 09:50:27 2022 +0200

ofz: now that ofz#24932 is closed, bring up the input limit

Change-Id: Ide378cd9cad9f581faaca6e7d3a4e07470075ec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138709
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 5dcdfac7a69d..7940990a 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 128
+max_len = 1024


[Libreoffice-commits] core.git: vcl/workben

2022-08-08 Thread Caolán McNamara (via logerrit)
 vcl/workben/scrtffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 56e7646a7dd421ef148a2452ea175c6a4cb91985
Author: Caolán McNamara 
AuthorDate: Mon Aug 8 09:02:33 2022 +0100
Commit: Caolán McNamara 
CommitDate: Mon Aug 8 12:05:12 2022 +0200

ofz#24932 Timeout

restrict this to a very short length to reset ofz Timeout to force
ofz to report a new issue when restored later

Change-Id: Ibbdbb60f16ddca8367355d4c855e58aa16ea5f4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137944
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 678d526b1ea9..5dcdfac7a69d 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 65536
+max_len = 128


[Libreoffice-commits] core.git: vcl/workben

2022-07-19 Thread offtkp (via logerrit)
 vcl/workben/vcldemo.cxx |1 -
 1 file changed, 1 deletion(-)

New commits:
commit 88e55fb61ef626099e2a43562d788cf75d86fdf2
Author: offtkp 
AuthorDate: Sat Jul 16 19:20:43 2022 +0300
Commit: Tomaž Vajngerl 
CommitDate: Tue Jul 19 16:20:13 2022 +0200

Remove unused pngwrite.hxx include in vcldemo.cxx

Change-Id: I8fe829eb34c07c2da47d93ef07f3dee098a9eed3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137138
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index e4f25210d2ee..379901c01398 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -45,7 +45,6 @@
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 #include 


[Libreoffice-commits] core.git: vcl/workben

2022-06-20 Thread Caolán McNamara (via logerrit)
 vcl/workben/htmlfuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 54520bd1a01ff2e29bb92008778ebded8b2db9aa
Author: Caolán McNamara 
AuthorDate: Mon Jun 20 12:21:03 2022 +0100
Commit: Caolán McNamara 
CommitDate: Mon Jun 20 13:26:09 2022 +0200

ofz#39186 reduce max length allowed

Change-Id: I1b11e5451a305f45f369d9140b71c2a5e8b77230
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136147
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/htmlfuzzer.options b/vcl/workben/htmlfuzzer.options
index cd3dd2011141..94364a60bb93 100644
--- a/vcl/workben/htmlfuzzer.options
+++ b/vcl/workben/htmlfuzzer.options
@@ -1,3 +1,3 @@
 [libfuzzer]
-max_len = 65536
+max_len = 49152
 dict = html_tags.dict


[Libreoffice-commits] core.git: vcl/workben

2022-05-09 Thread Caolán McNamara (via logerrit)
 vcl/workben/svmfuzzer.cxx |5 +
 1 file changed, 5 insertions(+)

New commits:
commit 696be1cbd7097510702f8343853239af51085ab1
Author: Caolán McNamara 
AuthorDate: Mon May 9 12:35:56 2022 +0100
Commit: Caolán McNamara 
CommitDate: Mon May 9 18:43:19 2022 +0200

ofz#47323 suppress Direct-leak

Change-Id: I7189e4974a6bb8038a347442cf7ad925530e6f9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134074
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx
index 53757e3199c7..f0c129e76cd4 100644
--- a/vcl/workben/svmfuzzer.cxx
+++ b/vcl/workben/svmfuzzer.cxx
@@ -73,6 +73,11 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
 return 0;
 }
 
+extern "C" const char* __lsan_default_suppressions()
+{
+return "leak:CairoTextRender::DrawTextLayout\n";
+}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);


[Libreoffice-commits] core.git: vcl/workben

2022-04-17 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |2 --
 1 file changed, 2 deletions(-)

New commits:
commit f8e11c6480ff0005715b989a6d4e2e10a3816cf6
Author: Caolán McNamara 
AuthorDate: Sun Apr 17 17:15:05 2022 +0100
Commit: Caolán McNamara 
CommitDate: Sun Apr 17 20:12:21 2022 +0200

Revert "ofz#46632 Direct-leak"

This reverts commit 4659fc2f0a7223a89446edff0b77e58758b5edf5.

Change-Id: Id8d654ff4c36185b08012ab5a69f7cf75fc43249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133106
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index e64a53dda644..c9afd65552fe 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -129,8 +129,6 @@ void CommonInitialize(int *argc, char ***argv)
 psp::PrintFontManager::get();
 //get the printer info
 Printer::GetPrinterQueues();
-//Draw some text to fill CairoTextRender fontoptions cache
-Application::GetDefaultDevice()->DrawText(Point(0, 0), "hello world");
 
 //https://github.com/google/oss-fuzz/issues/1449
 //https://github.com/google/oss-fuzz/issues/5441


[Libreoffice-commits] core.git: vcl/workben

2022-04-15 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4659fc2f0a7223a89446edff0b77e58758b5edf5
Author: Caolán McNamara 
AuthorDate: Fri Apr 15 20:07:25 2022 +0100
Commit: Caolán McNamara 
CommitDate: Sat Apr 16 00:14:25 2022 +0200

ofz#46632 Direct-leak

there is no DeinitVCL for fuzzing, so fill the fontoptions,etc cache
before starting

Change-Id: I14a30c3d38490d03c31b4c349674ba48dd32de15
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133088
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index c9afd65552fe..e64a53dda644 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -129,6 +129,8 @@ void CommonInitialize(int *argc, char ***argv)
 psp::PrintFontManager::get();
 //get the printer info
 Printer::GetPrinterQueues();
+//Draw some text to fill CairoTextRender fontoptions cache
+Application::GetDefaultDevice()->DrawText(Point(0, 0), "hello world");
 
 //https://github.com/google/oss-fuzz/issues/1449
 //https://github.com/google/oss-fuzz/issues/5441


[Libreoffice-commits] core.git: vcl/workben

2022-03-28 Thread Stephan Bergmann (via logerrit)
 vcl/workben/vcldemo.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c2b0438df3a3cb2e948023ce4c0f07d4c25ea76a
Author: Stephan Bergmann 
AuthorDate: Mon Mar 28 14:38:48 2022 +0200
Commit: Stephan Bergmann 
CommitDate: Mon Mar 28 16:53:26 2022 +0200

-Werror,-Wunused-but-set-variable

...ever since 45c8bbe9303094b50035967846196cf3b7c72ea6 "vcldemo - more 
clipping
tests for RegionBand and Polygon cases."

Change-Id: Ia311a6620b618706dde4de178f202f563bd4c012
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132211
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 68abc47f7cb7..98a225b972e6 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1027,7 +1027,7 @@ public:
 tools::Rectangle aOuter = aRegions[3];
 std::vector 
aPieces(DemoRenderer::partition(aOuter, 2, 2));
 bool bDone = false;
-for (int j = 0; !bDone; ++j)
+while (!bDone)
 {
 rDev.Push(vcl::PushFlags::CLIPREGION);
 


[Libreoffice-commits] core.git: vcl/workben

2022-03-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/fftester.cxx |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 2fbf7dadf6255b7072c5a8bb7c6c071a22b726ea
Author: Caolán McNamara 
AuthorDate: Sat Mar 5 10:23:33 2022 +
Commit: Caolán McNamara 
CommitDate: Sat Mar 5 14:51:17 2022 +0100

add svm playback to local testing

Change-Id: Ie69f628ee3f37b5cdab206c0c1c201a94841bf03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131053
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 3c6645dbb89f..7938f0011b38 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -48,6 +48,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -187,6 +188,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 SvFileStream aFileStream(out, StreamMode::READ);
 SvmReader aReader(aFileStream);
 aReader.Read(aGDIMetaFile);
+ScopedVclPtrInstance aVDev;
+aGDIMetaFile.Play(*aVDev);
 }
 else if (strcmp(argv[2], "pcd") == 0)
 {


[Libreoffice-commits] core.git: vcl/workben

2022-03-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/svmfuzzer.cxx |   10 ++
 1 file changed, 10 insertions(+)

New commits:
commit 19c631692bcdb21d9d5324c63431a8bdfca5a72d
Author: Caolán McNamara 
AuthorDate: Sat Mar 5 10:11:53 2022 +
Commit: Caolán McNamara 
CommitDate: Sat Mar 5 14:50:30 2022 +0100

ofz#45233 need some more services to play back metafile

Change-Id: Iafda9d9ad919a4a1a80131962c50a4a24b4b9b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131049
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx
index a4074f465cc5..06188ece3004 100644
--- a/vcl/workben/svmfuzzer.cxx
+++ b/vcl/workben/svmfuzzer.cxx
@@ -24,6 +24,11 @@ void * 
com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void *
 void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 void * com_sun_star_comp_rendering_CanvasFactory_get_implementation( void *, 
void * );
 void * com_sun_star_comp_rendering_Canvas_VCL_get_implementation( void *, void 
* );
+void * linguistic_ConvDicList_get_implementation( void *, void * );
+void * linguistic_DicList_get_implementation( void *, void * );
+void * linguistic_LinguProps_get_implementation( void *, void * );
+void * linguistic_LngSvcMgr_get_implementation( void *, void * );
+void * linguistic_GrammarCheckingIterator_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -47,6 +52,11 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_comp_rendering_CanvasFactory_get_implementation", 
com_sun_star_comp_rendering_CanvasFactory_get_implementation },
 { "com_sun_star_comp_rendering_Canvas_VCL_get_implementation", 
com_sun_star_comp_rendering_Canvas_VCL_get_implementation },
+{ "linguistic_ConvDicList_get_implementation", 
linguistic_ConvDicList_get_implementation },
+{ "linguistic_DicList_get_implementation", 
linguistic_DicList_get_implementation },
+{ "linguistic_LinguProps_get_implementation", 
linguistic_LinguProps_get_implementation },
+{ "linguistic_LngSvcMgr_get_implementation", 
linguistic_LngSvcMgr_get_implementation },
+{ "linguistic_GrammarCheckingIterator_get_implementation", 
linguistic_GrammarCheckingIterator_get_implementation },
 { 0, 0 }
 };
 


[Libreoffice-commits] core.git: vcl/workben

2022-03-04 Thread Caolán McNamara (via logerrit)
 vcl/workben/svmfuzzer.cxx |   20 
 1 file changed, 20 insertions(+)

New commits:
commit 7e3e4d5058e34746b7b111312b9482323bbe0e1f
Author: Caolán McNamara 
AuthorDate: Fri Mar 4 09:28:36 2022 +
Commit: Caolán McNamara 
CommitDate: Fri Mar 4 10:34:13 2022 +0100

test more with svmfuzzer

Change-Id: I4b43b2101e6f4defc90db2daa3fcd5f1d986c456
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130960
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx
index 890946eecd41..a4074f465cc5 100644
--- a/vcl/workben/svmfuzzer.cxx
+++ b/vcl/workben/svmfuzzer.cxx
@@ -9,12 +9,23 @@
 
 #include 
 #include 
+#include 
 #include 
 #include "commonfuzzer.hxx"
 
 #include 
 #include 
 
+extern "C" {
+void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
+void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
+void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
+void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void 
* );
+void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
+void * com_sun_star_comp_rendering_CanvasFactory_get_implementation( void *, 
void * );
+void * com_sun_star_comp_rendering_Canvas_VCL_get_implementation( void *, void 
* );
+}
+
 const lib_to_factory_mapping *
 lo_get_factory_map(void)
 {
@@ -29,6 +40,13 @@ const lib_to_constructor_mapping *
 lo_get_constructor_map(void)
 {
 static lib_to_constructor_mapping map[] = {
+{ "com_sun_star_i18n_LocaleDataImpl_get_implementation", 
com_sun_star_i18n_LocaleDataImpl_get_implementation },
+{ "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", 
com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
+{ "com_sun_star_i18n_BreakIterator_get_implementation", 
com_sun_star_i18n_BreakIterator_get_implementation },
+{ "com_sun_star_i18n_NativeNumberSupplier_get_implementation", 
com_sun_star_i18n_NativeNumberSupplier_get_implementation },
+{ "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
+{ "com_sun_star_comp_rendering_CanvasFactory_get_implementation", 
com_sun_star_comp_rendering_CanvasFactory_get_implementation },
+{ "com_sun_star_comp_rendering_Canvas_VCL_get_implementation", 
com_sun_star_comp_rendering_Canvas_VCL_get_implementation },
 { 0, 0 }
 };
 
@@ -52,6 +70,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, 
size_t size)
 GDIMetaFile aGDIMetaFile;
 SvmReader aReader(aStream);
 aReader.Read(aGDIMetaFile);
+ScopedVclPtrInstance aVDev;
+aGDIMetaFile.Play(*aVDev);
 return 0;
 }
 


[Libreoffice-commits] core.git: vcl/workben

2022-01-07 Thread Mike Kaganski (via logerrit)
 vcl/workben/win/dtrans/testmarshal.cxx |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 33e1ffac0264f21a291d80f7fe949245752f58d8
Author: Mike Kaganski 
AuthorDate: Fri Jan 7 14:55:39 2022 +0300
Commit: Mike Kaganski 
CommitDate: Fri Jan 7 19:28:01 2022 +0100

Use CreateThread instead of _beginthreadex

Untested change - this code seems to be not compiled in 'make check'.

Change-Id: I02189c88360da585b8419f96cbe2677b224e6712
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128122
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/vcl/workben/win/dtrans/testmarshal.cxx 
b/vcl/workben/win/dtrans/testmarshal.cxx
index d9edfe753107..8ef53c0f4d92 100644
--- a/vcl/workben/win/dtrans/testmarshal.cxx
+++ b/vcl/workben/win/dtrans/testmarshal.cxx
@@ -60,7 +60,7 @@ HANDLE  g_hEvtThreadWakeup;
 
 // a thread in another apartment to test apartment transparency
 
-unsigned int _stdcall ThreadProc(LPVOID pParam)
+DWORD WINAPI ThreadProc(_In_ LPVOID pParam)
 {
 // setup another apartment
 HRESULT hr = OleInitialize( NULL );
@@ -116,11 +116,10 @@ int SAL_CALL main( int nArgc, char* Argv[] )
   EVT_INIT_NONSIGNALED,
   EVT_NONAME );
 
-unsigned uThreadId;
-HANDLE   hThread;
+DWORD uThreadId;
 
 // create a thread in another apartment
-hThread = (void*)_beginthreadex( NULL, 0, ThreadProc, NULL, 0, &uThreadId 
);
+HANDLE hThread = CreateThread( NULL, 0, ThreadProc, NULL, 0, &uThreadId );
 
 IDataObject* pIDo = new CXTDataObject( );
 


[Libreoffice-commits] core.git: vcl/workben

2022-01-03 Thread Caolán McNamara (via logerrit)
 vcl/workben/minvcl.cxx |   10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 3bb2cec6f9b81724f5a5e98065122da1f502e6ff
Author: Caolán McNamara 
AuthorDate: Mon Jan 3 15:30:05 2022 +
Commit: Caolán McNamara 
CommitDate: Mon Jan 3 20:17:37 2022 +0100

cid#1496842 silence Uncaught exception

and

cid#1496843 Uncaught exception

Change-Id: I39b972b5573a5d0093e13206508ddd0088cb1146
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127899
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/minvcl.cxx b/vcl/workben/minvcl.cxx
index 98e8dddaacc3..9592769879fa 100644
--- a/vcl/workben/minvcl.cxx
+++ b/vcl/workben/minvcl.cxx
@@ -13,6 +13,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -55,7 +56,7 @@ int TheApplication::Main()
 return 0;
 }
 
-int main()
+static int main_impl()
 {
 auto xContext = cppu::defaultBootstrap_InitialComponentContext();
 css::uno::Reference xServiceManager(
@@ -74,4 +75,11 @@ int main()
 return ret;
 }
 
+int main()
+{
+int ret;
+suppress_fun_call_w_exception(ret = main_impl());
+return ret;
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */


[Libreoffice-commits] core.git: vcl/workben

2021-11-19 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |   21 +++--
 1 file changed, 11 insertions(+), 10 deletions(-)

New commits:
commit c5a72ac64ff11d245f80bee2e743548d10319e04
Author: Tor Lillqvist 
AuthorDate: Fri Nov 19 13:16:58 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Fri Nov 19 13:46:08 2021 +0200

Upgrade to un-deprecated API and fix a crash in the pasteboard.mm helper 
tool

Change-Id: Ic0b839df686fb93c64ef844848028ded39225ced

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
index 6a28430831b4..4123f8eae022 100644
--- a/vcl/workben/pasteboard.mm
+++ b/vcl/workben/pasteboard.mm
@@ -10,12 +10,13 @@
 
 // List the contents of the macOS pasteboard
 
-// Build with: clang++ -Wall -o pasteboard vcl/workben/pasteboard.mm 
-framework AppKit
+// Build with: clang++ -g -Wall -o pasteboard pasteboard.mm -framework AppKit 
-framework UniformTypeIdentifiers
 
 #import 
 
 #import 
 #import 
+#import 
 
 static void usage()
 {
@@ -31,7 +32,7 @@ static void usage()
 
 int main(int argc, char** argv)
 {
-NSString* requestedType;
+NSString* requestedType = @"";
 
 int ch;
 
@@ -108,14 +109,14 @@ int main(int argc, char** argv)
 NSArray* types = [items[i] types];
 for (unsigned j = 0; j < [types count]; j++)
 {
-std::cout << "" << j << ": " << [types[j] UTF8String];
-
-if ([types[j] isEqualToString:(NSString*)kUTTypePlainText] ||
-[types[j] isEqualToString:(NSString*)kUTTypeUTF8PlainText] ||
-[types[j] isEqualToString:(NSString*)kUTTypeText] ||
-[types[j] isEqualToString:(NSString*)kUTTypeHTML] ||
-[types[j] isEqualToString:(NSString*)kUTTypeRTF] ||
-[types[j] 
isEqualToString:(NSString*)kUTTypeUTF16ExternalPlainText])
+std::cout << "" << j << ": " << [types[j] UTF8String] << 
std::flush;
+
+if ([types[j] isEqualToString:[UTTypePlainText identifier]] ||
+[types[j] isEqualToString:[UTTypeUTF8PlainText identifier]] ||
+[types[j] isEqualToString:[UTTypeText identifier]] ||
+[types[j] isEqualToString:[UTTypeHTML identifier]] ||
+[types[j] isEqualToString:[UTTypeRTF identifier]] ||
+[types[j] isEqualToString:[UTTypeUTF16ExternalPlainText 
identifier]])
 {
 NSString* string = [items[i] 
stringForType:NSPasteboardTypeString];
 if ([string length] > 500)


[Libreoffice-commits] core.git: vcl/workben

2021-11-12 Thread Hossein (via logerrit)
 vcl/workben/mtfdemo.cxx |   44 ++--
 1 file changed, 38 insertions(+), 6 deletions(-)

New commits:
commit d49807bb277f69cfd494f10399e59bd9947a9d29
Author: Hossein 
AuthorDate: Fri Nov 12 10:23:11 2021 +0100
Commit: Mike Kaganski 
CommitDate: Fri Nov 12 13:56:07 2021 +0100

Add error handling while creating absolute url

* Added error handling while creating absolute url from file name
* It was reported as ofz#1493240 Unchecked return value
* It has been silenced in 30f1617bd873d9ccf343a280ba27f476d4c7726e
  and b7c8e4f8ae5402eb665f758f75123e9fe1514d01

Change-Id: Idb8116a5805be38cc37ec1ba28ef226ba160e25b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124214
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index eb81c3363b16..aae7c092a163 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -13,6 +13,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -63,7 +64,7 @@ void DemoMtfWin::Paint(vcl::RenderContext& rRenderContext, 
const tools::Rectangl
 }
 else
 {
-Application::Abort("Can't read metafile");
+Application::Abort("Can't read metafile " + aFileStream.GetFileName());
 }
 
 aMtf.Play(*GetOutDev(), aMtf.GetActionSize());
@@ -154,8 +155,19 @@ private:
 
 OUString sWorkingDir, sFileUrl;
 osl_getProcessWorkingDir(&sWorkingDir.pData);
-(void)osl::FileBase::getFileURLFromSystemPath(aFilename, sFileUrl);
-(void)osl::FileBase::getAbsoluteFileURL(sWorkingDir, sFileUrl, 
maFileName);
+osl::FileBase::RC rc = 
osl::FileBase::getFileURLFromSystemPath(aFilename, sFileUrl);
+if (rc == osl::FileBase::E_None)
+{
+rc = osl::FileBase::getAbsoluteFileURL(sWorkingDir, sFileUrl, 
maFileName);
+if (rc != osl::FileBase::E_None)
+{
+throw css::uno::RuntimeException("Can not make absolute: " 
+ aFilename);
+}
+}
+else
+{
+throw css::uno::RuntimeException("Can not get file url from 
system path: " + aFilename);
+}
 
 uno::Reference xComponentContext
 = ::cppu::defaultBootstrap_InitialComponentContext();
@@ -169,10 +181,30 @@ private:
 {
 GDIMetaFile aMtf;
 SvFileStream aFileStream(maFileName, StreamMode::READ);
-ReadWindowMetafile(aFileStream, aMtf);
+
+if (aFileStream.IsOpen())
+{
+ReadWindowMetafile(aFileStream, aMtf);
+}
+else
+{
+throw css::uno::RuntimeException("Can't read metafile " + 
aFileStream.GetFileName());
+}
+
 OUString sAbsoluteDumpUrl, sDumpUrl;
-(void)osl::FileBase::getFileURLFromSystemPath("metadump.xml", 
sDumpUrl);
-(void)osl::FileBase::getAbsoluteFileURL(sWorkingDir, sDumpUrl, 
sAbsoluteDumpUrl);
+rc = osl::FileBase::getFileURLFromSystemPath("metadump.xml", 
sDumpUrl);
+if (rc == osl::FileBase::E_None)
+{
+rc = osl::FileBase::getAbsoluteFileURL(sWorkingDir, 
sDumpUrl, sAbsoluteDumpUrl);
+if (rc != osl::FileBase::E_None)
+{
+throw css::uno::RuntimeException("Can not make 
absolute: metadump.xml");
+}
+}
+else
+{
+throw css::uno::RuntimeException("Can not get file url 
from system path: metadump.xml");
+}
 
 aMtf.dumpAsXml(rtl::OUStringToOString(sAbsoluteDumpUrl, 
RTL_TEXTENCODING_UTF8).getStr());
 std::cout << "Dumped metaactions as metadump.xml" << std::endl;


[Libreoffice-commits] core.git: vcl/workben

2021-11-06 Thread Caolán McNamara (via logerrit)
 vcl/workben/dbffuzzer.cxx |3 +--
 vcl/workben/wksfuzzer.cxx |3 +--
 vcl/workben/xlsfuzzer.cxx |3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 2576f08b3b29f460378a6c3b306cc2dfb8b1c638
Author: Caolán McNamara 
AuthorDate: Sat Nov 6 16:16:00 2021 +
Commit: Caolán McNamara 
CommitDate: Sat Nov 6 17:17:18 2021 +0100

ofz: fix build

Change-Id: I0be535097cb7e2c8fa2346843592945db981dad0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124800
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/dbffuzzer.cxx b/vcl/workben/dbffuzzer.cxx
index e3edfff7dd9e..089e1f397aec 100644
--- a/vcl/workben/dbffuzzer.cxx
+++ b/vcl/workben/dbffuzzer.cxx
@@ -29,8 +29,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 comphelper::getProcessServiceFactory()->createInstance(
 "com.sun.star.ucb.UniversalContentBroker"),
 css::uno::UNO_QUERY_THROW);
-css::uno::Sequence aArgs(1);
-aArgs[0] <<= OUString("NoConfig");
+css::uno::Sequence aArgs{ 
css::uno::Any(OUString("NoConfig")) };
 css::uno::Reference xFileProvider(
 comphelper::getProcessServiceFactory()->createInstanceWithArguments(
 "com.sun.star.ucb.FileContentProvider", aArgs),
diff --git a/vcl/workben/wksfuzzer.cxx b/vcl/workben/wksfuzzer.cxx
index 3edacb48411c..a12fe2f208fd 100644
--- a/vcl/workben/wksfuzzer.cxx
+++ b/vcl/workben/wksfuzzer.cxx
@@ -29,8 +29,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 comphelper::getProcessServiceFactory()->createInstance(
 "com.sun.star.ucb.UniversalContentBroker"),
 css::uno::UNO_QUERY_THROW);
-css::uno::Sequence aArgs(1);
-aArgs[0] <<= OUString("NoConfig");
+css::uno::Sequence aArgs{ 
css::uno::Any(OUString("NoConfig")) };
 css::uno::Reference xFileProvider(
 comphelper::getProcessServiceFactory()->createInstanceWithArguments(
 "com.sun.star.ucb.FileContentProvider", aArgs),
diff --git a/vcl/workben/xlsfuzzer.cxx b/vcl/workben/xlsfuzzer.cxx
index 893110988b3d..4dd38ea228dd 100644
--- a/vcl/workben/xlsfuzzer.cxx
+++ b/vcl/workben/xlsfuzzer.cxx
@@ -29,8 +29,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 comphelper::getProcessServiceFactory()->createInstance(
 "com.sun.star.ucb.UniversalContentBroker"),
 css::uno::UNO_QUERY_THROW);
-css::uno::Sequence aArgs(1);
-aArgs[0] <<= OUString("NoConfig");
+css::uno::Sequence aArgs{ 
css::uno::Any(OUString("NoConfig")) };
 css::uno::Reference xFileProvider(
 comphelper::getProcessServiceFactory()->createInstanceWithArguments(
 "com.sun.star.ucb.FileContentProvider", aArgs),


[Libreoffice-commits] core.git: vcl/workben

2021-11-01 Thread Caolán McNamara (via logerrit)
 vcl/workben/dbffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a2bc467b4c0c0da71a8c213ac61477cd7697cdc0
Author: Caolán McNamara 
AuthorDate: Mon Nov 1 08:50:06 2021 +
Commit: Caolán McNamara 
CommitDate: Mon Nov 1 11:26:49 2021 +0100

ofz#40404 try smaller documents to avoid timeouts

Change-Id: Iac495993a219507fe2b6d50b11973ad8d078497e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124540
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/dbffuzzer.options b/vcl/workben/dbffuzzer.options
index bf169a74ba63..f41b545a43a4 100644
--- a/vcl/workben/dbffuzzer.options
+++ b/vcl/workben/dbffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 49152
+max_len = 32768


[Libreoffice-commits] core.git: vcl/workben

2021-10-27 Thread Caolán McNamara (via logerrit)
 vcl/workben/dbffuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 803ec436b13576e3f2818bb4ef6559e8f24b3d0c
Author: Caolán McNamara 
AuthorDate: Wed Oct 27 20:49:49 2021 +0100
Commit: Caolán McNamara 
CommitDate: Wed Oct 27 21:52:09 2021 +0200

ofz#40404 try smaller documents to avoid timeouts

Change-Id: I7ac320fe062bc076cfd0e3d1b37e32154db79ad5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124302
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/dbffuzzer.options b/vcl/workben/dbffuzzer.options
index 678d526b1ea9..bf169a74ba63 100644
--- a/vcl/workben/dbffuzzer.options
+++ b/vcl/workben/dbffuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 65536
+max_len = 49152


[Libreoffice-commits] core.git: vcl/workben

2021-10-26 Thread Caolán McNamara (via logerrit)
 vcl/workben/mtfdemo.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 30f1617bd873d9ccf343a280ba27f476d4c7726e
Author: Caolán McNamara 
AuthorDate: Mon Oct 25 19:20:07 2021 +0100
Commit: Caolán McNamara 
CommitDate: Tue Oct 26 10:06:33 2021 +0200

ofz#1493240 Unchecked return value

Change-Id: I17ffbd28d56513ed7b39c29f74598c7517f44190
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124160
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index 9829c5b711f7..eb81c3363b16 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -154,8 +154,8 @@ private:
 
 OUString sWorkingDir, sFileUrl;
 osl_getProcessWorkingDir(&sWorkingDir.pData);
-osl::FileBase::getFileURLFromSystemPath(aFilename, sFileUrl);
-osl::FileBase::getAbsoluteFileURL(sWorkingDir, sFileUrl, 
maFileName);
+(void)osl::FileBase::getFileURLFromSystemPath(aFilename, sFileUrl);
+(void)osl::FileBase::getAbsoluteFileURL(sWorkingDir, sFileUrl, 
maFileName);
 
 uno::Reference xComponentContext
 = ::cppu::defaultBootstrap_InitialComponentContext();


[Libreoffice-commits] core.git: vcl/workben

2021-10-24 Thread Caolán McNamara (via logerrit)
 vcl/workben/mtfdemo.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b7c8e4f8ae5402eb665f758f75123e9fe1514d01
Author: Caolán McNamara 
AuthorDate: Sun Oct 24 16:19:38 2021 +0100
Commit: Caolán McNamara 
CommitDate: Sun Oct 24 18:23:43 2021 +0200

cid#1493240 silence Unchecked return value

Change-Id: I3847647221cf365146c8a5f418e65e3e5798303c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124117
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index fa159d7df07d..9829c5b711f7 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -171,8 +171,8 @@ private:
 SvFileStream aFileStream(maFileName, StreamMode::READ);
 ReadWindowMetafile(aFileStream, aMtf);
 OUString sAbsoluteDumpUrl, sDumpUrl;
-osl::FileBase::getFileURLFromSystemPath("metadump.xml", 
sDumpUrl);
-osl::FileBase::getAbsoluteFileURL(sWorkingDir, sDumpUrl, 
sAbsoluteDumpUrl);
+(void)osl::FileBase::getFileURLFromSystemPath("metadump.xml", 
sDumpUrl);
+(void)osl::FileBase::getAbsoluteFileURL(sWorkingDir, sDumpUrl, 
sAbsoluteDumpUrl);
 
 aMtf.dumpAsXml(rtl::OUStringToOString(sAbsoluteDumpUrl, 
RTL_TEXTENCODING_UTF8).getStr());
 std::cout << "Dumped metaactions as metadump.xml" << std::endl;


[Libreoffice-commits] core.git: vcl/workben

2021-10-21 Thread Caolán McNamara (via logerrit)
 vcl/workben/localestub/localedata_en_IL.cxx |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 5722e85ca0e0fc24c7e9fcd252113717d69b72d4
Author: Caolán McNamara 
AuthorDate: Thu Oct 21 20:03:02 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Oct 21 21:14:57 2021 +0200

ofz#40166 fix build failure

Change-Id: Ie71b63cbd7e10aff6a9374dcaad24c3153db3bb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124039
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/localestub/localedata_en_IL.cxx 
b/vcl/workben/localestub/localedata_en_IL.cxx
index bea5731a7454..c0323b6768f5 100644
--- a/vcl/workben/localestub/localedata_en_IL.cxx
+++ b/vcl/workben/localestub/localedata_en_IL.cxx
@@ -18,14 +18,14 @@ SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL 
getLCInfo_en_IL(sal_Int16& count)
 count = SAL_N_ELEMENTS(LCInfoArray);
 return (sal_Unicode**)LCInfoArray;
 }
-extern sal_Unicode** SAL_CALL getLocaleItem_he_IL(sal_Int16& count);
+extern sal_Unicode** SAL_CALL getLocaleItem_en_US(sal_Int16& count);
 SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL getLocaleItem_en_IL(sal_Int16& 
count)
 {
-return getLocaleItem_he_IL(count);
+return getLocaleItem_en_US(count);
 }
 static const sal_Unicode replaceTo0[]
 = { 0x5b, 0x24, 0x200e, 0x20aa, 0x2d, 0x42, 0x34, 0x30, 0x39, 0x5d, 0x0 };
-extern sal_Unicode const* const* SAL_CALL getAllFormats0_he_IL(sal_Int16& 
count,
+extern sal_Unicode const* const* SAL_CALL getAllFormats0_en_US(sal_Int16& 
count,
const 
sal_Unicode*& from,
const 
sal_Unicode*& to);
 SAL_DLLPUBLIC_EXPORT sal_Unicode const* const* SAL_CALL
@@ -33,12 +33,12 @@ getAllFormats0_en_IL(sal_Int16& count, const sal_Unicode*& 
from, const sal_Unico
 {
 to = replaceTo0;
 const sal_Unicode* tmp;
-return getAllFormats0_he_IL(count, from, tmp);
+return getAllFormats0_en_US(count, from, tmp);
 }
-extern sal_Unicode** SAL_CALL getDateAcceptancePatterns_he_IL(sal_Int16& 
count);
+extern sal_Unicode** SAL_CALL getDateAcceptancePatterns_en_US(sal_Int16& 
count);
 SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL 
getDateAcceptancePatterns_en_IL(sal_Int16& count)
 {
-return getDateAcceptancePatterns_he_IL(count);
+return getDateAcceptancePatterns_en_US(count);
 }
 static const sal_Unicode replaceTo1[] = { 0x0 };
 extern sal_Unicode const* const* SAL_CALL getAllFormats1_en_US(sal_Int16& 
count,
@@ -86,10 +86,10 @@ SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL 
getAllCalendars_en_IL(sal_Int16& cou
 {
 return getAllCalendars_en_US(count);
 }
-extern sal_Unicode** SAL_CALL getAllCurrencies_he_IL(sal_Int16& count);
+extern sal_Unicode** SAL_CALL getAllCurrencies_en_US(sal_Int16& count);
 SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL getAllCurrencies_en_IL(sal_Int16& 
count)
 {
-return getAllCurrencies_he_IL(count);
+return getAllCurrencies_en_US(count);
 }
 extern sal_Unicode** SAL_CALL getTransliterations_en_US(sal_Int16& count);
 SAL_DLLPUBLIC_EXPORT sal_Unicode** SAL_CALL 
getTransliterations_en_IL(sal_Int16& count)


[Libreoffice-commits] core.git: vcl/workben

2021-10-20 Thread Hossein (via logerrit)
 vcl/workben/mtfdemo.cxx |   75 +---
 1 file changed, 58 insertions(+), 17 deletions(-)

New commits:
commit 40c9f83a82e45e5aa626811ce065d8b1b13b54b6
Author: Hossein 
AuthorDate: Wed Oct 20 12:11:35 2021 +0200
Commit: Mike Kaganski 
CommitDate: Wed Oct 20 14:01:43 2021 +0200

mtfdemo: Dump metaactions, fix problems with repaint

* Now mtfdemo can dump metaactions as metadump.xml in the current
  folder if the -d option is added in the command line. For example:

./bin/run mtfdemo -d odk/examples/basic/forms_and_controls/burger.wmf

* Previously, the demo had problems with display, and when a repaint
  was requested, the display was stopped. Now, each time a repaint
  is requeted, the metafile is read again, and the paint works fine.

* Now mtfdemo supports relative path. Previously, file name had to be
absolute to work.

Change-Id: I01bcbd38be682a55021e787a60b4dc86f596083a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123574
Tested-by: Jenkins
Reviewed-by: Mike Kaganski 

diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index afdb0192f16f..fa159d7df07d 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -27,8 +27,10 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 
-#include 
+#include 
 
 using namespace css;
 
@@ -36,22 +38,13 @@ namespace {
 
 class DemoMtfWin : public WorkWindow
 {
-GDIMetaFile maMtf;
+OUString maFileName;
 
 public:
 explicit DemoMtfWin(const OUString& rFileName)
 : WorkWindow(nullptr, WB_APP | WB_STDWORK)
 {
-SvFileStream aFileStream(rFileName, StreamMode::READ);
-
-if (aFileStream.IsOpen())
-{
-ReadWindowMetafile(aFileStream, maMtf);
-}
-else
-{
-Application::Abort("Can't read metafile");
-}
+maFileName = rFileName;
 }
 
 virtual void Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& rRect)  override;
@@ -61,7 +54,21 @@ public:
 
 void DemoMtfWin::Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& rRect)
 {
-maMtf.Play(*GetOutDev(), maMtf.GetActionSize());
+GDIMetaFile aMtf;
+SvFileStream aFileStream(maFileName, StreamMode::READ);
+
+if (aFileStream.IsOpen())
+{
+ReadWindowMetafile(aFileStream, aMtf);
+}
+else
+{
+Application::Abort("Can't read metafile");
+}
+
+aMtf.Play(*GetOutDev(), aMtf.GetActionSize());
+aMtf.Stop();
+aFileStream.Close();
 
 WorkWindow::Paint(rRenderContext, rRect);
 }
@@ -75,8 +82,9 @@ class DemoMtfApp : public Application
 
 static void showHelp()
 {
-fprintf(stderr, "Usage: mtfdemo --help | FILE\n");
-fprintf(stderr, "A VCL test app that displays Windows metafiles\n");
+std::cerr << "Usage: mtfdemo --help | FILE | -d FILE" << std::endl;
+std::cerr << "A VCL test app that displays Windows metafiles or dumps 
metaactions." << std::endl;
+std::cerr << "If you want to dump as metadump.xml, use -d before 
FILE." << std::endl;
 std::exit(0);
 }
 
@@ -118,19 +126,37 @@ private:
 try
 {
 const sal_uInt16 nCmdParams = GetCommandLineParamCount();
+OUString aArg, aFilename;
+bool bDumpXML = false;
 
 if (nCmdParams == 0)
+{
 showHelp();
+std::exit(1);
+}
 else
 {
-OUString aArg = GetCommandLineParam(0);
+aArg = GetCommandLineParam(0);
 
 if (aArg == "--help" || aArg == "-h")
+{
 showHelp();
+std::exit(0);
+}
+else if (nCmdParams > 1 && (aArg == "--dump" || aArg == "-d"))
+{
+aFilename = GetCommandLineParam(1);
+bDumpXML = true;
+}
 else
-maFileName = aArg;
+aFilename = aArg;
 }
 
+OUString sWorkingDir, sFileUrl;
+osl_getProcessWorkingDir(&sWorkingDir.pData);
+osl::FileBase::getFileURLFromSystemPath(aFilename, sFileUrl);
+osl::FileBase::getAbsoluteFileURL(sWorkingDir, sFileUrl, 
maFileName);
+
 uno::Reference xComponentContext
 = ::cppu::defaultBootstrap_InitialComponentContext();
 xMSF.set(xComponentContext->getServiceManager(), uno::UNO_QUERY);
@@ -138,6 +164,21 @@ private:
 Application::Abort("Bootstrap failure - no service manager");
 
 ::comphelper::setProcessServiceFactory(xMSF);
+
+if(bDumpXML)
+{
+GDIMetaFile aMtf;
+SvFileStream aFileStream(maFileName, StreamMode::READ);
+ReadWindowMetafile(aFileStream, aMtf);
+ 

[Libreoffice-commits] core.git: vcl/workben

2021-09-18 Thread Caolán McNamara (via logerrit)
 vcl/workben/hwpfuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34fb69ce91ad43064c32f234f465db8031ae0b52
Author: Caolán McNamara 
AuthorDate: Sat Sep 18 16:38:24 2021 +0100
Commit: Caolán McNamara 
CommitDate: Sat Sep 18 18:33:22 2021 +0200

ofz: reduce size of hwp input

fuzzer seems to hover right at the edge of an intermittent timeout

Change-Id: I478c0f355ceb4d05c60834db3f2dc14a72696794
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122303
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/hwpfuzzer.options b/vcl/workben/hwpfuzzer.options
index 678d526b1ea9..bf169a74ba63 100644
--- a/vcl/workben/hwpfuzzer.options
+++ b/vcl/workben/hwpfuzzer.options
@@ -1,2 +1,2 @@
 [libfuzzer]
-max_len = 65536
+max_len = 49152


[Libreoffice-commits] core.git: vcl/workben

2021-09-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 094117fc686e7b5cf05191079f2195155fc3513e
Author: Caolán McNamara 
AuthorDate: Sun Sep 5 10:50:58 2021 +0100
Commit: Caolán McNamara 
CommitDate: Sun Sep 5 15:54:18 2021 +0200

ofz: fods timeout, set SAX_DISABLE_THREADS

sax/source/fastparser/fastparser.cxx:857 rEntity.maConsumeResume.wait()
seen in timeout backtrace

Change-Id: Ic1ab15e06dc5ac776101715026a334957bb8e868
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121686
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 977fb7cb501c..c9afd65552fe 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -95,6 +95,7 @@ void CommonInitialize(int *argc, char ***argv)
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
 setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
 setenv("SAL_NO_FONT_LOOKUP", "1", 1);
+setenv("SAX_DISABLE_THREADS", "1", 1);
 
 //allow bubbling of max input len to fuzzer targets
 int nMaxLen = 0;


[Libreoffice-commits] core.git: vcl/workben

2021-09-01 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 8ef6d40a1cdaceb3479656aa32644e8c5d2f7e72
Author: Caolán McNamara 
AuthorDate: Wed Sep 1 16:46:29 2021 +0100
Commit: Caolán McNamara 
CommitDate: Wed Sep 1 18:00:40 2021 +0200

ofz: set JSIMD_FORCENONE for msan to handle jpeg_read_scanlines

see: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/253

to silence...

==255714==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x546d121 in ycck_cmyk_convert 
workdir/UnpackedTarball/libjpeg-turbo/jdcolor.c:565:19
#1 0x53d456f in sep_upsample 
workdir/UnpackedTarball/libjpeg-turbo/jdsample.c:98:3
#2 0x547c7bf in process_data_context_main 
workdir/UnpackedTarball/libjpeg-turbo/jdmainct.c:374:5
#3 0x5393146 in jpeg_read_scanlines 
workdir/UnpackedTarball/libjpeg-turbo/jdapistd.c:287:3
#4 0x219f00d in ReadJPEG((anonymous namespace)::JpegStuff&, 
JPEGReader*, void*, long*, GraphicFilterImportFlags, 
vcl::ScopedBitmapAccess*) 
libreoffice/vcl/source/filter/jpeg/jpegc.cxx:282:17
#5 0x219d9ad in ReadJPEG(JPEGReader*, void*, long*, 
GraphicFilterImportFlags, vcl::ScopedBitmapAccess*) 
libreoffice/vcl/source/filter/jpeg/jpegc.cxx:333:5
#6 0xd1b770 in JPEGReader::Read(Graphic&, GraphicFilterImportFlags, 
vcl::ScopedBitmapAccess*) 
libreoffice/vcl/source/filter/jpeg/JpegReader.cxx:295:5

  Uninitialized value was created by a heap allocation
#0 0x555a1d in malloc 
llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:901:3
#1 0x53f0360 in jpeg_get_large 
workdir/UnpackedTarball/libjpeg-turbo/jmemnobs.c:56:19
#2 0x53e99bf in alloc_large 
workdir/UnpackedTarball/libjpeg-turbo/jmemmgr.c:393:30
#3 0x53ea1de in alloc_sarray 
workdir/UnpackedTarball/libjpeg-turbo/jmemmgr.c:477:28
#4 0x547b422 in jinit_d_main_controller 
workdir/UnpackedTarball/libjpeg-turbo/jdmainct.c:451:28
#5 0x53b1f2c in master_selection 
workdir/UnpackedTarball/libjpeg-turbo/jdmaster.c:569:5
#6 0x53b0133 in jinit_master_decompress 
workdir/UnpackedTarball/libjpeg-turbo/jdmaster.c:735:3
#7 0x53908dd in jpeg_start_decompress 
workdir/UnpackedTarball/libjpeg-turbo/jdapistd.c:47:5
#8 0x219eaa4 in ReadJPEG((anonymous namespace)::JpegStuff&, 
JPEGReader*, void*, long*, GraphicFilterImportFlags, 
vcl::ScopedBitmapAccess*) 
libreoffice/vcl/source/filter/jpeg/jpegc.cxx:265:13

Change-Id: I6c276a025baba0e22cbf47f102019014fc7d5a36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121477
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index fb8f874a0f74..977fb7cb501c 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -89,6 +89,7 @@ void CommonInitialize(int *argc, char ***argv)
 {
 setenv("SAL_USE_VCLPLUGIN", "svp", 1);
 setenv("JPEGMEM", "768M", 1);
+setenv("JSIMD_FORCENONE", "1", 1); // 
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/253
 setenv("SC_MAX_MATRIX_ELEMENTS", "6000", 1);
 setenv("SC_NO_THREADED_CALCULATION", "1", 1);
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);


[Libreoffice-commits] core.git: vcl/workben

2021-08-17 Thread Caolán McNamara (via logerrit)
 vcl/workben/pptfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e8180aa5e7c03fe62d958e9e147136abd99ddf82
Author: Caolán McNamara 
AuthorDate: Wed Aug 11 17:15:19 2021 +0100
Commit: Caolán McNamara 
CommitDate: Tue Aug 17 22:21:54 2021 +0200

ofz: Indirect-leak

Change-Id: Ia29c771d6dbdf37b55ce0e63cc73564bcea6f5c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120346
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index 77fe063cb18a..f36cd08d3a9a 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -13,6 +13,7 @@
 
 #include 
 #include 
+#include 
 
 extern "C" {
 void * i18npool_component_getFactory( const char* , void* , void* );
@@ -132,6 +133,7 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
 __lsan_disable();
 
 CommonInitialize(argc, argv);
+SdrObject::GetGlobalDrawObjectItemPool();
 
 
comphelper::getProcessServiceFactory()->createInstance("com.sun.star.comp.Draw.PresentationDocument");
 


[Libreoffice-commits] core.git: vcl/workben

2021-08-06 Thread panoskorovesis (via logerrit)
 vcl/workben/fftester.cxx |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 3d1a4caf4062b906aaeab38f0b841dcacdc22c50
Author: panoskorovesis 
AuthorDate: Wed Aug 4 11:38:04 2021 +0300
Commit: Tomaž Vajngerl 
CommitDate: Sat Aug 7 00:59:08 2021 +0200

Replace ReadGDIMetaFile with Svmreader::Read in fftester.cxx

Use the new read functionality in vcl/workben/fftester.cxx

Change-Id: I8ece06ba143f5ae86fae05d43e3e3b325e20ddb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120107
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index e0696977a89c..4359452f39ac 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -46,6 +46,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -183,7 +184,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 {
 GDIMetaFile aGDIMetaFile;
 SvFileStream aFileStream(out, StreamMode::READ);
-ReadGDIMetaFile(aFileStream, aGDIMetaFile);
+SvmReader aReader(aFileStream);
+aReader.Read(aGDIMetaFile);
 }
 else if (strcmp(argv[2], "pcd") == 0)
 {


[Libreoffice-commits] core.git: vcl/workben

2021-08-06 Thread panoskorovesis (via logerrit)
 vcl/workben/svmfuzzer.cxx |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit ad982bc87f96c31af6fa3e81d33af29b991199ce
Author: panoskorovesis 
AuthorDate: Wed Aug 4 11:24:31 2021 +0300
Commit: Tomaž Vajngerl 
CommitDate: Sat Aug 7 00:58:53 2021 +0200

Replace ReadGDIMetaFile with SvmReader::Read in svmfuzzer.cxx

Use the new read functionality in vcl/workben/svmfuzzer.cxx

Change-Id: Id8cc57bda70109f2ddbf81354f8d37d187f0f8d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120106
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl 

diff --git a/vcl/workben/svmfuzzer.cxx b/vcl/workben/svmfuzzer.cxx
index 5ef7366c1889..890946eecd41 100644
--- a/vcl/workben/svmfuzzer.cxx
+++ b/vcl/workben/svmfuzzer.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include "commonfuzzer.hxx"
 
 #include 
@@ -49,7 +50,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, 
size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
 GDIMetaFile aGDIMetaFile;
-ReadGDIMetaFile(aStream, aGDIMetaFile);
+SvmReader aReader(aStream);
+aReader.Read(aGDIMetaFile);
 return 0;
 }
 


[Libreoffice-commits] core.git: vcl/workben

2021-06-07 Thread Caolán McNamara (via logerrit)
 vcl/workben/dxffuzzer.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit 01c20a75b388ded73a4f220970cf3c2e95f83dff
Author: Caolán McNamara 
AuthorDate: Mon Jun 7 20:32:26 2021 +0100
Commit: Caolán McNamara 
CommitDate: Mon Jun 7 21:33:45 2021 +0200

ofz#35033 missing components

Change-Id: I5b0322d026f819dde0a1a2473087e56ebb75008a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116801
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/dxffuzzer.cxx b/vcl/workben/dxffuzzer.cxx
index 8768072c93fb..89d6e19a69e8 100644
--- a/vcl/workben/dxffuzzer.cxx
+++ b/vcl/workben/dxffuzzer.cxx
@@ -19,6 +19,8 @@ extern "C" {
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
+void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void 
* );
+void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -38,6 +40,8 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_LocaleDataImpl_get_implementation", 
com_sun_star_i18n_LocaleDataImpl_get_implementation },
 { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", 
com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
 { "com_sun_star_i18n_BreakIterator_get_implementation", 
com_sun_star_i18n_BreakIterator_get_implementation },
+{ "com_sun_star_i18n_NativeNumberSupplier_get_implementation", 
com_sun_star_i18n_NativeNumberSupplier_get_implementation },
+{ "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-05-29 Thread Caolán McNamara (via logerrit)
 vcl/workben/metfuzzer.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit be6111c0679b9c5249250ada2814b1a00c8d8c0a
Author: Caolán McNamara 
AuthorDate: Sat May 29 15:44:04 2021 +0100
Commit: Caolán McNamara 
CommitDate: Sat May 29 16:57:51 2021 +0200

ofz#34763 missing components

Change-Id: I6a27f7412975694f3b710e66b4eb5358279bc132
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116388
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/metfuzzer.cxx b/vcl/workben/metfuzzer.cxx
index acaaf9d1b3da..9ca6fd35c932 100644
--- a/vcl/workben/metfuzzer.cxx
+++ b/vcl/workben/metfuzzer.cxx
@@ -19,6 +19,8 @@ extern "C" {
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
+void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void 
* );
+void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -38,6 +40,8 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_LocaleDataImpl_get_implementation", 
com_sun_star_i18n_LocaleDataImpl_get_implementation },
 { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", 
com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
 { "com_sun_star_i18n_BreakIterator_get_implementation", 
com_sun_star_i18n_BreakIterator_get_implementation },
+{ "com_sun_star_i18n_NativeNumberSupplier_get_implementation", 
com_sun_star_i18n_NativeNumberSupplier_get_implementation },
+{ "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-05-27 Thread Stephan Bergmann (via logerrit)
 vcl/workben/fftester.cxx |  172 ---
 1 file changed, 44 insertions(+), 128 deletions(-)

New commits:
commit 4141febf7984c938b67f93d7c568d908d2ebfc45
Author: Stephan Bergmann 
AuthorDate: Wed May 26 13:22:20 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Thu May 27 09:00:18 2021 +0200

osl::Module::loadRelative against symbol from executable is unreliable

It turns out that c8976bdfdfa361fec9e1e5ff342094e409981fad "tdf#137208 
Assume
that dladdr provides an absolute pathname" is wrong with glibc if the 
requested
address is in the executable itself, not in a dso.  In that case, glibc
just returns argv[0] as Dl_info::dli_fname (see


"Fill in correct information if symbol is in main program"), which need not 
be
absolute.

With

> cp workdir/LinkTarget/Executable/fftester instdir/program/

that causes

> LD_LIBRARY_PATH=`pwd`/instdir/program instdir/program/fftester 
sd/qa/unit/data/cgm/pass/binary_corvette.cgm cgm

to crash (cf. comment at


"tdf#137208 Assume that dladdr provides an absolute pathname"):  The call to
osl::Module::loadRelative dlopen's instdir/program/libsdlo.so with a
relative pathname containing at least one slash, which in turn causes dladdr
with an address from libdlso.so to also return a relative pathname, which
causes osl_getModuleURLFromAddress on such an address to fail, which causes 
the
CGMPointer ctor in sd/source/filter/cgm/sdcgmfilter.cxx to set m_pPointer to
null, causing SIGSEGV when TestImportCGM dereferences it.

(Whereas e.g.

> (cd instdir/program && PATH= LD_LIBRARY_PATH=`pwd` fftester 
sd/qa/unit/data/cgm/pass/binary_corvette.cgm cgm)

would dlopen libsdlo.so with a relative pathname consisting just of a 
filename
without a slash, so dlopen would search for the library, record its absolute
pathname and return that from dladdr, and the program would have worked.)

Change-Id: Ifa23124090275a397d4a9b0672ab845af23cf4d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116194
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index c9c792cbe340..e0696977a89c 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -27,6 +27,10 @@
 DYLD_LIBRARY_PATH=`pwd`/instdir/LibreOfficeDev.app/Contents/Frameworks 
instdir/LibreOfficeDev.app/Contents/MacOS/fftester  png
   */
 
+#include 
+
+#include 
+
 #include 
 #include 
 
@@ -60,6 +64,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
@@ -71,11 +76,22 @@ using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
 using namespace cppu;
 
+typedef bool (*FFilterCall)(SvStream &rStream);
+
 #ifndef DISABLE_DYNLOADING
-extern "C" { static void thisModule() {} }
-#endif
+namespace {
 
-typedef bool (*FFilterCall)(SvStream &rStream);
+FFilterCall load(std::u16string_view library, char const * function) {
+OUString path = OUString::Concat("$LO_LIB_DIR/") + library;
+rtl::Bootstrap::expandMacros(path); //TODO: check for failure
+osl::Module aLibrary(path, SAL_LOADMODULE_LAZY);
+auto const fn = 
reinterpret_cast(aLibrary.getFunctionSymbol(function));
+aLibrary.release();
+return fn;
+}
+
+}
+#endif
 
 SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 {
@@ -241,11 +257,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 static FFilterCall pfnImport(nullptr);
 if (!pfnImport)
 {
-osl::Module aLibrary;
-aLibrary.loadRelative(&thisModule, "libmswordlo.so", 
SAL_LOADMODULE_LAZY);
-pfnImport = reinterpret_cast(
-aLibrary.getFunctionSymbol("TestImportWW8"));
-aLibrary.release();
+pfnImport = load(u"libmswordlo.so", "TestImportWW8");
 }
 SvFileStream aFileStream(out, StreamMode::READ);
 ret = static_cast((*pfnImport)(aFileStream));
@@ -255,11 +267,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 static FFilterCall pfnImport(nullptr);
 if (!pfnImport)
 {
-osl::Module aLibrary;
-aLibrary.loadRelative(&thisModule, "libmswordlo.so", 
SAL_LOADMODULE_LAZY);
-pfnImport = reinterpret_cast(
-aLibrary.getFunctionSymbol("TestImportWW6"));
-aLibrary.release();
+pfnImport = load(u"libmswordlo.so", "TestImportWW6");
 }
 SvFileStream aFileStream(out, StreamMode::READ);
 ret = static_cast((*pfnImport)(aFileStream));
@@ -269,11 +277,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)

[Libreoffice-commits] core.git: vcl/workben

2021-05-26 Thread Caolán McNamara (via logerrit)
 vcl/workben/epsfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit aad00c7279edbe8bb59394d59db28c2a8ec47d37
Author: Caolán McNamara 
AuthorDate: Wed May 26 08:46:08 2021 +0100
Commit: Caolán McNamara 
CommitDate: Wed May 26 09:50:36 2021 +0200

ofz#34602 missing a component

Change-Id: Ib2f281579af58f536f1291866c9990e8fc9e8cef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116146
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/epsfuzzer.cxx b/vcl/workben/epsfuzzer.cxx
index b2d007cb6734..66e9e380ef5c 100644
--- a/vcl/workben/epsfuzzer.cxx
+++ b/vcl/workben/epsfuzzer.cxx
@@ -20,6 +20,7 @@ void * com_sun_star_i18n_LocaleDataImpl_get_implementation( 
void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
 void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void 
* );
+void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -40,6 +41,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", 
com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
 { "com_sun_star_i18n_BreakIterator_get_implementation", 
com_sun_star_i18n_BreakIterator_get_implementation },
 { "com_sun_star_i18n_NativeNumberSupplier_get_implementation", 
com_sun_star_i18n_NativeNumberSupplier_get_implementation },
+{ "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-05-25 Thread Caolán McNamara (via logerrit)
 vcl/workben/epsfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 60d216ed1a5ad74a93edfb288206ce9ae20380a4
Author: Caolán McNamara 
AuthorDate: Tue May 25 20:06:39 2021 +0100
Commit: Caolán McNamara 
CommitDate: Tue May 25 21:08:01 2021 +0200

ofz#34602 missing a component

Change-Id: Id069c3718a632046fa9df59ee145e0c904aaf718
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116129
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/epsfuzzer.cxx b/vcl/workben/epsfuzzer.cxx
index 1de2c63afe7c..b2d007cb6734 100644
--- a/vcl/workben/epsfuzzer.cxx
+++ b/vcl/workben/epsfuzzer.cxx
@@ -19,6 +19,7 @@ extern "C" {
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * );
+void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void 
* );
 }
 
 const lib_to_factory_mapping *
@@ -38,6 +39,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_LocaleDataImpl_get_implementation", 
com_sun_star_i18n_LocaleDataImpl_get_implementation },
 { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", 
com_sun_star_i18n_BreakIterator_Unicode_get_implementation },
 { "com_sun_star_i18n_BreakIterator_get_implementation", 
com_sun_star_i18n_BreakIterator_get_implementation },
+{ "com_sun_star_i18n_NativeNumberSupplier_get_implementation", 
com_sun_star_i18n_NativeNumberSupplier_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-04-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |1 -
 vcl/workben/fftester.cxx |1 -
 2 files changed, 2 deletions(-)

New commits:
commit 768f09cfe416340839ea66081c805527bf6c7289
Author: Caolán McNamara 
AuthorDate: Mon Apr 5 16:59:18 2021 +0100
Commit: Caolán McNamara 
CommitDate: Mon Apr 5 18:19:16 2021 +0200

SAL_WMF_COMPLEXCLIP_VIA_REGION is gone now

since...

commit aa17ea3d36b8f1ea8cd3d2fb215e80051547439d
Date:   Fri Apr 2 16:06:11 2021 +0200

tdf#37281 tdf#45820 tdf#48916 tdf#55058 EMF Implement complex clipping

Change-Id: I88c4739a079e36a95ba8eb2a19faedbb9624
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113611
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 6a5aa079a2a3..fb8f874a0f74 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -91,7 +91,6 @@ void CommonInitialize(int *argc, char ***argv)
 setenv("JPEGMEM", "768M", 1);
 setenv("SC_MAX_MATRIX_ELEMENTS", "6000", 1);
 setenv("SC_NO_THREADED_CALCULATION", "1", 1);
-setenv("SAL_WMF_COMPLEXCLIP_VIA_REGION", "1", 1);
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
 setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
 setenv("SAL_NO_FONT_LOOKUP", "1", 1);
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 7ac5a3b234b6..c9c792cbe340 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -92,7 +92,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 setenv("JPEGMEM", "768M", 1);
 setenv("SC_MAX_MATRIX_ELEMENTS", "6000", 1);
 setenv("SC_NO_THREADED_CALCULATION", "1", 1);
-setenv("SAL_WMF_COMPLEXCLIP_VIA_REGION", "1", 1);
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
 setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
 setenv("SAL_NO_FONT_LOOKUP", "1", 1);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-04-01 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.options   |2 --
 vcl/workben/diffuzzer.options   |2 --
 vcl/workben/docxfuzzer.options  |2 --
 vcl/workben/fodpfuzzer.options  |2 --
 vcl/workben/fodsfuzzer.options  |2 --
 vcl/workben/fodtfuzzer.options  |2 --
 vcl/workben/metfuzzer.options   |2 --
 vcl/workben/mmlfuzzer.options   |2 --
 vcl/workben/pptxfuzzer.options  |2 --
 vcl/workben/qpwfuzzer.options   |2 --
 vcl/workben/rtffuzzer.options   |2 --
 vcl/workben/scrtffuzzer.options |2 --
 vcl/workben/slkfuzzer.options   |2 --
 vcl/workben/ww2fuzzer.options   |2 --
 vcl/workben/ww6fuzzer.options   |2 --
 vcl/workben/ww8fuzzer.options   |2 --
 vcl/workben/xlsfuzzer.options   |2 --
 vcl/workben/xlsxfuzzer.options  |2 --
 18 files changed, 36 deletions(-)

New commits:
commit f327cbd98f6de8a8139d22076e276ed9ca737bd6
Author: Caolán McNamara 
AuthorDate: Thu Apr 1 12:31:24 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Apr 1 15:24:54 2021 +0200

drop AFL_DRIVER_DONT_DEFER from fuzzing .options

now that we drop solarmutex before the fork

Change-Id: I8bd687aa21b1d42fbfb2ba646d5c79cc39fde36f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113451
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.options b/vcl/workben/cgmfuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/cgmfuzzer.options
+++ b/vcl/workben/cgmfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/diffuzzer.options b/vcl/workben/diffuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/diffuzzer.options
+++ b/vcl/workben/diffuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/docxfuzzer.options b/vcl/workben/docxfuzzer.options
index db9a3e8c64ba..e8c2b812b01d 100644
--- a/vcl/workben/docxfuzzer.options
+++ b/vcl/workben/docxfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 98304
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodpfuzzer.options b/vcl/workben/fodpfuzzer.options
index 120b6953bfdb..76d308c39d0c 100644
--- a/vcl/workben/fodpfuzzer.options
+++ b/vcl/workben/fodpfuzzer.options
@@ -1,5 +1,3 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodsfuzzer.options b/vcl/workben/fodsfuzzer.options
index 120b6953bfdb..76d308c39d0c 100644
--- a/vcl/workben/fodsfuzzer.options
+++ b/vcl/workben/fodsfuzzer.options
@@ -1,5 +1,3 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodtfuzzer.options b/vcl/workben/fodtfuzzer.options
index 120b6953bfdb..76d308c39d0c 100644
--- a/vcl/workben/fodtfuzzer.options
+++ b/vcl/workben/fodtfuzzer.options
@@ -1,5 +1,3 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/metfuzzer.options b/vcl/workben/metfuzzer.options
index 84ac4eb4ee82..bf169a74ba63 100644
--- a/vcl/workben/metfuzzer.options
+++ b/vcl/workben/metfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 49152
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/mmlfuzzer.options b/vcl/workben/mmlfuzzer.options
index 120b6953bfdb..76d308c39d0c 100644
--- a/vcl/workben/mmlfuzzer.options
+++ b/vcl/workben/mmlfuzzer.options
@@ -1,5 +1,3 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/pptxfuzzer.options b/vcl/workben/pptxfuzzer.options
index db9a3e8c64ba..e8c2b812b01d 100644
--- a/vcl/workben/pptxfuzzer.options
+++ b/vcl/workben/pptxfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 98304
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/qpwfuzzer.options b/vcl/workben/qpwfuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/qpwfuzzer.options
+++ b/vcl/workben/qpwfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/rtffuzzer.options b/vcl/workben/rtffuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/rtffuzzer.options
+++ b/vcl/workben/rtffuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/slkfuzzer.options b/vcl/workben/slkfuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/slkfuzzer.options
+++ b/vcl/workben/slkfuzzer.options
@@ -1,4 +1,2 @@
 [libfuzzer]
 max_len = 65536
-[env]
-AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/ww2fuzzer.options b/vcl/workben/ww2fuzzer.options
index d851ad58c377..678d526b1ea9 100644
--- a/vcl/workben/ww2fuzzer.options
+++

[Libreoffice-commits] core.git: vcl/workben

2021-04-01 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 5f762b34bb1f93aeb409060d74b8e38ab75a8732
Author: Caolán McNamara 
AuthorDate: Thu Apr 1 12:29:13 2021 +0100
Commit: Caolán McNamara 
CommitDate: Thu Apr 1 13:38:19 2021 +0200

ReleaseSolarMutex before possible afl fork

Change-Id: I2b5dfed215cb07454319b7e20068cbc8fba39c75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113450
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index aa544e394549..6a5aa079a2a3 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -128,6 +128,14 @@ void CommonInitialize(int *argc, char ***argv)
 psp::PrintFontManager::get();
 //get the printer info
 Printer::GetPrinterQueues();
+
+//https://github.com/google/oss-fuzz/issues/1449
+//https://github.com/google/oss-fuzz/issues/5441
+//release the solarmutex so a fork can acquire it which should
+//allow these fuzzers to work without AFL_DRIVER_DONT_DEFER set
+//removing the confusion of #5441 and the need for AFL_DRIVER_DONT_DEFER
+//in .options files
+Application::ReleaseSolarMutex();
 }
 
 void TypicalFuzzerInitialize(int *argc, char ***argv)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-03-28 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodpfuzzer.cxx |   25 +
 vcl/workben/pptxfuzzer.cxx |   10 ++
 2 files changed, 35 insertions(+)

New commits:
commit ecb3be65817c018800355310ba8a88c1227c86e4
Author: Caolán McNamara 
AuthorDate: Sun Mar 28 20:29:09 2021 +0100
Commit: Caolán McNamara 
CommitDate: Sun Mar 28 21:31:49 2021 +0200

oss-fuzz: stub out new entry points

needed since...

commit 3dba2e4a325fa0fdfbbedb0ffc1fcf678bfcbc94
Date:   Thu Mar 25 12:23:43 2021 +0200

Include the pdfimport library constructor in the mobile apps if enabled

Change-Id: I758d60049af6c3e98af5890185ddb4f77edbe8fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113262
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fodpfuzzer.cxx b/vcl/workben/fodpfuzzer.cxx
index 603849742783..b51efac1c631 100644
--- a/vcl/workben/fodpfuzzer.cxx
+++ b/vcl/workben/fodpfuzzer.cxx
@@ -29,6 +29,31 @@ extern "C" void* 
com_sun_star_comp_Draw_VisioImportFilter_get_implementation()
 return nullptr;
 }
 
+extern "C" void* sdext_PDFIHybridAdaptor_get_implementation()
+{
+return nullptr;
+}
+
+extern "C" void* sdext_PDFIRawAdaptor_Writer_get_implementation()
+{
+return nullptr;
+}
+
+extern "C" void* sdext_PDFIRawAdaptor_Draw_get_implementation()
+{
+return nullptr;
+}
+
+extern "C" void* sdext_PDFIRawAdaptor_Impress_get_implementation()
+{
+return nullptr;
+}
+
+extern "C" void* sdext_PDFDetector_get_implementation()
+{
+return nullptr;
+}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
diff --git a/vcl/workben/pptxfuzzer.cxx b/vcl/workben/pptxfuzzer.cxx
index 976b53d9ba1c..33c6952ec860 100644
--- a/vcl/workben/pptxfuzzer.cxx
+++ b/vcl/workben/pptxfuzzer.cxx
@@ -23,6 +23,16 @@ extern "C" void* SdCreateDialogFactory() { return nullptr; }
 
 extern "C" void* com_sun_star_comp_Draw_VisioImportFilter_get_implementation() 
{ return nullptr; }
 
+extern "C" void* sdext_PDFIHybridAdaptor_get_implementation() { return 
nullptr; }
+
+extern "C" void* sdext_PDFIRawAdaptor_Writer_get_implementation() { return 
nullptr; }
+
+extern "C" void* sdext_PDFIRawAdaptor_Draw_get_implementation() { return 
nullptr; }
+
+extern "C" void* sdext_PDFIRawAdaptor_Impress_get_implementation() { return 
nullptr; }
+
+extern "C" void* sdext_PDFDetector_get_implementation() { return nullptr; }
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-03-23 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |   32 +++-
 1 file changed, 27 insertions(+), 5 deletions(-)

New commits:
commit 14de0fdeb7f84097650d0616bc850f5391642fe6
Author: Tor Lillqvist 
AuthorDate: Tue Mar 23 16:04:12 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Tue Mar 23 16:10:41 2021 +0200

Add -a option to dump all pasteboard types plus some minor cleanup

Change-Id: I1cbc11eaad16a7af9b8ff665c4c35b417b1860bc

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
index 279d3e6cc595..6a28430831b4 100644
--- a/vcl/workben/pasteboard.mm
+++ b/vcl/workben/pasteboard.mm
@@ -20,10 +20,13 @@
 static void usage()
 {
 std::cout << "Usage: pasteboard\n"
- "--List the types on the pasteboard and in each 
pasteboard item.\n"
+ "  List the types on the pasteboard and in each 
pasteboard item.\n"
+ "   pasteboard -a\n"
+ "  Output the data for all types to stdout. Note: 
output will\n"
+ "  in many cases be binary. The different types are 
separated by a textual header.\n"
  "   pasteboard -t type\n"
- "--Output the data for the type in question to 
stdout. Note: output will "
- "in many cases be binary.\n";
+ "  Output the data for the type in question to 
stdout. Note: output will\n"
+ "  in many cases be binary.\n";
 }
 
 int main(int argc, char** argv)
@@ -32,16 +35,19 @@ int main(int argc, char** argv)
 
 int ch;
 
-while ((ch = getopt(argc, argv, "t:")) != -1)
+while ((ch = getopt(argc, argv, "at:")) != -1)
 {
 switch (ch)
 {
+case 'a':
+requestedType = @"*";
+break;
 case 't':
 requestedType = [NSString stringWithUTF8String:optarg];
 break;
 case '?':
 usage();
-break;
+return 0;
 }
 }
 
@@ -56,6 +62,22 @@ int main(int argc, char** argv)
 
 NSPasteboard* pb = [NSPasteboard generalPasteboard];
 
+if ([requestedType isEqualToString:@"*"])
+{
+NSArray* types = [pb types];
+for (unsigned i = 0; i < [types count]; i++)
+{
+NSData* data = [pb dataForType:types[i]];
+std::cout << i << ": " << [types[i] UTF8String] << ": " << 
std::to_string([data length]) << " bytes:\n";
+if (data != nil)
+{
+std::cout.write((const char*)[data bytes], [data length]);
+std::cout << "\n";
+}
+}
+return 0;
+}
+
 if ([requestedType length] > 0)
 {
 NSData* data = [pb dataForType:requestedType];
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-03-09 Thread Noel Grandin (via logerrit)
 vcl/workben/fftester.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit 9d8accf03984a64a4105826e55b221962628eb93
Author: Noel Grandin 
AuthorDate: Tue Mar 9 18:53:15 2021 +0200
Commit: Noel Grandin 
CommitDate: Wed Mar 10 08:52:25 2021 +0100

add macOS instructions

Change-Id: If8d15a2ad9b1916393233164f3d2752780a0a9a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112232
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 5dafd12be683..640bd1f54832 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -21,6 +21,10 @@
 make
 cp workdir/LinkTarget/Executable/fftester instdir/program
 LD_LIBRARY_PATH=`pwd`/instdir/program instdir/program/fftester  
png
+or on macOS
+make
+cp workdir/LinkTarget/Executable/fftester 
instdir/LibreOfficeDev.app/Contents/MacOS/
+DYLD_LIBRARY_PATH=`pwd`/instdir/LibreOfficeDev.app/Contents/Frameworks 
instdir/LibreOfficeDev.app/Contents/MacOS/fftester  png
   */
 
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-01-15 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0e3e4b89d752221f795f793d0baf5610c31c6cd3
Author: Tor Lillqvist 
AuthorDate: Fri Jan 15 18:17:54 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Fri Jan 15 17:42:45 2021 +0100

Show error message if data for a type is not available

Change-Id: If60a26faa89c2a633a4ac7e2f064f7c144ff2000
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109383
Tested-by: Tor Lillqvist 
Reviewed-by: Tor Lillqvist 

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
index 4b003358f8c5..279d3e6cc595 100644
--- a/vcl/workben/pasteboard.mm
+++ b/vcl/workben/pasteboard.mm
@@ -60,7 +60,10 @@ int main(int argc, char** argv)
 {
 NSData* data = [pb dataForType:requestedType];
 
-std::cout.write((const char*)[data bytes], [data length]);
+if (data == nil)
+std::cerr << "No data for " << [requestedType UTF8String] << 
std::endl;
+else
+std::cout.write((const char*)[data bytes], [data length]);
 
 return 0;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-01-14 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |   26 +-
 1 file changed, 13 insertions(+), 13 deletions(-)

New commits:
commit 5f787d7f9d9d28df6090554c66b9934d0a4904c1
Author: Tor Lillqvist 
AuthorDate: Thu Jan 14 21:50:14 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Thu Jan 14 21:40:46 2021 +0100

Run through clang-format and fix a typo

Change-Id: I24e5fd839fa9ab7d7496180c6d6fdaa89774c94a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109312
Tested-by: Tor Lillqvist 
Reviewed-by: Tor Lillqvist 

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
index 3d523afeb383..4b003358f8c5 100644
--- a/vcl/workben/pasteboard.mm
+++ b/vcl/workben/pasteboard.mm
@@ -19,11 +19,11 @@
 
 static void usage()
 {
-std::cout <<
-"Usage: pastebord\n"
-"--List the types on the pasteboard and in each pasteboard 
item.\n"
-"   pasteboard -t type\n"
-"--Output the data for the type in question to stdout. Note: 
output will in many cases be binary.\n";
+std::cout << "Usage: pasteboard\n"
+ "--List the types on the pasteboard and in each 
pasteboard item.\n"
+ "   pasteboard -t type\n"
+ "--Output the data for the type in question to 
stdout. Note: output will "
+ "in many cases be binary.\n";
 }
 
 int main(int argc, char** argv)
@@ -36,12 +36,12 @@ int main(int argc, char** argv)
 {
 switch (ch)
 {
-case 't':
-requestedType = [NSString stringWithUTF8String:optarg];
-break;
-case '?':
-usage();
-break;
+case 't':
+requestedType = [NSString stringWithUTF8String:optarg];
+break;
+case '?':
+usage();
+break;
 }
 }
 
@@ -58,9 +58,9 @@ int main(int argc, char** argv)
 
 if ([requestedType length] > 0)
 {
-NSData *data = [pb dataForType:requestedType];
+NSData* data = [pb dataForType:requestedType];
 
-std::cout.write((const char *)[data bytes], [data length]);
+std::cout.write((const char*)[data bytes], [data length]);
 
 return 0;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-01-14 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |   46 ++
 1 file changed, 46 insertions(+)

New commits:
commit 1dacb8cb94162310345b7f63f7ceda35a7152d0a
Author: Tor Lillqvist 
AuthorDate: Thu Jan 14 16:39:37 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Thu Jan 14 15:49:49 2021 +0100

Add an option to dump pasteboard data for a type to stdout

Change-Id: Iafa24799c5c18abef93f032a2f637c39f4a9cf5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109296
Tested-by: Tor Lillqvist 
Reviewed-by: Tor Lillqvist 

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
index b38b19387602..3d523afeb383 100644
--- a/vcl/workben/pasteboard.mm
+++ b/vcl/workben/pasteboard.mm
@@ -12,13 +12,59 @@
 
 // Build with: clang++ -Wall -o pasteboard vcl/workben/pasteboard.mm 
-framework AppKit
 
+#import 
+
 #import 
 #import 
 
+static void usage()
+{
+std::cout <<
+"Usage: pastebord\n"
+"--List the types on the pasteboard and in each pasteboard 
item.\n"
+"   pasteboard -t type\n"
+"--Output the data for the type in question to stdout. Note: 
output will in many cases be binary.\n";
+}
+
 int main(int argc, char** argv)
 {
+NSString* requestedType;
+
+int ch;
+
+while ((ch = getopt(argc, argv, "t:")) != -1)
+{
+switch (ch)
+{
+case 't':
+requestedType = [NSString stringWithUTF8String:optarg];
+break;
+case '?':
+usage();
+break;
+}
+}
+
+argc -= optind;
+argv += optind;
+
+if (argc > 0)
+{
+usage();
+return 1;
+}
+
 NSPasteboard* pb = [NSPasteboard generalPasteboard];
 
+if ([requestedType length] > 0)
+{
+NSData *data = [pb dataForType:requestedType];
+
+std::cout.write((const char *)[data bytes], [data length]);
+
+return 0;
+}
+
 {
 NSArray* types = [pb types];
 std::cout << "Types directly on pasteboard:\n";
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-01-14 Thread Tor Lillqvist (via logerrit)
 vcl/workben/pasteboard.mm |   61 ++
 1 file changed, 61 insertions(+)

New commits:
commit feb6a4b2c52edcf1da198c98e96fb11fe88deb66
Author: Tor Lillqvist 
AuthorDate: Thu Jan 14 13:18:22 2021 +0200
Commit: Tor Lillqvist 
CommitDate: Thu Jan 14 12:27:24 2021 +0100

Add a tiny program to list the contents of the macOS pasteboard

Change-Id: I78933f18a80140e9ccacabd6243716205b530c43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109271
Tested-by: Tor Lillqvist 
Reviewed-by: Tor Lillqvist 

diff --git a/vcl/workben/pasteboard.mm b/vcl/workben/pasteboard.mm
new file mode 100644
index ..b38b19387602
--- /dev/null
+++ b/vcl/workben/pasteboard.mm
@@ -0,0 +1,61 @@
+// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; 
fill-column: 100 -*-
+
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+// List the contents of the macOS pasteboard
+
+// Build with: clang++ -Wall -o pasteboard vcl/workben/pasteboard.mm 
-framework AppKit
+
+#import 
+#import 
+
+int main(int argc, char** argv)
+{
+NSPasteboard* pb = [NSPasteboard generalPasteboard];
+
+{
+NSArray* types = [pb types];
+std::cout << "Types directly on pasteboard:\n";
+for (unsigned i = 0; i < [types count]; i++)
+{
+std::cout << "  " << i << ": " << [types[i] UTF8String] << "\n";
+}
+}
+
+NSArray* items = [pb pasteboardItems];
+std::cout << "New-style items on pasteboard:\n";
+
+for (unsigned i = 0; i < [items count]; i++)
+{
+std::cout << "  Item " << i << ", types:\n";
+NSArray* types = [items[i] types];
+for (unsigned j = 0; j < [types count]; j++)
+{
+std::cout << "" << j << ": " << [types[j] UTF8String];
+
+if ([types[j] isEqualToString:(NSString*)kUTTypePlainText] ||
+[types[j] isEqualToString:(NSString*)kUTTypeUTF8PlainText] ||
+[types[j] isEqualToString:(NSString*)kUTTypeText] ||
+[types[j] isEqualToString:(NSString*)kUTTypeHTML] ||
+[types[j] isEqualToString:(NSString*)kUTTypeRTF] ||
+[types[j] 
isEqualToString:(NSString*)kUTTypeUTF16ExternalPlainText])
+{
+NSString* string = [items[i] 
stringForType:NSPasteboardTypeString];
+if ([string length] > 500)
+string = [[string substringToIndex:501] 
stringByAppendingString:@"..."];
+std::cout << ": '" << [string UTF8String] << "'";
+}
+std::cout << "\n";
+}
+}
+
+return 0;
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2021-01-07 Thread Caolán McNamara (via logerrit)
 vcl/workben/fftester.cxx  |   12 ++--
 vcl/workben/tiffuzzer.cxx |5 ++---
 2 files changed, 4 insertions(+), 13 deletions(-)

New commits:
commit 57a59ad02d2e5e89724c0d2e60cf6e7d99fba005
Author: Caolán McNamara 
AuthorDate: Wed Jan 6 19:03:03 2021 +
Commit: Caolán McNamara 
CommitDate: Thu Jan 7 10:58:42 2021 +0100

fix oss-fuzz build and fftester

since...

commit 94d34e53ac9eb41cba96a56bf715d4b02794a12a
Date:   Tue Dec 29 22:32:01 2020 +0900

Move TIFF reader and writer from filter module into VCL

Change-Id: I2dc5da100071f51eaceaf1f8be4a191f6827668c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108891
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 66b51a5d38e1..42c2447564e7 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -308,18 +309,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 }
 else if (strcmp(argv[2], "tif") == 0)
 {
-static PFilterCall pfnImport(nullptr);
-if (!pfnImport)
-{
-osl::Module aLibrary;
-aLibrary.loadRelative(&thisModule, "libgielo.so");
-pfnImport = reinterpret_cast(
-aLibrary.getFunctionSymbol("itiGraphicImport"));
-aLibrary.release();
-}
 Graphic aGraphic;
 SvFileStream aFileStream(out, StreamMode::READ);
-ret = static_cast((*pfnImport)(aFileStream, aGraphic, 
nullptr));
+ret = static_cast(ImportTiffGraphicImport(aFileStream, 
aGraphic));
 }
 else if ((strcmp(argv[2], "doc") == 0) || (strcmp(argv[2], "ww8") == 
0))
 {
diff --git a/vcl/workben/tiffuzzer.cxx b/vcl/workben/tiffuzzer.cxx
index 2ca83d7b05d8..14dcf42ecf89 100644
--- a/vcl/workben/tiffuzzer.cxx
+++ b/vcl/workben/tiffuzzer.cxx
@@ -9,6 +9,7 @@
 
 #include 
 #include 
+#include 
 #include "commonfuzzer.hxx"
 
 #include 
@@ -39,8 +40,6 @@ extern "C" void* lo_get_custom_widget_func(const char*)
 return nullptr;
 }
 
-extern "C" bool itiGraphicImport(SvStream& rStream, Graphic& rGraphic, 
FilterConfigItem* pConfigItem);
-
 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
 {
 TypicalFuzzerInitialize(argc, argv);
@@ -53,7 +52,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, 
size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, 
StreamMode::READ);
 Graphic aGraphic;
-(void)itiGraphicImport(aStream, aGraphic, nullptr);
+(void)ImportTiffGraphicImport(aStream, aGraphic);
 }
 catch (...)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-12-14 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit acf4c5bc649624823d84e01d57a9af78ff3084ae
Author: Caolán McNamara 
AuthorDate: Mon Dec 14 20:57:38 2020 +
Commit: Caolán McNamara 
CommitDate: Mon Dec 14 22:01:20 2020 +0100

ofz#28630 Fuzzing build failure

Step #4: vcl/workben/commonfuzzer.hxx:70:28: error: no matching function 
for call to 'OUStringToOString'
Step #4: aBuffer.append(OUStringToOString(sExecDir + 
getExecutableName(), osl_getThreadTextEncoding())).append(".fonts");
Step #4:^
Step #4: include/rtl/ustring.hxx:3587:16: note: candidate function not 
viable: no known conversion from 'typename 
std::enable_if_t::allowOUStringConcat && 
ToStringHelper::allowOUStringConcat, OUStringConcat>' (aka 'rtl::OUStringConcat') to 
'std::u16string_view' (aka 'basic_string_view') for 1st argument
Step #4: inline OString OUStringToOString( std::u16string_view rUnicode,

dunno what the preferred concatenation scheme is these days

Change-Id: I7390d5b4a23a76d7cfbc75c90ea75df4ee39457f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107731
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 57843998d97a..aa544e394549 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -67,7 +67,8 @@ namespace
 osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
 
 OStringBuffer aBuffer("\n");
-aBuffer.append(OUStringToOString(sExecDir + getExecutableName(), 
osl_getThreadTextEncoding())).append(".fonts");
+aBuffer.append(OUStringToOString(sExecDir, 
osl_getThreadTextEncoding()))
+   .append(OUStringToOString(getExecutableName(), 
osl_getThreadTextEncoding())).append(".fonts");
 
aBuffer.append("/tmp/cache/fontconfig");
 OString aConf = aBuffer.makeStringAndClear();
 sal_uInt64 aBytesWritten;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-12-13 Thread Caolán McNamara (via logerrit)
 vcl/workben/commonfuzzer.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 22f4dd588c6861da9156a8c27f0bb76f42d5a784
Author: Caolán McNamara 
AuthorDate: Sun Dec 13 19:12:25 2020 +
Commit: Caolán McNamara 
CommitDate: Sun Dec 13 21:09:38 2020 +0100

ofz#28630 Fuzzing build failure

Change-Id: I9ec5ce0755cc8a7fd7dfd4c835907179951719c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107662
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 85808c346f78..57843998d97a 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -67,7 +67,7 @@ namespace
 osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
 
 OStringBuffer aBuffer("\n");
-aBuffer.append(OUStringToOString(sExecDir + getExecutableName() + 
".fonts", osl_getThreadTextEncoding()));
+aBuffer.append(OUStringToOString(sExecDir + getExecutableName(), 
osl_getThreadTextEncoding())).append(".fonts");
 
aBuffer.append("/tmp/cache/fontconfig");
 OString aConf = aBuffer.makeStringAndClear();
 sal_uInt64 aBytesWritten;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-08-31 Thread Caolán McNamara (via logerrit)
 vcl/workben/ww2fuzzer.cxx |4 
 vcl/workben/ww6fuzzer.cxx |2 ++
 vcl/workben/ww8fuzzer.cxx |4 
 3 files changed, 10 insertions(+)

New commits:
commit 828914a94fe93d5b300bda1d23a049ae92c159e1
Author: Caolán McNamara 
AuthorDate: Mon Aug 31 16:41:47 2020 +0100
Commit: Caolán McNamara 
CommitDate: Mon Aug 31 18:06:26 2020 +0200

ofz#25325 missing constructors

Change-Id: I87f3c7e963eba77f9e0955c46e514aec64849e30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101753
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/ww2fuzzer.cxx b/vcl/workben/ww2fuzzer.cxx
index bd65223b5ba6..5ffe0445c3fb 100644
--- a/vcl/workben/ww2fuzzer.cxx
+++ b/vcl/workben/ww2fuzzer.cxx
@@ -33,6 +33,8 @@ void * com_sun_star_i18n_Transliteration_get_implementation( 
void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
 void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation(void*, void*);
+void * i18npool_Calendar_gregorian_get_implementation( void *, void * );
 void * unoxml_rdfRepository_get_implementation( void *, void * );
 void * unoxml_CURI_get_implementation( void *, void * );
 void * unoxml_CLiteral_get_implementation( void *, void * );
@@ -79,6 +81,8 @@ lo_get_constructor_map(void)
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
 { "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_comp_uri_UriReferenceFactory_get_implementation},
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation},
+{ "i18npool_Calendar_gregorian_get_implementation", 
i18npool_Calendar_gregorian_get_implementation},
 { "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
 { "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
 { "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx
index 341bf26447d9..a17be9105a06 100644
--- a/vcl/workben/ww6fuzzer.cxx
+++ b/vcl/workben/ww6fuzzer.cxx
@@ -35,6 +35,7 @@ void * 
com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, vo
 void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
 void * i18npool_CalendarImpl_get_implementation(void*, void*);
+void * i18npool_Calendar_gregorian_get_implementation( void *, void * );
 void * unoxml_rdfRepository_get_implementation( void *, void * );
 void * unoxml_CURI_get_implementation( void *, void * );
 void * unoxml_CLiteral_get_implementation( void *, void * );
@@ -83,6 +84,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_comp_uri_UriReferenceFactory_get_implementation},
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
 { "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation },
+{ "i18npool_Calendar_gregorian_get_implementation", 
i18npool_Calendar_gregorian_get_implementation},
 { "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
 { "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
 { "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
diff --git a/vcl/workben/ww8fuzzer.cxx b/vcl/workben/ww8fuzzer.cxx
index 27391f18a889..113e798610f3 100644
--- a/vcl/workben/ww8fuzzer.cxx
+++ b/vcl/workben/ww8fuzzer.cxx
@@ -34,6 +34,8 @@ void * com_sun_star_i18n_Transliteration_get_implementation( 
void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
 void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation(void*, void*);
+void * i18npool_Calendar_gregorian_get_implementation( void *, void * );
 void * unoxml_rdfRepository_get_implementation( void *, void * );
 void * unoxml_CURI_get_implementation( void *, void * );
 void * unoxml_CLiteral_get_implementation( void *, void * );
@@ -81,6 +83,8 @@ lo_get_constructor_map(void)
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
 { "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_com

[Libreoffice-commits] core.git: vcl/workben

2020-08-29 Thread Caolán McNamara (via logerrit)
 vcl/workben/ww6fuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c7be04f51323417cb57ae6d0ac3c3df78698dd0b
Author: Caolán McNamara 
AuthorDate: Sat Aug 29 10:22:52 2020 +0100
Commit: Caolán McNamara 
CommitDate: Sat Aug 29 11:24:28 2020 +0200

ofz#25275 missing constructor

Change-Id: I3dee6f66d08944b8036ddf0201b8c8110e77b910
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101634
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx
index 1dbb99c59d2f..341bf26447d9 100644
--- a/vcl/workben/ww6fuzzer.cxx
+++ b/vcl/workben/ww6fuzzer.cxx
@@ -34,6 +34,7 @@ void * com_sun_star_i18n_Transliteration_get_implementation( 
void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
 void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation(void*, void*);
 void * unoxml_rdfRepository_get_implementation( void *, void * );
 void * unoxml_CURI_get_implementation( void *, void * );
 void * unoxml_CLiteral_get_implementation( void *, void * );
@@ -81,6 +82,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
 { "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_comp_uri_UriReferenceFactory_get_implementation},
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation },
 { "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
 { "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
 { "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-08-21 Thread Caolán McNamara (via logerrit)
 vcl/workben/scrtffuzzer.cxx |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ec9d6f6f5e2c3b6cd0350867d527e95e939557c9
Author: Caolán McNamara 
AuthorDate: Fri Aug 21 18:38:15 2020 +0100
Commit: Caolán McNamara 
CommitDate: Fri Aug 21 19:41:46 2020 +0200

ofz#25117 missing constructor

Change-Id: I9bf7181d6e153cb0e6ab21b30472f8a81d4a3fa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101177
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/scrtffuzzer.cxx b/vcl/workben/scrtffuzzer.cxx
index 779519f34336..56c0cddd7ade 100644
--- a/vcl/workben/scrtffuzzer.cxx
+++ b/vcl/workben/scrtffuzzer.cxx
@@ -25,6 +25,7 @@ void* 
com_sun_star_i18n_CharacterClassification_get_implementation(void*, void*)
 void* com_sun_star_i18n_NativeNumberSupplier_get_implementation(void*, void*);
 void* com_sun_star_i18n_NumberFormatCodeMapper_get_implementation(void*, 
void*);
 void* com_sun_star_i18n_Transliteration_get_implementation(void*, void*);
+void* i18npool_CalendarImpl_get_implementation(void*, void*);
 }
 
 const lib_to_factory_mapping* lo_get_factory_map(void)
@@ -56,6 +57,8 @@ const lib_to_constructor_mapping* lo_get_constructor_map(void)
   com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation",
   com_sun_star_i18n_Transliteration_get_implementation },
+{ "i18npool_CalendarImpl_get_implementation",
+  i18npool_CalendarImpl_get_implementation },
 { 0, 0 } };
 
 return map;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-08-18 Thread Caolán McNamara (via logerrit)
 vcl/workben/diffuzzer.cxx |3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ed64a526fd7205aa939781dd412784606c904505
Author: Caolán McNamara 
AuthorDate: Tue Aug 18 11:25:24 2020 +0100
Commit: Caolán McNamara 
CommitDate: Tue Aug 18 12:26:22 2020 +0200

ofz#24942 missing constructor

Change-Id: I481845a3d64cb2ec0749c9a113db09234dc99143
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100912
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/diffuzzer.cxx b/vcl/workben/diffuzzer.cxx
index c9bc77a16e99..60d1190fc220 100644
--- a/vcl/workben/diffuzzer.cxx
+++ b/vcl/workben/diffuzzer.cxx
@@ -26,6 +26,7 @@ void* com_sun_star_i18n_Collator_get_implementation(void*, 
void*);
 void* com_sun_star_i18n_NativeNumberSupplier_get_implementation(void*, void*);
 void* com_sun_star_i18n_NumberFormatCodeMapper_get_implementation(void*, 
void*);
 void* com_sun_star_i18n_Transliteration_get_implementation(void*, void*);
+void* i18npool_CalendarImpl_get_implementation(void*, void*);
 }
 
 const lib_to_factory_mapping* lo_get_factory_map(void)
@@ -59,6 +60,8 @@ const lib_to_constructor_mapping* lo_get_constructor_map(void)
   com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation",
   com_sun_star_i18n_Transliteration_get_implementation },
+{ "i18npool_CalendarImpl_get_implementation",
+  i18npool_CalendarImpl_get_implementation },
 { 0, 0 } };
 
 return map;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-08-12 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |   14 --
 vcl/workben/pptfuzzer.cxx |   14 --
 vcl/workben/ww2fuzzer.cxx |   14 --
 vcl/workben/ww6fuzzer.cxx |   14 --
 vcl/workben/ww8fuzzer.cxx |   14 --
 5 files changed, 60 insertions(+), 10 deletions(-)

New commits:
commit bb098efaded60118aa25ccd23083955041ba9cea
Author: Caolán McNamara 
AuthorDate: Wed Aug 12 19:52:51 2020 +0100
Commit: Caolán McNamara 
CommitDate: Wed Aug 12 20:53:43 2020 +0200

ucb_component_getFactory no longer exists

Change-Id: I9c937d5fa0e235de114d8f3962eba0ba3bcb33ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100626
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index 0984b70c2233..7d36f2acc7a0 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -16,7 +16,6 @@
 
 extern "C" {
 void * i18npool_component_getFactory( const char* , void* , void* );
-void * ucb_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
@@ -69,6 +68,12 @@ void * 
com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation( void *, vo
 void * com_sun_star_comp_sd_InsertSlideController_get_implementation( void *, 
void * );
 void * com_sun_star_comp_sd_SlideLayoutController_get_implementation( void *, 
void * );
 void * com_sun_star_comp_sd_DisplayModeController_get_implementation( void *, 
void * );
+void * ucb_UcbCommandEnvironment_get_implementation( void *, void * );
+void * ucb_UcbContentProviderProxyFactory_get_implementation( void *, void * );
+void * ucb_UcbPropertiesManager_get_implementation( void *, void * );
+void * ucb_UcbStore_get_implementation( void *, void * );
+void * ucb_UniversalContentBroker_get_implementation( void *, void * );
+void * ucb_OFileAccess_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -76,7 +81,6 @@ lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
 { "libi18npoollo.a", i18npool_component_getFactory },
-{ "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
 };
 
@@ -138,6 +142,12 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_sd_InsertSlideController_get_implementation", 
com_sun_star_comp_sd_InsertSlideController_get_implementation },
 { "com_sun_star_comp_sd_SlideLayoutController_get_implementation", 
com_sun_star_comp_sd_SlideLayoutController_get_implementation },
 { "com_sun_star_comp_sd_DisplayModeController_get_implementation", 
com_sun_star_comp_sd_DisplayModeController_get_implementation },
+{ "ucb_UcbCommandEnvironment_get_implementation", 
ucb_UcbCommandEnvironment_get_implementation, },
+{ "ucb_UcbContentProviderProxyFactory_get_implementation", 
ucb_UcbContentProviderProxyFactory_get_implementation },
+{ "ucb_UcbPropertiesManager_get_implementation", 
ucb_UcbPropertiesManager_get_implementation },
+{ "ucb_UcbStore_get_implementation", ucb_UcbStore_get_implementation },
+{ "ucb_UniversalContentBroker_get_implementation", 
ucb_UniversalContentBroker_get_implementation },
+{ "ucb_OFileAccess_get_implementation", 
ucb_OFileAccess_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index 2911475c1c15..77fe063cb18a 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -16,7 +16,6 @@
 
 extern "C" {
 void * i18npool_component_getFactory( const char* , void* , void* );
-void * ucb_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
@@ -49,6 +48,12 @@ void * i18npool_Calendar_gregorian_get_implementation( void 
*, void * );
 void * unoxml_CXPathAPI_get_implementation( void *, void * );
 void * unoxml_CDocumentBuilder_get_implementation( void *, void * );
 void * sd_PresentationDocument_get_implementation( void *, void * );
+void * ucb_UcbCommandEnvironment_get_implementation( void *, void * );
+void * ucb_UcbContentProviderProxyFactory_get_implementation( void *, void * );
+void * ucb_UcbPropertiesManager_get_implementation( void *, void * );
+void * ucb_UcbStore_get_implementation( void *, void * );
+void * ucb_UniversalContentBroker_get_implementation( void *, void * );
+void * ucb_OFileAccess_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -56,7 +61,6 @@ lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
 { "libi18npoollo.a", i18npool_component_getFactory },
-{ "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
 };
 
@@ -98,6 +102,12 @@ lo_get_constructor_map(void)
 { "unoxml_CXP

[Libreoffice-commits] core.git: vcl/workben

2020-08-03 Thread Caolán McNamara (via logerrit)
 vcl/workben/slkfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 7c403473712d847bc2127cc01af3aed24c75f55d
Author: Caolán McNamara 
AuthorDate: Mon Aug 3 20:29:30 2020 +0100
Commit: Caolán McNamara 
CommitDate: Mon Aug 3 21:42:23 2020 +0200

ofz#24648 fix slkfuzzer

Change-Id: I3dce445038a29a622ceea2415e7736768a95206d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100029
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/slkfuzzer.cxx b/vcl/workben/slkfuzzer.cxx
index 924f1d13294c..ddf04878747f 100644
--- a/vcl/workben/slkfuzzer.cxx
+++ b/vcl/workben/slkfuzzer.cxx
@@ -27,6 +27,7 @@ void * 
com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void *
 void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -55,6 +56,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation", 
com_sun_star_i18n_Transliteration_get_implementation },
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation},
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-31 Thread Caolán McNamara (via logerrit)
 vcl/workben/pptfuzzer.cxx |   34 --
 1 file changed, 34 deletions(-)

New commits:
commit 49e8322a6cb45dbb15f63b6c0bdcd45f0fa8055a
Author: Caolán McNamara 
AuthorDate: Fri Jul 31 15:49:36 2020 +0100
Commit: Caolán McNamara 
CommitDate: Fri Jul 31 21:18:59 2020 +0200

drop some stuff the pptfuzzer doesn't need

Change-Id: I647c23bd08bba831759c931a64cdef39b7e9867e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99891
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index 97d988cc0445..2911475c1c15 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -46,26 +46,9 @@ void * 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, v
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
 void * i18npool_CalendarImpl_get_implementation( void *, void * );
 void * i18npool_Calendar_gregorian_get_implementation( void *, void * );
-void * unoxml_rdfRepository_get_implementation( void *, void * );
-void * unoxml_CURI_get_implementation( void *, void * );
-void * unoxml_CLiteral_get_implementation( void *, void * );
-void * unoxml_CBlankNode_get_implementation( void *, void * );
 void * unoxml_CXPathAPI_get_implementation( void *, void * );
-void * unoxml_CSAXDocumentBuilder_get_implementation( void *, void * );
 void * unoxml_CDocumentBuilder_get_implementation( void *, void * );
-void * sd_DrawingDocument_get_implementation( void *, void * );
-void * com_sun_star_comp_Draw_DrawingModule_get_implementation( void *, void * 
);
 void * sd_PresentationDocument_get_implementation( void *, void * );
-void * com_sun_star_comp_Draw_PresenterHelper_get_implementation( void *, void 
* );
-void * com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation( void 
*, void * );
-void * com_sun_star_comp_Draw_PresenterTextView_get_implementation( void *, 
void * );
-void * com_sun_star_comp_Draw_SlideRenderer_get_implementation( void *, void * 
);
-void * com_sun_star_comp_Draw_SlideSorter_get_implementation( void *, void * );
-void * 
com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation(
 void *, void * );
-void * com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation( void *, 
void * );
-void * com_sun_star_comp_sd_InsertSlideController_get_implementation( void *, 
void * );
-void * com_sun_star_comp_sd_SlideLayoutController_get_implementation( void *, 
void * );
-void * com_sun_star_comp_sd_DisplayModeController_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -112,26 +95,9 @@ lo_get_constructor_map(void)
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
 { "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation},
 { "i18npool_Calendar_gregorian_get_implementation", 
i18npool_Calendar_gregorian_get_implementation},
-{ "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
-{ "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
-{ "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
-{ "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
-{ "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
 { "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
-{ "sd_DrawingDocument_get_implementation", 
sd_DrawingDocument_get_implementation },
-{ "com_sun_star_comp_Draw_DrawingModule_get_implementation", 
com_sun_star_comp_Draw_DrawingModule_get_implementation },
 { "sd_PresentationDocument_get_implementation", 
sd_PresentationDocument_get_implementation },
-{ "com_sun_star_comp_Draw_PresenterHelper_get_implementation", 
com_sun_star_comp_Draw_PresenterHelper_get_implementation },
-{ "com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation", 
com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation },
-{ "com_sun_star_comp_Draw_PresenterTextView_get_implementation", 
com_sun_star_comp_Draw_PresenterTextView_get_implementation },
-{ "com_sun_star_comp_Draw_SlideRenderer_get_implementation", 
com_sun_star_comp_Draw_SlideRenderer_get_implementation },
-{ "com_sun_star_comp_Draw_SlideSorter_get_implementation", 
com_sun_star_comp_Draw_SlideSorter_get_implementation },
-{ 
"com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation",
 
com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation 
},
-{ "com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation", 
com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation 

[Libreoffice-commits] core.git: vcl/workben

2020-07-31 Thread Caolán McNamara (via logerrit)
 vcl/workben/qpwfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b81e86dac77a8d6b29e4fb82c42e1a0b592af5be
Author: Caolán McNamara 
AuthorDate: Fri Jul 31 11:07:19 2020 +0100
Commit: Caolán McNamara 
CommitDate: Fri Jul 31 17:06:38 2020 +0200

ofz#24521 fix qpwfuzzer

Change-Id: Ia9490a07f4567df62cb5a08cb1859390d2a1ca1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99873
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/qpwfuzzer.cxx b/vcl/workben/qpwfuzzer.cxx
index 6cfecf4f20cd..0246f840df8b 100644
--- a/vcl/workben/qpwfuzzer.cxx
+++ b/vcl/workben/qpwfuzzer.cxx
@@ -27,6 +27,7 @@ void * 
com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void *
 void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -55,6 +56,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation", 
com_sun_star_i18n_Transliteration_get_implementation },
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation},
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-31 Thread Caolán McNamara (via logerrit)
 vcl/workben/pptfuzzer.cxx |4 
 1 file changed, 4 insertions(+)

New commits:
commit ecd2c8f36090e62a2ab6181681792d9b367505e9
Author: Caolán McNamara 
AuthorDate: Fri Jul 31 15:33:31 2020 +0100
Commit: Caolán McNamara 
CommitDate: Fri Jul 31 17:06:13 2020 +0200

ofz#24527 fix pptfuzzer

Change-Id: I661bfc42b0e05d935b21c4074727562e5a0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99877
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index bafb284dd56f..97d988cc0445 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -44,6 +44,8 @@ void * 
com_sun_star_animations_TransitionFilter_get_implementation( void *, void
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * i18npool_CalendarImpl_get_implementation( void *, void * );
+void * i18npool_Calendar_gregorian_get_implementation( void *, void * );
 void * unoxml_rdfRepository_get_implementation( void *, void * );
 void * unoxml_CURI_get_implementation( void *, void * );
 void * unoxml_CLiteral_get_implementation( void *, void * );
@@ -108,6 +110,8 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_comphelper_OPropertyBag", 
com_sun_star_comp_comphelper_OPropertyBag },
 { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "i18npool_CalendarImpl_get_implementation", 
i18npool_CalendarImpl_get_implementation},
+{ "i18npool_Calendar_gregorian_get_implementation", 
i18npool_Calendar_gregorian_get_implementation},
 { "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
 { "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
 { "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-29 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |   28 ++--
 vcl/workben/pptfuzzer.cxx |   28 ++--
 2 files changed, 52 insertions(+), 4 deletions(-)

New commits:
commit 3c040eff4ace1f108ab13d0bf219a8b91daeaa28
Author: Caolán McNamara 
AuthorDate: Wed Jul 29 11:26:16 2020 +0100
Commit: Caolán McNamara 
CommitDate: Wed Jul 29 15:23:10 2020 +0200

sd_component_getFactory no longer exists

Change-Id: I78405fc5ddbafa9760644bebaeee4ce4622a6c3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99679
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index 4bfec56fa37b..0984b70c2233 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -15,7 +15,6 @@
 #include 
 
 extern "C" {
-void * sd_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
 void * ucb_component_getFactory( const char* , void* , void* );
 
@@ -57,13 +56,25 @@ void * linguistic_DicList_get_implementation( void *, void 
* );
 void * linguistic_LinguProps_get_implementation( void *, void * );
 void * linguistic_LngSvcMgr_get_implementation( void *, void * );
 void * linguistic_GrammarCheckingIterator_get_implementation( void *, void * );
+void * sd_DrawingDocument_get_implementation( void *, void * );
+void * com_sun_star_comp_Draw_DrawingModule_get_implementation( void *, void * 
);
+void * sd_PresentationDocument_get_implementation( void *, void * );
+void * com_sun_star_comp_Draw_PresenterHelper_get_implementation( void *, void 
* );
+void * com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation( void 
*, void * );
+void * com_sun_star_comp_Draw_PresenterTextView_get_implementation( void *, 
void * );
+void * com_sun_star_comp_Draw_SlideRenderer_get_implementation( void *, void * 
);
+void * com_sun_star_comp_Draw_SlideSorter_get_implementation( void *, void * );
+void * 
com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation(
 void *, void * );
+void * com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation( void *, 
void * );
+void * com_sun_star_comp_sd_InsertSlideController_get_implementation( void *, 
void * );
+void * com_sun_star_comp_sd_SlideLayoutController_get_implementation( void *, 
void * );
+void * com_sun_star_comp_sd_DisplayModeController_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
 lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
-{ "libsdlo.a", sd_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
 { "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
@@ -114,6 +125,19 @@ lo_get_constructor_map(void)
 { "linguistic_LinguProps_get_implementation", 
linguistic_LinguProps_get_implementation },
 { "linguistic_LngSvcMgr_get_implementation", 
linguistic_LngSvcMgr_get_implementation },
 { "linguistic_GrammarCheckingIterator_get_implementation", 
linguistic_GrammarCheckingIterator_get_implementation },
+{ "sd_DrawingDocument_get_implementation", 
sd_DrawingDocument_get_implementation },
+{ "com_sun_star_comp_Draw_DrawingModule_get_implementation", 
com_sun_star_comp_Draw_DrawingModule_get_implementation },
+{ "sd_PresentationDocument_get_implementation", 
sd_PresentationDocument_get_implementation },
+{ "com_sun_star_comp_Draw_PresenterHelper_get_implementation", 
com_sun_star_comp_Draw_PresenterHelper_get_implementation },
+{ "com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation", 
com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation },
+{ "com_sun_star_comp_Draw_PresenterTextView_get_implementation", 
com_sun_star_comp_Draw_PresenterTextView_get_implementation },
+{ "com_sun_star_comp_Draw_SlideRenderer_get_implementation", 
com_sun_star_comp_Draw_SlideRenderer_get_implementation },
+{ "com_sun_star_comp_Draw_SlideSorter_get_implementation", 
com_sun_star_comp_Draw_SlideSorter_get_implementation },
+{ 
"com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation",
 
com_sun_star_comp_Draw_framework_configuration_Configuration_get_implementation 
},
+{ "com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation", 
com_sun_star_comp_draw_SdHtmlOptionsDialog_get_implementation },
+{ "com_sun_star_comp_sd_InsertSlideController_get_implementation", 
com_sun_star_comp_sd_InsertSlideController_get_implementation },
+{ "com_sun_star_comp_sd_SlideLayoutController_get_implementation", 
com_sun_star_comp_sd_SlideLayoutController_get_implementation },
+{ "com_sun_star_comp_sd_DisplayModeController_get_implementation", 
com_sun_star_comp_sd_DisplayModeController_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index 2081cfbdc65b..bafb28

[Libreoffice-commits] core.git: vcl/workben

2020-07-15 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |   12 ++--
 1 file changed, 10 insertions(+), 2 deletions(-)

New commits:
commit a7350a3759fd651c3cae1b7ed67cea0d55725ce2
Author: Caolán McNamara 
AuthorDate: Wed Jul 15 09:30:47 2020 +0100
Commit: Caolán McNamara 
CommitDate: Wed Jul 15 12:28:44 2020 +0200

lng_component_getFactory no longer exists

Change-Id: I8cccbc8fde608b415777154c26e65c31f03f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98802
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index ffd82f88985e..4bfec56fa37b 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -18,7 +18,6 @@ extern "C" {
 void * sd_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
 void * ucb_component_getFactory( const char* , void* , void* );
-void * lng_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
 void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, 
void * );
@@ -53,6 +52,11 @@ void * unoxml_CBlankNode_get_implementation( void *, void * 
);
 void * unoxml_CXPathAPI_get_implementation( void *, void * );
 void * unoxml_CSAXDocumentBuilder_get_implementation( void *, void * );
 void * unoxml_CDocumentBuilder_get_implementation( void *, void * );
+void * linguistic_ConvDicList_get_implementation( void *, void * );
+void * linguistic_DicList_get_implementation( void *, void * );
+void * linguistic_LinguProps_get_implementation( void *, void * );
+void * linguistic_LngSvcMgr_get_implementation( void *, void * );
+void * linguistic_GrammarCheckingIterator_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -62,7 +66,6 @@ lo_get_factory_map(void)
 { "libsdlo.a", sd_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
 { "libucb1.a", ucb_component_getFactory },
-{ "liblnglo.a", lng_component_getFactory },
 { 0, 0 }
 };
 
@@ -106,6 +109,11 @@ lo_get_constructor_map(void)
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
 { "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
+{ "linguistic_ConvDicList_get_implementation", 
linguistic_ConvDicList_get_implementation },
+{ "linguistic_DicList_get_implementation", 
linguistic_DicList_get_implementation },
+{ "linguistic_LinguProps_get_implementation", 
linguistic_LinguProps_get_implementation },
+{ "linguistic_LngSvcMgr_get_implementation", 
linguistic_LngSvcMgr_get_implementation },
+{ "linguistic_GrammarCheckingIterator_get_implementation", 
linguistic_GrammarCheckingIterator_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-12 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |2 +-
 vcl/workben/pptfuzzer.cxx |2 +-
 vcl/workben/ww2fuzzer.cxx |2 +-
 vcl/workben/ww6fuzzer.cxx |2 +-
 vcl/workben/ww8fuzzer.cxx |2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit acc1ba0614742300cb4ae4c12d5808bf0f2a964b
Author: Caolán McNamara 
AuthorDate: Sun Jul 12 12:54:19 2020 +0100
Commit: Caolán McNamara 
CommitDate: Sun Jul 12 13:55:45 2020 +0200

missing trailing commas

Change-Id: I6a541d5c34f933a08f3ed48b23e85a18d7e36afe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98594
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index 69e133a99124..ffd82f88985e 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -105,7 +105,7 @@ lo_get_constructor_map(void)
 { "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
-{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index ebcef5aa467e..2081cfbdc65b 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -103,7 +103,7 @@ lo_get_constructor_map(void)
 { "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
-{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/ww2fuzzer.cxx b/vcl/workben/ww2fuzzer.cxx
index 861810016365..f5e0b3e01d06 100644
--- a/vcl/workben/ww2fuzzer.cxx
+++ b/vcl/workben/ww2fuzzer.cxx
@@ -81,7 +81,7 @@ lo_get_constructor_map(void)
 { "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
-{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx
index 10d3896d2d86..ab36a21031c5 100644
--- a/vcl/workben/ww6fuzzer.cxx
+++ b/vcl/workben/ww6fuzzer.cxx
@@ -83,7 +83,7 @@ lo_get_constructor_map(void)
 { "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
-{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
 { 0, 0 }
 };
 
diff --git a/vcl/workben/ww8fuzzer.cxx b/vcl/workben/ww8fuzzer.cxx
index f0d22f6bed19..bc67d6074dd3 100644
--- a/vcl/workben/ww8fuzzer.cxx
+++ b/vcl/workben/ww8fuzzer.cxx
@@ -83,7 +83,7 @@ lo_get_constructor_map(void)
 { "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
 { "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
 { "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
-{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation },
 { 0, 0 }
 };
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-11 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |   16 ++--
 vcl/workben/pptfuzzer.cxx |   16 ++--
 vcl/workben/ww2fuzzer.cxx |   16 ++--
 vcl/workben/ww6fuzzer.cxx |   16 ++--
 vcl/workben/ww8fuzzer.cxx |   16 ++--
 5 files changed, 70 insertions(+), 10 deletions(-)

New commits:
commit ddca00556cf57e9c4a6c598b74775092e6bb5906
Author: Caolán McNamara 
AuthorDate: Sat Jul 11 20:01:08 2020 +0100
Commit: Caolán McNamara 
CommitDate: Sat Jul 11 21:02:25 2020 +0200

unoxml_component_getFactory doesn't exist anymore

Change-Id: Iaf1ba4753c481f92096afd062ef0dd6210f0628e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98579
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index d6c35981ef2e..69e133a99124 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -32,7 +32,6 @@ void * com_sun_star_i18n_Transliteration_get_implementation( 
void *, void * );
 void * com_sun_star_drawing_EnhancedCustomShapeEngine_get_implementation( void 
*, void * );
 void * com_sun_star_drawing_SvxShapeCollection_get_implementation( void *, 
void * );
 void * SfxDocumentMetaData_get_implementation( void *, void * );
-void * unoxml_component_getFactory( const char* , void* , void* );
 void * com_sun_star_animations_AnimateColor_get_implementation( void *, void * 
);
 void * com_sun_star_animations_AnimateMotion_get_implementation( void *, void 
* );
 void * com_sun_star_animations_AnimateSet_get_implementation( void *, void * );
@@ -47,6 +46,13 @@ void * 
com_sun_star_animations_TransitionFilter_get_implementation( void *, void
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
 void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
+void * unoxml_rdfRepository_get_implementation( void *, void * );
+void * unoxml_CURI_get_implementation( void *, void * );
+void * unoxml_CLiteral_get_implementation( void *, void * );
+void * unoxml_CBlankNode_get_implementation( void *, void * );
+void * unoxml_CXPathAPI_get_implementation( void *, void * );
+void * unoxml_CSAXDocumentBuilder_get_implementation( void *, void * );
+void * unoxml_CDocumentBuilder_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
@@ -54,7 +60,6 @@ lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
 { "libsdlo.a", sd_component_getFactory },
-{ "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
 { "libucb1.a", ucb_component_getFactory },
 { "liblnglo.a", lng_component_getFactory },
@@ -94,6 +99,13 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_comphelper_OPropertyBag", 
com_sun_star_comp_comphelper_OPropertyBag },
 { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
 { "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
+{ "unoxml_rdfRepository_get_implementation", 
unoxml_rdfRepository_get_implementation },
+{ "unoxml_CURI_get_implementation", unoxml_CURI_get_implementation },
+{ "unoxml_CLiteral_get_implementation", 
unoxml_CLiteral_get_implementation },
+{ "unoxml_CBlankNode_get_implementation", 
unoxml_CBlankNode_get_implementation },
+{ "unoxml_CXPathAPI_get_implementation", 
unoxml_CXPathAPI_get_implementation },
+{ "unoxml_CSAXDocumentBuilder_get_implementation", 
unoxml_CSAXDocumentBuilder_get_implementation },
+{ "unoxml_CDocumentBuilder_get_implementation", 
unoxml_CDocumentBuilder_get_implementation }
 { 0, 0 }
 };
 
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index 93cd12a1d870..ebcef5aa467e 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -31,7 +31,6 @@ void * com_sun_star_i18n_Transliteration_get_implementation( 
void *, void * );
 void * com_sun_star_drawing_EnhancedCustomShapeEngine_get_implementation( void 
*, void * );
 void * com_sun_star_drawing_SvxShapeCollection_get_implementation( void *, 
void * );
 void * SfxDocumentMetaData_get_implementation( void *, void * );
-void * unoxml_component_getFactory( const char* , void* , void* );
 void * com_sun_star_animations_AnimateColor_get_implementation( void *, void * 
);
 void * com_sun_star_animations_AnimateMotion_get_implementation( void *, void 
* );
 void * com_sun_star_animations_AnimateSet_get_implementation( void *, void * );
@@ -46,6 +45,13 @@ void * 
com_sun_star_animations_TransitionFilter_get_implementation( void *, void
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
 void * emfio_emfreade

[Libreoffice-commits] core.git: vcl/workben

2020-07-09 Thread Caolán McNamara (via logerrit)
 vcl/workben/ww6fuzzer.cxx |1 -
 1 file changed, 1 deletion(-)

New commits:
commit c0a6d6f2bd5de731ebe0cd839f6a62cc5150b05b
Author: Caolán McNamara 
AuthorDate: Thu Jul 9 11:47:26 2020 +0100
Commit: Caolán McNamara 
CommitDate: Thu Jul 9 14:52:22 2020 +0200

stray remaining emfio_component_getFactory call

Change-Id: I37279fbca3bf83cf2c5609ddf9956ee915ae0b30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98424
Tested-by: Caolán McNamara 
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx
index f0225b20e2ce..b89f80461545 100644
--- a/vcl/workben/ww6fuzzer.cxx
+++ b/vcl/workben/ww6fuzzer.cxx
@@ -44,7 +44,6 @@ lo_get_factory_map(void)
 static lib_to_factory_mapping map[] = {
 { "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
-{ "libemfiolo.a", emfio_component_getFactory },
 { "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
 };
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2020-07-08 Thread Caolán McNamara (via logerrit)
 vcl/workben/cgmfuzzer.cxx |4 ++--
 vcl/workben/pptfuzzer.cxx |4 ++--
 vcl/workben/qpwfuzzer.cxx |4 ++--
 vcl/workben/rtffuzzer.cxx |4 ++--
 vcl/workben/slkfuzzer.cxx |4 ++--
 vcl/workben/wmffuzzer.cxx |4 ++--
 vcl/workben/ww2fuzzer.cxx |4 ++--
 vcl/workben/ww6fuzzer.cxx |3 ++-
 vcl/workben/ww8fuzzer.cxx |4 ++--
 9 files changed, 18 insertions(+), 17 deletions(-)

New commits:
commit baaaee9b1665245e5b4f6a0ef5c949fd3ab32862
Author: Caolán McNamara 
AuthorDate: Wed Jul 8 11:56:36 2020 +0100
Commit: Caolán McNamara 
CommitDate: Wed Jul 8 15:37:10 2020 +0200

fix fuzzer build

Change-Id: I1c96d177ddf6061e61f4027675e657c2d7fd446e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98367
Tested-by: Jenkins
Reviewed-by: Caolán McNamara 

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index 252d538bd14c..d6c35981ef2e 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -15,7 +15,6 @@
 #include 
 
 extern "C" {
-void * emfio_component_getFactory( const char* , void* , void* );
 void * sd_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
 void * ucb_component_getFactory( const char* , void* , void* );
@@ -47,13 +46,13 @@ void * 
com_sun_star_animations_SequenceTimeContainer_get_implementation( void *,
 void * com_sun_star_animations_TransitionFilter_get_implementation( void *, 
void * );
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
+void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
 lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
-{ "libemfiolo.a", emfio_component_getFactory },
 { "libsdlo.a", sd_component_getFactory },
 { "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
@@ -94,6 +93,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_animations_TransitionFilter_get_implementation", 
com_sun_star_animations_TransitionFilter_get_implementation },
 { "com_sun_star_comp_comphelper_OPropertyBag", 
com_sun_star_comp_comphelper_OPropertyBag },
 { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
+{ "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
 { 0, 0 }
 };
 
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index d7f6b73f986e..93cd12a1d870 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -15,7 +15,6 @@
 #include 
 
 extern "C" {
-void * emfio_component_getFactory( const char* , void* , void* );
 void * sd_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
 void * ucb_component_getFactory( const char* , void* , void* );
@@ -46,13 +45,13 @@ void * 
com_sun_star_animations_SequenceTimeContainer_get_implementation( void *,
 void * com_sun_star_animations_TransitionFilter_get_implementation( void *, 
void * );
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
+void * emfio_emfreader_XEmfParser_get_implementation( void *, void * );
 }
 
 const lib_to_factory_mapping *
 lo_get_factory_map(void)
 {
 static lib_to_factory_mapping map[] = {
-{ "libemfiolo.a", emfio_component_getFactory },
 { "libsdlo.a", sd_component_getFactory },
 { "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
@@ -92,6 +91,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_animations_TransitionFilter_get_implementation", 
com_sun_star_animations_TransitionFilter_get_implementation },
 { "com_sun_star_comp_comphelper_OPropertyBag", 
com_sun_star_comp_comphelper_OPropertyBag },
 { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
+{ "emfio_emfreader_XEmfParser_get_implementation", 
emfio_emfreader_XEmfParser_get_implementation},
 { 0, 0 }
 };
 
diff --git a/vcl/workben/qpwfuzzer.cxx b/vcl/workben/qpwfuzzer.cxx
index 0b1fe636240e..6cfecf4f20cd 100644
--- a/vcl/workben/qpwfuzzer.cxx
+++ b/vcl/workben/qpwfuzzer.cxx
@@ -14,7 +14,6 @@
 #include 
 
 extern "C" {
-void * emfio_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * );
@@ -27,13 +26,13 @@ void * com_sun_star_i18n_Collator_get_implementation( void 
*, void * );
 void * com_sun_star_i18n_NativeN

[Libreoffice-commits] core.git: vcl/workben

2019-10-10 Thread Caolán McNamara (via logerrit)
 vcl/workben/pptxfuzzer.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9df749e54a16924f0cc947e9a2885b5c564fff74
Author: Caolán McNamara 
AuthorDate: Thu Oct 10 15:25:53 2019 +0100
Commit: Caolán McNamara 
CommitDate: Thu Oct 10 16:46:23 2019 +0200

WaE: -Wreturn-type

Change-Id: I6e9d667cc286ebab796398fac293077718bbf877
Reviewed-on: https://gerrit.libreoffice.org/80619
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/pptxfuzzer.cxx b/vcl/workben/pptxfuzzer.cxx
index 0fb1ef6a4bb2..c1cdec3d90d7 100644
--- a/vcl/workben/pptxfuzzer.cxx
+++ b/vcl/workben/pptxfuzzer.cxx
@@ -21,7 +21,7 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 
 extern "C" void* SdCreateDialogFactory() { return nullptr; }
 
-extern "C" void* com_sun_star_comp_Draw_VisioImportFilter_get_implementation() 
{}
+extern "C" void* com_sun_star_comp_Draw_VisioImportFilter_get_implementation() 
{ return nullptr; }
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-09-27 Thread Stephan Bergmann (via logerrit)
 vcl/workben/vcldemo.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 71a327528f1f7ffabd157e25852855ab6f01
Author: Stephan Bergmann 
AuthorDate: Fri Sep 27 08:33:41 2019 +0200
Commit: Stephan Bergmann 
CommitDate: Fri Sep 27 11:04:10 2019 +0200

Error: attempt to subscript container with out-of-bounds index 24

...doing `bin/run vcldemo` and clicking on the third column in the third row

Change-Id: Ibe93f701a1ebf2447d5f5240e9a4ecab378918ef
Reviewed-on: https://gerrit.libreoffice.org/79665
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 29d148158b9a..74dc6fb5671e 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1382,7 +1382,7 @@ public:
 LoadAllImages();
 
 Point aLocation(0,maIcons[0].GetSizePixel().Height() + 8);
-for (size_t i = 0; i < 100; i++)
+for (size_t i = 0; i < maIcons.size(); i++)
 {
 BitmapEx aSrc = maIcons[i];
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-06-05 Thread Caolán McNamara (via logerrit)
 vcl/workben/fodpfuzzer.cxx |5 +
 vcl/workben/pptxfuzzer.cxx |2 ++
 2 files changed, 7 insertions(+)

New commits:
commit 722041b43bd578ec9f6daeb716309d2ead4ea1a4
Author: Caolán McNamara 
AuthorDate: Wed Jun 5 14:50:02 2019 +0100
Commit: Caolán McNamara 
CommitDate: Wed Jun 5 21:18:39 2019 +0200

ofz#15068 build failure

Change-Id: Ic306faa25c726be39bc76fa9d492204ad0602810
Reviewed-on: https://gerrit.libreoffice.org/73554
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/fodpfuzzer.cxx b/vcl/workben/fodpfuzzer.cxx
index 268bc492a253..55fb840db9cd 100644
--- a/vcl/workben/fodpfuzzer.cxx
+++ b/vcl/workben/fodpfuzzer.cxx
@@ -24,6 +24,11 @@ extern "C" void* SdCreateDialogFactory()
 return nullptr;
 }
 
+extern "C" void* com_sun_star_comp_Draw_VisioImportFilter_get_implementation()
+{
+return nullptr;
+}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
diff --git a/vcl/workben/pptxfuzzer.cxx b/vcl/workben/pptxfuzzer.cxx
index 7af963dc370d..0fb1ef6a4bb2 100644
--- a/vcl/workben/pptxfuzzer.cxx
+++ b/vcl/workben/pptxfuzzer.cxx
@@ -21,6 +21,8 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 
 extern "C" void* SdCreateDialogFactory() { return nullptr; }
 
+extern "C" void* com_sun_star_comp_Draw_VisioImportFilter_get_implementation() 
{}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-03-02 Thread Libreoffice Gerrit user
 vcl/workben/pptxfuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6ca4bd3ce9d3fd75f4acf67434fdfc2145a48078
Author: Caolán McNamara 
AuthorDate: Sat Mar 2 13:07:50 2019 +
Commit: Caolán McNamara 
CommitDate: Sat Mar 2 13:07:50 2019 +

ofz#13431 fix build

Change-Id: I29c271188dc96205e335dbf8d7b11a3711e6e634

diff --git a/vcl/workben/pptxfuzzer.cxx b/vcl/workben/pptxfuzzer.cxx
index 39459accd767..7af963dc370d 100644
--- a/vcl/workben/pptxfuzzer.cxx
+++ b/vcl/workben/pptxfuzzer.cxx
@@ -19,6 +19,8 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv)
 return 0;
 }
 
+extern "C" void* SdCreateDialogFactory() { return nullptr; }
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-03-01 Thread Libreoffice Gerrit user
 vcl/workben/fodpfuzzer.cxx |5 +
 1 file changed, 5 insertions(+)

New commits:
commit bbd3145f72c4abfbf17dd09d9cb2724f04416450
Author: Caolán McNamara 
AuthorDate: Fri Mar 1 09:00:04 2019 +
Commit: Caolán McNamara 
CommitDate: Fri Mar 1 09:00:04 2019 +

ofz#13431 fix build

Change-Id: I55085ede7161c06c85ab14d553f27ac505cbbbc2

diff --git a/vcl/workben/fodpfuzzer.cxx b/vcl/workben/fodpfuzzer.cxx
index cb775f7cae14..268bc492a253 100644
--- a/vcl/workben/fodpfuzzer.cxx
+++ b/vcl/workben/fodpfuzzer.cxx
@@ -19,6 +19,11 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
 return 0;
 }
 
+extern "C" void* SdCreateDialogFactory()
+{
+return nullptr;
+}
+
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
 {
 SvMemoryStream aStream(const_cast(data), size, StreamMode::READ);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-02-27 Thread Libreoffice Gerrit user
 vcl/workben/cgmfuzzer.cxx |5 +
 vcl/workben/pptfuzzer.cxx |5 +
 2 files changed, 10 insertions(+)

New commits:
commit b436b039b9b8eb0d289a2d7648d97f4a6b91df35
Author: Caolán McNamara 
AuthorDate: Wed Feb 27 16:20:34 2019 +
Commit: Caolán McNamara 
CommitDate: Wed Feb 27 16:21:30 2019 +

ofz#13431 fix build

since

commit c600817e8349db7957f517365f65f25e4e042439
Date:   Mon Feb 25 15:34:13 2019 +0200

Make SdAbstractDialogFactory::Create() do its job also on non-DESKTOP

Change-Id: I95ff8ed3dc81ec542ac76d5f5bbd7582391c84a5

diff --git a/vcl/workben/cgmfuzzer.cxx b/vcl/workben/cgmfuzzer.cxx
index 624d156e4c8a..252d538bd14c 100644
--- a/vcl/workben/cgmfuzzer.cxx
+++ b/vcl/workben/cgmfuzzer.cxx
@@ -105,6 +105,11 @@ extern "C" void* lo_get_custom_widget_func(const char*)
 return nullptr;
 }
 
+extern "C" void* SdCreateDialogFactory()
+{
+return nullptr;
+}
+
 extern "C" bool TestImportCGM(SvStream &rStream);
 
 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
diff --git a/vcl/workben/pptfuzzer.cxx b/vcl/workben/pptfuzzer.cxx
index a10f8b218c0f..dfcc41abc50c 100644
--- a/vcl/workben/pptfuzzer.cxx
+++ b/vcl/workben/pptfuzzer.cxx
@@ -103,6 +103,11 @@ extern "C" void* lo_get_custom_widget_func(const char*)
 return nullptr;
 }
 
+extern "C" void* SdCreateDialogFactory()
+{
+return nullptr;
+}
+
 extern "C" bool TestImportPPT(SvStream &rStream);
 
 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] core.git: vcl/workben

2019-01-29 Thread Libreoffice Gerrit user
 vcl/workben/metfuzzer.options |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 94a025e32807c8b85692488a72beaed524fab668
Author: Caolán McNamara 
AuthorDate: Tue Jan 29 09:08:57 2019 +
Commit: Caolán McNamara 
CommitDate: Tue Jan 29 09:09:52 2019 +

ofz: reduce max_len for met

Change-Id: If81ee19dd0127f48b9e57bf420323927c5981840

diff --git a/vcl/workben/metfuzzer.options b/vcl/workben/metfuzzer.options
index d851ad58c377..84ac4eb4ee82 100644
--- a/vcl/workben/metfuzzer.options
+++ b/vcl/workben/metfuzzer.options
@@ -1,4 +1,4 @@
 [libfuzzer]
-max_len = 65536
+max_len = 49152
 [env]
 AFL_DRIVER_DONT_DEFER=1
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2018-05-27 Thread Caolán McNamara
 vcl/workben/cgmfuzzer.options   |2 ++
 vcl/workben/diffuzzer.options   |2 ++
 vcl/workben/docxfuzzer.options  |2 ++
 vcl/workben/fodpfuzzer.options  |2 ++
 vcl/workben/fodsfuzzer.options  |2 ++
 vcl/workben/fodtfuzzer.options  |2 ++
 vcl/workben/metfuzzer.options   |2 ++
 vcl/workben/mmlfuzzer.options   |2 ++
 vcl/workben/pptxfuzzer.options  |2 ++
 vcl/workben/qpwfuzzer.options   |2 ++
 vcl/workben/rtffuzzer.options   |2 ++
 vcl/workben/scrtffuzzer.options |2 ++
 vcl/workben/slkfuzzer.options   |2 ++
 vcl/workben/ww2fuzzer.options   |2 ++
 vcl/workben/ww6fuzzer.options   |2 ++
 vcl/workben/ww8fuzzer.options   |2 ++
 vcl/workben/xlsfuzzer.options   |2 ++
 vcl/workben/xlsxfuzzer.options  |2 ++
 18 files changed, 36 insertions(+)

New commits:
commit 539e8f1d80d497bd8d7ee031cb5772e49021b79c
Author: Caolán McNamara 
Date:   Sun May 27 21:01:18 2018 +0100

Some LibreOffice Fuzzers Can't Use AFL's Deferred Forkserver

https://github.com/google/oss-fuzz/issues/1449

Change-Id: I495f269b66f8232dce260031c4f74e574bec6aa9

diff --git a/vcl/workben/cgmfuzzer.options b/vcl/workben/cgmfuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/cgmfuzzer.options
+++ b/vcl/workben/cgmfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/diffuzzer.options b/vcl/workben/diffuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/diffuzzer.options
+++ b/vcl/workben/diffuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/docxfuzzer.options b/vcl/workben/docxfuzzer.options
index e8c2b812b01d..db9a3e8c64ba 100644
--- a/vcl/workben/docxfuzzer.options
+++ b/vcl/workben/docxfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 98304
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodpfuzzer.options b/vcl/workben/fodpfuzzer.options
index 76d308c39d0c..120b6953bfdb 100644
--- a/vcl/workben/fodpfuzzer.options
+++ b/vcl/workben/fodpfuzzer.options
@@ -1,3 +1,5 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodsfuzzer.options b/vcl/workben/fodsfuzzer.options
index 76d308c39d0c..120b6953bfdb 100644
--- a/vcl/workben/fodsfuzzer.options
+++ b/vcl/workben/fodsfuzzer.options
@@ -1,3 +1,5 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/fodtfuzzer.options b/vcl/workben/fodtfuzzer.options
index 76d308c39d0c..120b6953bfdb 100644
--- a/vcl/workben/fodtfuzzer.options
+++ b/vcl/workben/fodtfuzzer.options
@@ -1,3 +1,5 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/metfuzzer.options b/vcl/workben/metfuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/metfuzzer.options
+++ b/vcl/workben/metfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/mmlfuzzer.options b/vcl/workben/mmlfuzzer.options
index 76d308c39d0c..120b6953bfdb 100644
--- a/vcl/workben/mmlfuzzer.options
+++ b/vcl/workben/mmlfuzzer.options
@@ -1,3 +1,5 @@
 [libfuzzer]
 max_len = 65536
 dict = xml.dict
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/pptxfuzzer.options b/vcl/workben/pptxfuzzer.options
index e8c2b812b01d..db9a3e8c64ba 100644
--- a/vcl/workben/pptxfuzzer.options
+++ b/vcl/workben/pptxfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 98304
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/qpwfuzzer.options b/vcl/workben/qpwfuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/qpwfuzzer.options
+++ b/vcl/workben/qpwfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/rtffuzzer.options b/vcl/workben/rtffuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/rtffuzzer.options
+++ b/vcl/workben/rtffuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/scrtffuzzer.options b/vcl/workben/scrtffuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/scrtffuzzer.options
+++ b/vcl/workben/scrtffuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/slkfuzzer.options b/vcl/workben/slkfuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/slkfuzzer.options
+++ b/vcl/workben/slkfuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/ww2fuzzer.options b/vcl/workben/ww2fuzzer.options
index 678d526b1ea9..d851ad58c377 100644
--- a/vcl/workben/ww2fuzzer.options
+++ b/vcl/workben/ww2fuzzer.options
@@ -1,2 +1,4 @@
 [libfuzzer]
 max_len = 65536
+[env]
+AFL_DRIVER_DONT_DEFER=1
diff --git a/vcl/workben/ww6fuzzer.options b/vcl/workben/ww6fuzzer.optio

[Libreoffice-commits] core.git: vcl/workben

2018-02-25 Thread Caolán McNamara
 vcl/workben/commonfuzzer.hxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a7d7b2b49e6b63cdf22be823b8eb6e4c0ec8191f
Author: Caolán McNamara 
Date:   Sun Feb 25 17:16:06 2018 +

oss-fuzz build fix

Change-Id: I64e0839428e238471a75f2609330171e86472429

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 05d35a4e1532..108bdb49da90 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -67,7 +67,7 @@ namespace
 osl::FileBase::getSystemPathFromFileURL(execdir, sExecDir);
 
 rtl::OStringBuffer aBuffer("\n");
-aBuffer.append(OUStringToOString(sExecDir + getExecutableName() + 
".fonts", osl_getThreadTextEncoding());
+aBuffer.append(OUStringToOString(sExecDir + getExecutableName() + 
".fonts", osl_getThreadTextEncoding()));
 
aBuffer.append("/tmp/cache/fontconfig");
 rtl::OString aConf = aBuffer.makeStringAndClear();
 sal_uInt64 aBytesWritten;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2018-02-07 Thread Caolán McNamara
 vcl/workben/fftester.cxx |8 
 1 file changed, 8 insertions(+)

New commits:
commit 5b2b1ee3f3036c64f1343e4544bf7fb7d4ccdfed
Author: Caolán McNamara 
Date:   Wed Feb 7 15:31:10 2018 +

add basic font parsing to fftester

Change-Id: Iaeebbe5dc569450ca1a47dbda15f168fb3b45ac4
Reviewed-on: https://gerrit.libreoffice.org/49362
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 0b44e408cce6..e5bd5dbcd9d4 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -669,6 +669,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 SvFileStream aFileStream(out, StreamMode::READ);
 ret = static_cast((*pfnImport)(aFileStream));
 }
+else if (strcmp(argv[2], "sft") == 0)
+{
+SvFileStream aFileStream(out, StreamMode::READ);
+std::vector aData(aFileStream.remainingSize());
+aFileStream.ReadBytes(aData.data(), aData.size());
+(void)vcl::Font::identifyFont(aData.data(), aData.size());
+}
+
 #endif
 }
 catch (...)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-12-07 Thread Caolán McNamara
 vcl/workben/commonfuzzer.hxx |1 +
 1 file changed, 1 insertion(+)

New commits:
commit a3fdcc1a8cee8485ad0a3777c0652aee4568517b
Author: Caolán McNamara 
Date:   Thu Dec 7 09:09:35 2017 +

incomplete type Graphic

Change-Id: I471d43be4b34f3bdb3db5b5ff316ff0a414c8996

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index ec1d22948cfb..9b6f5728572c 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -20,6 +20,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-11-22 Thread Caolán McNamara
 vcl/workben/commonfuzzer.hxx |1 +
 vcl/workben/fftester.cxx |1 +
 2 files changed, 2 insertions(+)

New commits:
commit 1dcfa88c307d2f3ebe6d42fe00570c25c1efacf8
Author: Caolán McNamara 
Date:   Wed Nov 22 16:43:37 2017 +

ofz#4386/ofz#4387 Abrt

Change-Id: I2ed1ade1322102a0d6ac623156b9d3c2084b481c
Reviewed-on: https://gerrit.libreoffice.org/45102
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index e8fc91ec4f83..ec1d22948cfb 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -80,6 +80,7 @@ void CommonInitialize(int *argc, char ***argv)
 setenv("SAL_USE_VCLPLUGIN", "svp", 1);
 setenv("JPEGMEM", "768M", 1);
 setenv("SC_MAX_MATRIX_ELEMENTS", "6000", 1);
+setenv("SC_NO_THREADED_CALCULATION", "1", 1);
 setenv("SAL_WMF_COMPLEXCLIP_VIA_REGION", "1", 1);
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
 setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 87c99203e8f5..591a28589022 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -73,6 +73,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 setenv("SAL_USE_VCLPLUGIN", "svp", 1);
 setenv("JPEGMEM", "768M", 1);
 setenv("SC_MAX_MATRIX_ELEMENTS", "6000", 1);
+setenv("SC_NO_THREADED_CALCULATION", "1", 1);
 setenv("SAL_WMF_COMPLEXCLIP_VIA_REGION", "1", 1);
 setenv("SAL_DISABLE_PRINTERLIST", "1", 1);
 setenv("SAL_DISABLE_DEFAULTPRINTER", "1", 1);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-11-21 Thread Caolán McNamara
 vcl/workben/commonfuzzer.hxx |1 +
 vcl/workben/fftester.cxx |2 ++
 2 files changed, 3 insertions(+)

New commits:
commit 6e3f7cd2d5b4f29987a266de0c897a750e891e6c
Author: Caolán McNamara 
Date:   Tue Nov 21 13:18:07 2017 +

auto cancel dialogs during file format testing

Change-Id: Iceef2f46759b28c0d3f60d8dcb8f470af78de3f0
Reviewed-on: https://gerrit.libreoffice.org/45043
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index f19a5824e028..e8fc91ec4f83 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -100,6 +100,7 @@ void CommonInitialize(int *argc, char ***argv)
 comphelper::setProcessServiceFactory( xServiceManager );
 utl::ConfigManager::EnableFuzzing();
 InitVCL();
+Application::SetDialogCancelMode( Application::DialogCancelMode::Silent );
 
 //we don't have a de-init, so inside this leak disabled region...
 //get the font info
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 5615e171bfe5..87c99203e8f5 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -102,6 +102,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 
 InitVCL();
 
+
Application::SetDialogCancelMode(Application::DialogCancelMode::Silent);
+
 if (strcmp(argv[2], "wmf") == 0 || strcmp(argv[2], "emf") == 0)
 {
 GDIMetaFile aGDIMetaFile;
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-11-17 Thread Caolán McNamara
 vcl/workben/ww2fuzzer.cxx |4 
 vcl/workben/ww6fuzzer.cxx |4 
 vcl/workben/ww8fuzzer.cxx |4 
 3 files changed, 12 insertions(+)

New commits:
commit 01cc5c2bc927fa1515d04cb509e420b86a02e74d
Author: Caolán McNamara 
Date:   Fri Nov 17 12:10:39 2017 +

ofz#4245 need more components

Change-Id: Iab8d50dff1f20a31f7863217cfa69fb73727e4ef
Reviewed-on: https://gerrit.libreoffice.org/44874
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/ww2fuzzer.cxx b/vcl/workben/ww2fuzzer.cxx
index 75dc001109b8..6ec5be024623 100644
--- a/vcl/workben/ww2fuzzer.cxx
+++ b/vcl/workben/ww2fuzzer.cxx
@@ -17,6 +17,7 @@
 extern "C" {
 void * unoxml_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
+void * ucb_component_getFactory( const char* , void* , void* );
 void * emfio_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_comp_framework_Desktop_get_implementation( void *, void * 
);
@@ -33,6 +34,7 @@ void * IndexedPropertyValuesContainer_get_implementation( 
void *, void * );
 void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
+void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -42,6 +44,7 @@ lo_get_factory_map(void)
 { "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
 { "libemfiolo.a", emfio_component_getFactory },
+{ "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
 };
 
@@ -66,6 +69,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation", 
com_sun_star_i18n_Transliteration_get_implementation },
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
+{ "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_comp_uri_UriReferenceFactory_get_implementation},
 { 0, 0 }
 };
 
diff --git a/vcl/workben/ww6fuzzer.cxx b/vcl/workben/ww6fuzzer.cxx
index bccfb87da72d..c92951aa 100644
--- a/vcl/workben/ww6fuzzer.cxx
+++ b/vcl/workben/ww6fuzzer.cxx
@@ -17,6 +17,7 @@
 extern "C" {
 void * unoxml_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
+void * ucb_component_getFactory( const char* , void* , void* );
 void * emfio_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_comp_framework_Desktop_get_implementation( void *, void * 
);
@@ -34,6 +35,7 @@ void * 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, v
 void * com_sun_star_comp_comphelper_OPropertyBag( void *, void * );
 void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
+void * com_sun_star_comp_uri_UriReferenceFactory_get_implementation( void *, 
void * );
 }
 
 const lib_to_factory_mapping *
@@ -43,6 +45,7 @@ lo_get_factory_map(void)
 { "libunoxmllo.a", unoxml_component_getFactory },
 { "libi18npoollo.a", i18npool_component_getFactory },
 { "libemfiolo.a", emfio_component_getFactory },
+{ "libucb1.a", ucb_component_getFactory },
 { 0, 0 }
 };
 
@@ -68,6 +71,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_comp_comphelper_OPropertyBag", 
com_sun_star_comp_comphelper_OPropertyBag },
 { "com_sun_star_i18n_Transliteration_get_implementation", 
com_sun_star_i18n_Transliteration_get_implementation },
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
+{ "com_sun_star_comp_uri_UriReferenceFactory_get_implementation", 
com_sun_star_comp_uri_UriReferenceFactory_get_implementation},
 { 0, 0 }
 };
 
diff --git a/vcl/workben/ww8fuzzer.cxx b/vcl/workben/ww8fuzzer.cxx
index ea2bcdd31c62..16f49f119e15 100644
--- a/vcl/workben/ww8fuzzer.cxx
+++ b/vcl/workben/ww8fuzzer.cxx
@@ -17,6 +17,7 @@
 extern "C" {
 void * unoxml_component_getFactory( const char* , void* , void* );
 void * i18npool_component_getFactory( const char* , void* , void* );
+void * ucb_component_getFactory( const char* , void* , void* );
 void * emfio_component_getFactory( const char* , void* , void* );
 
 void * com_sun_star_comp_framework_Desktop_get_implementation( void *, void * 
);
@@ -34,6 +35,7 @@ void * 
com_sun_star_comp_uui_UUIInteractionHandler

[Libreoffice-commits] core.git: vcl/workben

2017-11-16 Thread Caolán McNamara
 vcl/workben/ww2fuzzer.cxx |2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0845ef8cdbd00474575885a71a409f3a86cfabc5
Author: Caolán McNamara 
Date:   Thu Nov 16 09:34:27 2017 +

ofz#4245 Abrt add more services

Change-Id: I0241ab5a96b0ba2a458eb34c37ea76e23efe839b

diff --git a/vcl/workben/ww2fuzzer.cxx b/vcl/workben/ww2fuzzer.cxx
index 7965b3bfd32b..75dc001109b8 100644
--- a/vcl/workben/ww2fuzzer.cxx
+++ b/vcl/workben/ww2fuzzer.cxx
@@ -30,6 +30,7 @@ void * 
com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void *
 void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, 
void * );
 void * com_sun_star_comp_graphic_GraphicProvider_get_implementation( void *, 
void * );
 void * IndexedPropertyValuesContainer_get_implementation( void *, void * );
+void * com_sun_star_comp_uui_UUIInteractionHandler_get_implementation( void *, 
void * );
 void * com_sun_star_i18n_Transliteration_get_implementation( void *, void * );
 void * com_sun_star_text_DefaultNumberingProvider_get_implementation( void *, 
void * );
 }
@@ -62,6 +63,7 @@ lo_get_constructor_map(void)
 { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", 
com_sun_star_i18n_NumberFormatCodeMapper_get_implementation },
 { "com_sun_star_comp_graphic_GraphicProvider_get_implementation", 
com_sun_star_comp_graphic_GraphicProvider_get_implementation },
 { "IndexedPropertyValuesContainer_get_implementation", 
IndexedPropertyValuesContainer_get_implementation },
+{ "com_sun_star_comp_uui_UUIInteractionHandler_get_implementation", 
com_sun_star_comp_uui_UUIInteractionHandler_get_implementation },
 { "com_sun_star_i18n_Transliteration_get_implementation", 
com_sun_star_i18n_Transliteration_get_implementation },
 { "com_sun_star_text_DefaultNumberingProvider_get_implementation", 
com_sun_star_text_DefaultNumberingProvider_get_implementation },
 { 0, 0 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-11-08 Thread Caolán McNamara
 vcl/workben/fftester.cxx |   12 
 1 file changed, 12 insertions(+)

New commits:
commit e3e4b799d9f0d04065397f05deefbb029a5ee7b1
Author: Caolán McNamara 
Date:   Wed Nov 8 14:34:07 2017 +

mirror fuzzer setup in fftester

Change-Id: I8bcb834a7e297f43fad6a07c2e861897f962e8d4
Reviewed-on: https://gerrit.libreoffice.org/44468
Reviewed-by: Caolán McNamara 
Tested-by: Caolán McNamara 

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 7b61bbb8c40b..548ff3cd0c00 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -30,6 +30,8 @@
 #include 
 
 #include 
+#include 
+#include 
 #include 
 #include 
 #include 
@@ -88,6 +90,16 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 Application::Abort( "Failed to bootstrap" );
 comphelper::setProcessServiceFactory( xServiceManager );
 utl::ConfigManager::EnableAvoidConfig();
+
+// initialise unconfigured UCB:
+css::uno::Reference 
xUcb(comphelper::getProcessServiceFactory()->
+createInstance("com.sun.star.ucb.UniversalContentBroker"), 
css::uno::UNO_QUERY_THROW);
+css::uno::Sequence aArgs(1);
+aArgs[0] <<= OUString("NoConfig");
+css::uno::Reference 
xFileProvider(comphelper::getProcessServiceFactory()->
+
createInstanceWithArguments("com.sun.star.ucb.FileContentProvider", aArgs), 
css::uno::UNO_QUERY_THROW);
+xUcb->registerContentProvider(xFileProvider, "file", true);
+
 InitVCL();
 
 if (strcmp(argv[2], "wmf") == 0 || strcmp(argv[2], "emf") == 0)
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/workben

2017-11-06 Thread Miklos Vajna
 vcl/workben/fftester.cxx |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b2e888a0cd9dc272348b7293a2e8b083f7277cea
Author: Miklos Vajna 
Date:   Mon Nov 6 12:07:19 2017 +0100

vcl: fix loplugin:implicitboolconversion warning

Change-Id: I3f84396def32c657f58842647e9af5d4a48e43be

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index 40dea13576b5..ad8cd79a1af8 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -124,7 +124,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
 {
 SvFileStream aFileStream(out, StreamMode::READ);
 vcl::PNGReader aReader(aFileStream);
-ret = !!aReader.Read();
+ret = (int) !!aReader.Read();
 }
 else if (strcmp(argv[2], "bmp") == 0)
 {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


  1   2   3   >