Commit 577330ee authored by Albert Astals Cid's avatar Albert Astals Cid

* splash/Splash.cc:

       * splash/SplashErrorCodes.h: Do not crash on documents that report a
         0x0 mask for an image, like
         http://bugs.kde.org/attachment.cgi?id=18083&action=view
parent 42c016c6
2006-10-12 Albert Astals Cid <aacid@kde.org>
* splash/Splash.cc:
* splash/SplashErrorCodes.h: Do not crash on documents that report a
0x0 mask for an image, like
http://bugs.kde.org/attachment.cgi?id=18083&action=view
2006-10-08 Albert Astals Cid <aacid@kde.org>
* poppler/Link.cc:
......
......@@ -2515,6 +2515,8 @@ SplashError Splash::fillImageMask(SplashImageMaskSource src, void *srcData,
(double)mat[3], (double)mat[4], (double)mat[5]);
}
if (w == 0 && h == 0) return splashErrZeroImage;
// check for singular matrix
if (splashAbs(mat[0] * mat[3] - mat[1] * mat[2]) < 0.000001) {
return splashErrSingularMatrix;
......
......@@ -27,4 +27,6 @@
#define splashErrSingularMatrix 8 // matrix is singular
#define splashErrZeroImage 9 // image of 0x0
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment