splash/Splash.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4e142b60790638e4495b4fd6551702470cf4c38f
Author: Albert Astals Cid <[email protected]>
Date: Mon Mar 4 20:12:01 2013 +0100
Make sure we don't try to paint in x < 0
Fixes crash in KDE bug #315432
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 3d80c4c..cd0ec72 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -3927,6 +3927,8 @@ SplashError
Splash::arbitraryTransformImage(SplashImageSource src, void *srcData
xa = imgCoordMungeLower(section[i].xa0 +
((SplashCoord)y + 0.5 - section[i].ya0) *
section[i].dxdya);
+ if (unlikely(xa < 0))
+ xa = 0;
xb = imgCoordMungeUpper(section[i].xb0 +
((SplashCoord)y + 0.5 - section[i].yb0) *
section[i].dxdyb);
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler