aboutsummaryrefslogtreecommitdiff
path: root/sysutils/screen
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-06-21 11:20:48 +0000
committerCy Schubert <cy@FreeBSD.org>2016-06-21 11:20:48 +0000
commitf2e766b1be60deea7f02921bcd88c770dd70445c (patch)
treeab4d3280723c7ecc5b4fe74ec0aee2990eac1b86 /sysutils/screen
parentd44a63271538de9feeae169cfcf85df9b577e511 (diff)
downloadports-f2e766b1be60deea7f02921bcd88c770dd70445c.tar.gz
ports-f2e766b1be60deea7f02921bcd88c770dd70445c.zip
Notes
Diffstat (limited to 'sysutils/screen')
-rw-r--r--sysutils/screen/Makefile3
-rw-r--r--sysutils/screen/distinfo5
-rw-r--r--sysutils/screen/files/patch-CVE-2015-680655
-rw-r--r--sysutils/screen/files/patch-os.h17
-rw-r--r--sysutils/screen/files/patch-utmp.c10
5 files changed, 24 insertions, 66 deletions
diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile
index 3730c6df3e00..7c278ab1c94b 100644
--- a/sysutils/screen/Makefile
+++ b/sysutils/screen/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= screen
-PORTVERSION= 4.3.1
-PORTREVISION= 2
+PORTVERSION= 4.4.0
CATEGORIES= sysutils
MASTER_SITES= http://ftp.gnu.org/gnu/screen/ \
ftp://ftp.gnu.org/gnu/screen/ \
diff --git a/sysutils/screen/distinfo b/sysutils/screen/distinfo
index a1a282cde248..4203f4d8eb75 100644
--- a/sysutils/screen/distinfo
+++ b/sysutils/screen/distinfo
@@ -1,2 +1,3 @@
-SHA256 (screen-4.3.1.tar.gz) = fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63
-SIZE (screen-4.3.1.tar.gz) = 845958
+TIMESTAMP = 1466506261
+SHA256 (screen-4.4.0.tar.gz) = ef722a54759a3bf23aad272bbf33c414c1078cad6bcd982fada93c0d7917218b
+SIZE (screen-4.4.0.tar.gz) = 846010
diff --git a/sysutils/screen/files/patch-CVE-2015-6806 b/sysutils/screen/files/patch-CVE-2015-6806
deleted file mode 100644
index fac3aa79325c..000000000000
--- a/sysutils/screen/files/patch-CVE-2015-6806
+++ /dev/null
@@ -1,55 +0,0 @@
-From b7484c224738247b510ed0d268cd577076958f1b 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.
----
-diff --git a/src/ansi.c b/src/ansi.c
-index a342fb1..152d2ef 100644
---- ansi.c
-+++ ansi.c
-@@ -2502,13 +2502,13 @@ int n, ys, ye, bce;
- 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 @@ int n, ys, ye, bce;
- }
- 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 */
---
-cgit v0.9.0.2
diff --git a/sysutils/screen/files/patch-os.h b/sysutils/screen/files/patch-os.h
index 67ebdc446c45..263ec5724cb8 100644
--- a/sysutils/screen/files/patch-os.h
+++ b/sysutils/screen/files/patch-os.h
@@ -1,6 +1,17 @@
---- os.h.orig 2014-04-26 03:58:35.000000000 -0700
-+++ os.h 2014-04-29 19:16:31.730773575 -0700
-@@ -524,6 +528,6 @@
+--- os.h.orig 2016-06-19 12:41:03.000000000 -0700
++++ os.h 2016-06-21 04:13:47.509485000 -0700
+@@ -252,7 +252,9 @@
+ #if defined(UTMPOK) || defined(BUGGYGETLOGIN)
+ # if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux)
+ # include <utmpx.h>
+-# define UTMPFILE UTMPX_FILE
++# ifdef UTMPX_FILE /* GNU extension */
++# define UTMPFILE UTMPX_FILE
++# endif
+ # define utmp utmpx
+ # define getutent getutxent
+ # define getutid getutxid
+@@ -524,6 +526,6 @@
/* Changing those you won't be able to attach to your old sessions
* when changing those values in official tree don't forget to bump
* MSG_VERSION */
diff --git a/sysutils/screen/files/patch-utmp.c b/sysutils/screen/files/patch-utmp.c
index 9b2335d316e7..53edc3fd18c1 100644
--- a/sysutils/screen/files/patch-utmp.c
+++ b/sysutils/screen/files/patch-utmp.c
@@ -1,5 +1,5 @@
---- utmp.c.orig 2015-06-28 14:37:40.000000000 -0700
-+++ utmp.c 2015-07-02 13:22:34.463948044 -0700
+--- utmp.c.orig 2016-06-19 12:41:03.000000000 -0700
++++ utmp.c 2016-06-21 04:10:22.500131000 -0700
@@ -26,6 +26,7 @@
****************************************************************
*/
@@ -88,10 +88,11 @@
/* must use temp variable because of NetBSD/sparc64, where
* ut_xtime is long(64) but time_t is int(32) */
(void)time(&now);
+- u->ut_time = now;
+#if defined(__FreeBSD_version) && __FreeBSD_version < 900000
+ u->ut_time = now;
+#else
- u->ut_tv.tv_sec = now;
++ u->ut_tv.tv_sec = now;
+#endif
}
@@ -100,10 +101,11 @@
strncpy(u->ut_line, line, sizeof(u->ut_line));
strncpy(u->ut_name, user, sizeof(u->ut_name));
(void)time(&now);
+- u->ut_time = now;
+#if defined(__FreeBSD_version) && __FreeBSD_version < 900000
+ u->ut_time = now;
+#else
- u->ut_tv.tv_sec = now;
++ u->ut_tv.tv_sec = now;
+#endif
}