diff options
author | ryoon <ryoon> | 2016-06-20 16:04:44 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2016-06-20 16:04:44 +0000 |
commit | 19f65f6f57fb477eae3bf2ca019c18553f6f835f (patch) | |
tree | 4d36c4c9235ed67e51e2826fd2e5179349544ef8 /misc/screen/patches/patch-ansi.c | |
parent | 0fa590ee9201d69d4914453d99e14ec241a2ccfd (diff) | |
download | pkgsrc-19f65f6f57fb477eae3bf2ca019c18553f6f835f.tar.gz |
Update to 4.4.0
Changelog:
Version 4.4.0 (19/06/2016):
* Support up to 24 function keys
* Fix runtime issues
* 'logfile' command, starts logging into new file upon changing
Diffstat (limited to 'misc/screen/patches/patch-ansi.c')
-rw-r--r-- | misc/screen/patches/patch-ansi.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/misc/screen/patches/patch-ansi.c b/misc/screen/patches/patch-ansi.c deleted file mode 100644 index 44ca07729b6..00000000000 --- a/misc/screen/patches/patch-ansi.c +++ /dev/null @@ -1,57 +0,0 @@ -$NetBSD: patch-ansi.c,v 1.1 2015/09/01 13:34:47 kim Exp $ - -Fix for bug 45713, adapted from this master branch commit: -http://git.savannah.gnu.org/cgit/screen.git/patch/?id=c336a32a1dcd445e6b83827f83531d4c6414e2cd - -From c336a32a1dcd445e6b83827f83531d4c6414e2cd Mon Sep 17 00:00:00 2001 -From: Kuang-che Wu <kcwu@csie.org> -Date: Mon, 31 Aug 2015 17:49:57 +0000 -Subject: Fix stack overflow due to too deep recursion - -Bug: 45713 - -How to reproduce: -Run this command inside screen -$ printf '\x1b[10000000T' - -screen will recursively call MScrollV to depth n/256. -This is time consuming and will overflow stack if n is huge. - ---- ansi.c.orig 2015-06-28 21:22:55.000000000 +0000 -+++ ansi.c 2015-09-01 13:02:33.000000000 +0000 -@@ -2502,13 +2502,13 @@ - return; - if (n > 0) - { -+ if (ye - ys + 1 < n) -+ n = ye - ys + 1; - if (n > 256) - { - MScrollV(p, n - 256, ys, ye, bce); - n = 256; - } -- if (ye - ys + 1 < n) -- n = ye - ys + 1; - #ifdef COPY_PASTE - if (compacthist) - { -@@ -2562,14 +2562,14 @@ - } - else - { -- if (n < -256) -- { -- MScrollV(p, n + 256, ys, ye, bce); -- n = -256; -- } - n = -n; - if (ye - ys + 1 < n) - n = ye - ys + 1; -+ if (n > 256) -+ { -+ MScrollV(p, - (n - 256), ys, ye, bce); -+ n = 256; -+ } - - ml = p->w_mlines + ye; - /* Clear lines */ |