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

Caolán McNamara caolanm at redhat.com
Thu Dec 29 21:01:48 UTC 2016


 vcl/workben/wmffuzzer.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 0d60ef79bb06fbabbc4ebbff0d583470f2f582c7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 29 21:00:45 2016 +0000

    Related: ofz#224 wrong way around
    
    Change-Id: I59b1975ed6bdf2b2c51b582db620208e622af654

diff --git a/vcl/workben/wmffuzzer.cxx b/vcl/workben/wmffuzzer.cxx
index 97c90e1..192573a 100644
--- a/vcl/workben/wmffuzzer.cxx
+++ b/vcl/workben/wmffuzzer.cxx
@@ -60,14 +60,14 @@ namespace
 
 extern "C"
 {
-    __attribute__((weak)) void __lsan_enable();
     __attribute__((weak)) void __lsan_disable();
+    __attribute__((weak)) void __lsan_enable();
 }
 
 extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
 {
-    if (__lsan_enable)
-        __lsan_enable();
+    if (__lsan_disable)
+        __lsan_disable();
 
     setenv("SAL_USE_VCLPLUGIN", "svp", 1);
 
@@ -85,8 +85,8 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
     utl::ConfigManager::EnableAvoidConfig();
     InitVCL();
 
-    if (__lsan_disable)
-        __lsan_disable();
+    if (__lsan_enable)
+        __lsan_enable();
 
     return 0;
 }


More information about the Libreoffice-commits mailing list