summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2018-05-23 15:38:26 +0200
committerAlbert Astals Cid <aacid@kde.org>2018-05-23 19:11:35 +0200
commitf5fb32bd4b64040dc0f9b9e1555dabce804ba566 (patch)
tree6e9618489ce236d238d048d026591d09ad76574c /splash
parent0318e1667c7b137493f22be61b835eb914f68fa9 (diff)
Splash::scaleMaskYuXu: Also check for srcHeight <= 0
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index fc92bc18..0ee71077 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -3550,8 +3550,8 @@ void Splash::scaleMaskYuXu(SplashImageMaskSource src, void *srcData,
return;
}
- if (unlikely(srcWidth <= 0)) {
- error(errSyntaxError, -1, "srcWidth <= 0 in Splash::scaleMaskYuXu");
+ if (unlikely(srcWidth <= 0 || srcHeight <= 0)) {
+ error(errSyntaxError, -1, "srcWidth <= 0 || srcHeight <= 0 in Splash::scaleMaskYuXu");
return;
}