[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Fri May 25 17:47:52 UTC 2018


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

New commits:
commit 86777478387577aee8242eb2f11932041e87eff5
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri May 25 19:44:50 2018 +0200

    Splash::fillWithPattern: initialize pipe
    
    Makes sure if things fail we're not painting with uninitialized memory
    
    fixes oss-fuzz/8538

diff --git a/splash/Splash.cc b/splash/Splash.cc
index 93eef341..14f40cd7 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -2483,7 +2483,7 @@ inline void Splash::getBBoxFP(SplashPath *path, SplashCoord *xMinA, SplashCoord
 SplashError Splash::fillWithPattern(SplashPath *path, GBool eo,
 				    SplashPattern *pattern,
 				    SplashCoord alpha) {
-  SplashPipe pipe;
+  SplashPipe pipe = {};
   SplashXPath *xPath;
   SplashXPathScanner *scanner;
   int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y;


More information about the poppler mailing list