summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-11-04 20:57:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-11-05 09:50:49 +0100
commit966227d9d1e6301f3c39c135d966e433f0c83771 (patch)
treea47ead7f50333d7b5fa1e6f7b08054219796cb97
parent780d83771af89e6b27b3618d9c033c3fb29ba803 (diff)
ofz#18653 slow and uninteresting
Change-Id: I9043de56063caec225850eb1103435b44640781e Reviewed-on: https://gerrit.libreoffice.org/82043 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/filter/png/pngread.cxx3
1 files changed, 3 insertions, 0 deletions
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));
}
}