[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Aug 19 14:02:57 PDT 2015


 splash/Splash.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 3e61c7523416157acadec7fe59429f880a9d0310
Author: William Bader <williambader at hotmail.com>
Date:   Wed Aug 19 23:01:41 2015 +0200

    Splash: Fix wrong memory access
    
    Bug #91686

diff --git a/splash/Splash.cc b/splash/Splash.cc
index e07fa06..7453822 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -3208,6 +3208,8 @@ void Splash::arbitraryTransformMask(SplashImageMaskSource src, void *srcData,
 			         ((SplashCoord)y + 0.5 - section[i].yb0) *
 			           section[i].dxdyb,
 			       glyphMode);
+      if (unlikely(xa < 0))
+        xa = 0;
       // make sure narrow images cover at least one pixel
       if (xa == xb) {
 	++xb;


More information about the poppler mailing list