Blame SOURCES/rh1367357.patch

ab03fc
diff --git a/src/share/native/sun/java2d/cmm/lcms/cmstypes.c b/src/share/native/sun/java2d/cmm/lcms/cmstypes.c
ab03fc
--- openjdk/jdk/src/share/native/sun/java2d/cmm/lcms/cmstypes.c
ab03fc
+++ openjdk/jdk/src/share/native/sun/java2d/cmm/lcms/cmstypes.c
ab03fc
@@ -1484,6 +1484,7 @@
ab03fc
 
ab03fc
         // Check for overflow
ab03fc
         if (Offset < (SizeOfHeader + 8)) goto Error;
ab03fc
+        if ((Offset + Len) > SizeOfTag + 8) goto Error;
ab03fc
 
ab03fc
         // True begin of the string
ab03fc
         BeginOfThisString = Offset - SizeOfHeader - 8;