From nobody Wed Feb 22 12:00:14 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PMF8b21xLz3svWn; Wed, 22 Feb 2023 12:00:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PMF8b1BvYz3Gyh; Wed, 22 Feb 2023 12:00:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677067215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fqra4krLAGMv7SfA+Ym5JP2ERazk6zdkVvHrRaEGkao=; b=IuLNVPg6kZp+Hse36T1uFwZLWSDgdf3ffhPDHKb7QQRCR991X6hgMvQ7YO9IaxlQssEqSQ K6vhsNkr1V3xpBsAllFIqeO7XZsNMjxcBNRNwJ9lwzUB61uuMwD0YYLjOpYZMcGUjeoxQx MuTAP2YjWJgoG0/20X+Ns6kZjjfEwseprwfQdM4CLZYC8w+jyMF+FzhZ7TLr3RYCZ0NpeF he/bJa4jZ5PVVBHsASt2FXUwhbWBIvoaFPMaGY5Xt5bp89zbYeGmRu2It3p8L8uh9vy5G9 DyLiDPdc5uC05+LlYijWWY30t39B8XRURwZ8bX6kz7ARQoC5miU3tW6s/TPWIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677067215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Fqra4krLAGMv7SfA+Ym5JP2ERazk6zdkVvHrRaEGkao=; b=jninLZ+Bve7vQyxLlB57NuqAcJtq92hBx4O8MKgaBMyrEL3S2Tex0pC7so4bS2TMw0cYWG Pekq2PvRaINb5g50Rj1B5yoH6GeLEDpnjRzC7goGe0zQwkoPjQ2sq6XW219KdXRlIFKt9l 3WPyvR7R43l5tLb32g1mFA0oczFnGm/i25BX4XgUIACWMJdQjg4voMyuoCTvQmdKQfZanF c4ifBs6TthcnMe8MU2W26sgmeGG5uioG9P5AFlPVDn6a+KSiyuPuWw+SKo0MlBidl2e4ql mgacYxTqUFDItoB3mnXMEltmqPzz7Jfx3SKITW8Ycs8IXkSmzaP0WI7TYmAdYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677067215; a=rsa-sha256; cv=none; b=iYKsO7oJZrrwWGu1azEixEu2uZX+VYTn5MuEylxc3iBABUMrGWju+iteLc8hEqq8204qQQ vaojqM5HtdbsZnLBtFEm/+eg0kJoGYVUt5egTXALKDuvLe2fz+f1njSoc92hY6xUno96Dl uR/yVex82HwarlLwOGIFSS98nzwC6vdYEUsf3z5VS1H40eUHKMi5j9qy09VSOScYdZIowG wGJw0+GuoR/7tMSTAGH+L4hUynDYIUErsXP+e4Gc4S3pTxiwl/WBHBAAiM3dc+q8PUZ4NI oSBgvevAM5QwOpZY9ud4kXIR86dE2b+GLAmQf07JWrXOpIpebv1rABVzRhvGAQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PMF8b0G7Dz10cp; Wed, 22 Feb 2023 12:00:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31MC0EVJ006960; Wed, 22 Feb 2023 12:00:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31MC0EBp006954; Wed, 22 Feb 2023 12:00:14 GMT (envelope-from git) Date: Wed, 22 Feb 2023 12:00:14 GMT Message-Id: <202302221200.31MC0EBp006954@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mathieu Arnold Subject: git: 061012446971 - main - sysutils/tmux: fix some NULL pointer List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mat X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0610124469717aef109a8b83c4d303f1facb149c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mat: URL: https://cgit.FreeBSD.org/ports/commit/?id=0610124469717aef109a8b83c4d303f1facb149c commit 0610124469717aef109a8b83c4d303f1facb149c Author: Daniel Engberg AuthorDate: 2023-02-22 11:58:25 +0000 Commit: Mathieu Arnold CommitDate: 2023-02-22 11:59:34 +0000 sysutils/tmux: fix some NULL pointer PR: 269390 --- sysutils/tmux/Makefile | 1 + sysutils/tmux/files/patch-e86752820993a0 | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile index f8550ef4c2d2..ad6a518b40f4 100644 --- a/sysutils/tmux/Makefile +++ b/sysutils/tmux/Makefile @@ -1,5 +1,6 @@ PORTNAME= tmux PORTVERSION= 3.3a +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} diff --git a/sysutils/tmux/files/patch-e86752820993a0 b/sysutils/tmux/files/patch-e86752820993a0 new file mode 100644 index 000000000000..e487fb42fada --- /dev/null +++ b/sysutils/tmux/files/patch-e86752820993a0 @@ -0,0 +1,54 @@ +Index: control.c +=================================================================== +--- control.c.orig 2022-04-25 08:25:13 UTC ++++ control.c +@@ -775,6 +775,9 @@ control_start(struct client *c) + + cs->read_event = bufferevent_new(c->fd, control_read_callback, + control_write_callback, control_error_callback, c); ++ if (cs->read_event == NULL) ++ fatalx("out of memory"); ++ + bufferevent_enable(cs->read_event, EV_READ); + + if (c->flags & CLIENT_CONTROLCONTROL) +@@ -782,6 +785,8 @@ control_start(struct client *c) + else { + cs->write_event = bufferevent_new(c->out_fd, NULL, + control_write_callback, control_error_callback, c); ++ if (cs->write_event == NULL) ++ fatalx("out of memory"); + } + bufferevent_setwatermark(cs->write_event, EV_WRITE, CONTROL_BUFFER_LOW, + 0); +--- file.c.orig 2022-04-25 08:25:13 UTC ++++ file.c +@@ -585,6 +585,8 @@ file_write_open(struct client_files *files, struct tmu + + cf->event = bufferevent_new(cf->fd, NULL, file_write_callback, + file_write_error_callback, cf); ++ if (cf->event == NULL) ++ fatalx("out of memory"); + bufferevent_enable(cf->event, EV_WRITE); + goto reply; + +@@ -744,6 +746,8 @@ file_read_open(struct client_files *files, struct tmux + + cf->event = bufferevent_new(cf->fd, file_read_callback, NULL, + file_read_error_callback, cf); ++ if (cf->event == NULL) ++ fatalx("out of memory"); + bufferevent_enable(cf->event, EV_READ); + return; + +--- window.c.orig 2022-04-25 08:25:14 UTC ++++ window.c +@@ -1042,6 +1042,8 @@ window_pane_set_event(struct window_pane *wp) + + wp->event = bufferevent_new(wp->fd, window_pane_read_callback, + NULL, window_pane_error_callback, wp); ++ if (wp->event == NULL) ++ fatalx("out of memory"); + wp->ictx = input_init(wp, wp->event, &wp->palette); + + bufferevent_enable(wp->event, EV_READ|EV_WRITE);