[poppler] splash/Splash.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 10 22:15:35 UTC 2021


 splash/Splash.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 001f17def990e3ec1687fe1cc13c58b7df5b7745
Author: Even Rouault <even.rouault at spatialys.com>
Date:   Tue Aug 10 12:36:59 2021 +0200

    Splash::gouraudTriangleShadedFill(): relax assertion threshold
    
    On the reproducer file of
    https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34505, the 1e-10
    threshold is hit. Relaxing it to 1e-9 avoids the assertion.

diff --git a/splash/Splash.cc b/splash/Splash.cc
index f5af0d60..1ccf525a 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -5442,7 +5442,7 @@ bool Splash::gouraudTriangleShadedFill(SplashGouraudColor *shading)
                         if (!clip->test(X, Y))
                             continue;
 
-                        assert(fabs(colorinterp - (scanColorMap0 * X + scanColorMap1)) < 1e-10);
+                        assert(fabs(colorinterp - (scanColorMap0 * X + scanColorMap1)) < 1e-9);
                         assert(bitmapOff == Y * rowSize + colorComps * X && scanLineOff == Y * rowSize);
 
                         shading->getParameterizedColor(colorinterp, bitmapMode, &bitmapData[bitmapOff]);


More information about the poppler mailing list