summaryrefslogtreecommitdiff
path: root/splash/Splash.cc
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-13 15:03:45 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-13 15:03:45 +0200
commit2549552043acf0a98f64360853ce37e6e045c35a (patch)
tree692caf9d62b28b7aa480b809a5be93f4760f26c0 /splash/Splash.cc
parenta1901ee99bf46beac43d129bb3f6ad2f9ed758af (diff)
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.
Diffstat (limited to 'splash/Splash.cc')
-rw-r--r--splash/Splash.cc2
1 files changed, 1 insertions, 1 deletions
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]);