aboutsummaryrefslogtreecommitdiffstats
path: root/community/heirloom-mailx/mailx-12.5-lzw.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/heirloom-mailx/mailx-12.5-lzw.patch')
-rw-r--r--community/heirloom-mailx/mailx-12.5-lzw.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/heirloom-mailx/mailx-12.5-lzw.patch b/community/heirloom-mailx/mailx-12.5-lzw.patch
new file mode 100644
index 0000000000..2dc1fbccf9
--- /dev/null
+++ b/community/heirloom-mailx/mailx-12.5-lzw.patch
@@ -0,0 +1,12 @@
+diff -Nrbu mailx-12.5/lzw.c mailx-12.5-OK/lzw.c
+--- mailx-12.5/lzw.c 2006-03-04 03:32:16.000000000 +0300
++++ mailx-12.5-OK/lzw.c 2011-08-17 16:30:01.000000000 +0400
+@@ -516,6 +516,8 @@
+
+ /* Generate output characters in reverse order. */
+ while (code >= 256) {
++ if (stackp - de_stack >= HSIZE - 1)
++ return -1;
+ *stackp++ = tab_suffixof(code);
+ code = tab_prefixof(code);
+ }