diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-05-23 15:38:26 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-05-23 19:11:35 +0200 |
commit | f5fb32bd4b64040dc0f9b9e1555dabce804ba566 (patch) | |
tree | 6e9618489ce236d238d048d026591d09ad76574c /splash | |
parent | 0318e1667c7b137493f22be61b835eb914f68fa9 (diff) |
Splash::scaleMaskYuXu: Also check for srcHeight <= 0
Diffstat (limited to 'splash')
-rw-r--r-- | splash/Splash.cc | 4 |
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; } |