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

New commits:
commit e7f59e39a0aca2a8a363fc0edcf25fb5aaada7a5
Author: Albert Astals Cid <aa...@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 <aa...@kde.org>
+// Copyright (C) 2005-2018 Albert Astals Cid <aa...@kde.org>
 // Copyright (C) 2005 Marco Pesenti Gritti <m...@redhat.com>
 // Copyright (C) 2010-2016 Thomas Freitag <thomas.frei...@alfa.de>
 // Copyright (C) 2010 Christian Feuersänger <cfeuersaen...@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;
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to