[poppler] splash/Splash.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue May 22 16:23:57 UTC 2018


 splash/Splash.cc |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit e7f59e39a0aca2a8a363fc0edcf25fb5aaada7a5
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue May 22 18:22:29 2018 +0200

    Splash::scaleMaskYuXu: Fix crash on malformed files
    
    fixes oss-fuzz/8435
    fixes oss-fuzz/8441

diff --git a/splash/Splash.cc b/splash/Splash.cc
index ca5c99d0..fc92bc18 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -11,7 +11,7 @@
 // All changes made under the Poppler project to this file are licensed
 // under GPL version 2 or later
 //
-// Copyright (C) 2005-2017 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2018 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2005 Marco Pesenti Gritti <mpg at redhat.com>
 // Copyright (C) 2010-2016 Thomas Freitag <Thomas.Freitag at alfa.de>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaenger at googlemail.com>
@@ -3550,6 +3550,11 @@ void Splash::scaleMaskYuXu(SplashImageMaskSource src, void *srcData,
     return;
   }
 
+  if (unlikely(srcWidth <= 0)) {
+    error(errSyntaxError, -1, "srcWidth <= 0 in Splash::scaleMaskYuXu");
+    return;
+  }
+
   // Bresenham parameters for y scale
   yp = scaledHeight / srcHeight;
   yq = scaledHeight % srcHeight;


More information about the poppler mailing list