View | Details | Raw Unified | Return to bug 269390
Collapse All | Expand All

(-)b/sysutils/tmux/Makefile (+1 lines)
Lines 1-5 Link Here
1
PORTNAME=	tmux
1
PORTNAME=	tmux
2
PORTVERSION=	3.3a
2
PORTVERSION=	3.3a
3
PORTREVISION=	1
3
CATEGORIES=	sysutils
4
CATEGORIES=	sysutils
4
MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
5
MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
5
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
6
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
(-)b/sysutils/tmux/distinfo (-1 / +3 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1657892731
1
TIMESTAMP = 1675792095
2
SHA256 (tmux-3.3a.tar.gz) = e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f
2
SHA256 (tmux-3.3a.tar.gz) = e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f
3
SIZE (tmux-3.3a.tar.gz) = 677448
3
SIZE (tmux-3.3a.tar.gz) = 677448
4
SHA256 (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 4e4f791c446e3cab1a02d39a30fbfd4cec6c7e3119365860a04c9de205eaa626
4
SHA256 (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 4e4f791c446e3cab1a02d39a30fbfd4cec6c7e3119365860a04c9de205eaa626
5
SIZE (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 8726
5
SIZE (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 8726
6
SHA256 (e86752820993a00e3d28350cbe46878ba95d9012.patch) = 0770e20eea3eeeff5b81a1d0311d7862f027982867a540b50cf47e37541f5778
7
SIZE (e86752820993a00e3d28350cbe46878ba95d9012.patch) = 2108
(-)b/sysutils/tmux/files/patch-cve_2022-47016 (+58 lines)
Added Link Here
1
Index: control.c
2
===================================================================
3
--- control.c
4
+++ control.c
5
@@ -775,6 +775,9 @@ control_start(struct client *c)
6
 
7
 	cs->read_event = bufferevent_new(c->fd, control_read_callback,
8
 	    control_write_callback, control_error_callback, c);
9
+	if (cs->read_event == NULL)
10
+		fatalx("out of memory");
11
+
12
 	bufferevent_enable(cs->read_event, EV_READ);
13
 
14
 	if (c->flags & CLIENT_CONTROLCONTROL)
15
@@ -782,6 +785,8 @@ control_start(struct client *c)
16
 	else {
17
 		cs->write_event = bufferevent_new(c->out_fd, NULL,
18
 		    control_write_callback, control_error_callback, c);
19
+		if (cs->write_event == NULL)
20
+			fatalx("out of memory");
21
 	}
22
 	bufferevent_setwatermark(cs->write_event, EV_WRITE, CONTROL_BUFFER_LOW,
23
 	    0);
24
Index: file.c
25
===================================================================
26
--- file.c
27
+++ file.c
28
@@ -585,6 +585,8 @@ file_write_open(struct client_files *fil
29
 
30
 	cf->event = bufferevent_new(cf->fd, NULL, file_write_callback,
31
 	    file_write_error_callback, cf);
32
+	if (cf->event == NULL)
33
+		fatalx("out of memory");
34
 	bufferevent_enable(cf->event, EV_WRITE);
35
 	goto reply;
36
 
37
@@ -744,6 +746,8 @@ file_read_open(struct client_files *file
38
 
39
 	cf->event = bufferevent_new(cf->fd, file_read_callback, NULL,
40
 	    file_read_error_callback, cf);
41
+	if (cf->event == NULL)
42
+		fatalx("out of memory");
43
 	bufferevent_enable(cf->event, EV_READ);
44
 	return;
45
 
46
Index: window.c
47
===================================================================
48
--- window.c
49
+++ window.c
50
@@ -1042,6 +1042,8 @@ window_pane_set_event(struct window_pane
51
 
52
 	wp->event = bufferevent_new(wp->fd, window_pane_read_callback,
53
 	    NULL, window_pane_error_callback, wp);
54
+	if (wp->event == NULL)
55
+		fatalx("out of memory");
56
 	wp->ictx = input_init(wp, wp->event, &wp->palette);
57
 
58
 	bufferevent_enable(wp->event, EV_READ|EV_WRITE);

Return to bug 269390