[poppler] splash/Splash.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 13 13:35:35 UTC 2021


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

New commits:
commit 2549552043acf0a98f64360853ce37e6e045c35a
Author: Even Rouault <even.rouault at spatialys.com>
Date:   Mon Sep 13 15:03:45 2021 +0200

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

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


More information about the poppler mailing list