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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 5 08:51:47 UTC 2019


 vcl/source/filter/png/pngread.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 966227d9d1e6301f3c39c135d966e433f0c83771
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 4 20:57:33 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Nov 5 09:50:49 2019 +0100

    ofz#18653 slow and uninteresting
    
    Change-Id: I9043de56063caec225850eb1103435b44640781e
    Reviewed-on: https://gerrit.libreoffice.org/82043
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/filter/png/pngread.cxx b/vcl/source/filter/png/pngread.cxx
index 286b2680d1df..aa452bf51a01 100644
--- a/vcl/source/filter/png/pngread.cxx
+++ b/vcl/source/filter/png/pngread.cxx
@@ -867,6 +867,9 @@ void PNGReaderImpl::ImplGetBackground()
                 sal_uInt8 nRed = ImplScaleColor();
                 sal_uInt8 nGreen = ImplScaleColor();
                 sal_uInt8 nBlue = ImplScaleColor();
+                // ofz#18653 slow and uninteresting
+                if (!utl::ConfigManager::IsFuzzing())
+                    return;
                 mxAcc->Erase(Color(nRed, nGreen, nBlue));
             }
         }


More information about the Libreoffice-commits mailing list