Blame SOURCES/mailx-12.5-lzw.patch

9be2d0
diff -Nrbu mailx-12.5/lzw.c mailx-12.5-OK/lzw.c
9be2d0
--- mailx-12.5/lzw.c	2006-03-04 03:32:16.000000000 +0300
9be2d0
+++ mailx-12.5-OK/lzw.c	2011-08-17 16:30:01.000000000 +0400
9be2d0
@@ -516,6 +516,8 @@
9be2d0
 
9be2d0
 		/* Generate output characters in reverse order. */
9be2d0
 		while (code >= 256) {
9be2d0
+			if (stackp - de_stack >= HSIZE - 1)
9be2d0
+				return -1;
9be2d0
 			*stackp++ = tab_suffixof(code);
9be2d0
 			code = tab_prefixof(code);
9be2d0
 		}