From nobody Thu Oct 17 19:06:22 2024 X-Original-To: dev-commits-ports-main@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 4XTy3z27yBz5ZMfG; Thu, 17 Oct 2024 19:06:23 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTy3y6cnjz4Qym; Thu, 17 Oct 2024 19:06:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729191982; 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=VJ63pmARw2lPgCEUUJom/4M8Nf4BJialix5bgj9/GaQ=; b=lgCl1NfhCyWnvXuOLtDAl99mBoGx6LD2Oi6g7I4p/XFbokXh46b7DviDZ2U1gScqIBgKVj GMAAlcilR3dR6ALE8JDq3GVgwi+t75nw22mlBQ0s5xpWW9bh+vDT9Z8zd5ZpDSwj12FTTe JzBkE25TcM1h8psBWzhBNhnlQogxiavPGAF+8mGkbFJiE9JVkssxqKybCLYWqGQaebcuWf H/f0dpQlEeDxzJyHc++dQrbi3iLt6DPqkC4v00JGRxvnFuheLO9AAtK8yYn7+zYIPuCQYF PoD7PhVL1w2JYWtjlaRXUpnjYZkqMtayDZzhOxyL+mCQJSmXpNROHpgdIcuSAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729191982; 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=VJ63pmARw2lPgCEUUJom/4M8Nf4BJialix5bgj9/GaQ=; b=qfmipkFCvyjLxQhSsaThrm/uBMDC2AzvWvCEv4OacVKYmL59t9pSgYz5iZeU6BiBZD2qDD Wxr+ALD61/ZPVQ3jUAd7x6V2ew5zxeGf9dfL6bNYJA9q+mFGpw4Zzeb+reEN+FpUZtFzZJ Z2wEEeVnr9TURVXdbsDFQcmw5YKcbYFxdmVyp3EeBleOIv3m7bRWycvWGAXRWGXbAYV+RB Z8iCxbkXTrjH8K5rQQQpup6cqJ6uj+Obh1SbXw17nAGBn/YlKoiWUX5sahnScqG/YL8o5q mHY9sY6WWxMH1evB0Dak1jgiwaziTIdht1ie6JoO//1RukXWt/3EMOvjrAlV2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729191982; a=rsa-sha256; cv=none; b=DeBBt0XseIsUXDF/HaTpprneQ4GB/n+9ewlKnhS4sFbSO1syYaD3MP2Xg2KNG7l+XxEOSk sQpOcswUaSNzakB0OX8JgF5nnHuQhXJ1iLvPBwH3PLfmU+y5vUL81SGuKtzd67UvEV208s AO2DQCzvKki3FWo1GULk70w6Wh4/QK66LMqvG+ritsM9WvZOzf81Aq8eFdwDtWLhB+45xs +MRlmFC/IUWjtxwre+IopwnXY7XvlYPz4JoB30EKFXoiX7bZgPbjlttNMtfEmwLCtqc7e8 hk0FcjDeBUIzQyU8Dh2HnpGyTheTEhmf+gcf1U0VCoednMKgnzjvBc4xJ4IpAw== 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 4XTy3y6FFfz11y8; Thu, 17 Oct 2024 19:06:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49HJ6Mft089729; Thu, 17 Oct 2024 19:06:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49HJ6MDj089726; Thu, 17 Oct 2024 19:06:22 GMT (envelope-from git) Date: Thu, 17 Oct 2024 19:06:22 GMT Message-Id: <202410171906.49HJ6MDj089726@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 29e0580acd22 - main - sysutils/agedu: Fix infinite loop in round_and_format_age List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 29e0580acd222be65307c398748bdb869015233f Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=29e0580acd222be65307c398748bdb869015233f commit 29e0580acd222be65307c398748bdb869015233f Author: Po-Chuan Hsieh AuthorDate: 2024-10-17 19:02:41 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-10-17 19:02:41 +0000 sysutils/agedu: Fix infinite loop in round_and_format_age - Bump PORTREVISION for package change Obtained from: https://git.tartarus.org/?p=simon/agedu.git;a=commit;h=3622edabe7f6776dc66dd5d685ab9980226cfa6b --- sysutils/agedu/Makefile | 1 + sysutils/agedu/files/patch-html.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/sysutils/agedu/Makefile b/sysutils/agedu/Makefile index 349c017fdd38..9e7d4b002813 100644 --- a/sysutils/agedu/Makefile +++ b/sysutils/agedu/Makefile @@ -1,5 +1,6 @@ PORTNAME= agedu PORTVERSION= 20211129.8cd63c5 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://www.chiark.greenend.org.uk/~sgtatham/agedu/ \ LOCAL/sunpoet diff --git a/sysutils/agedu/files/patch-html.c b/sysutils/agedu/files/patch-html.c new file mode 100644 index 000000000000..8e6b4f107c1d --- /dev/null +++ b/sysutils/agedu/files/patch-html.c @@ -0,0 +1,13 @@ +Obtained from: https://git.tartarus.org/?p=simon/agedu.git;a=commit;h=3622edabe7f6776dc66dd5d685ab9980226cfa6b + +--- html.c.orig 2021-11-29 02:20:04 UTC ++++ html.c +@@ -131,6 +131,8 @@ static unsigned long long round_and_format_age(struct + sprintf(newbuf, "%d year%s", i, i==1 ? "" : "s"); + if (newret < age) + goto finish; ++ if (newret > ret) /* integer overflow - give up! */ ++ goto finish; + strcpy(buf, newbuf); + ret = newret; + }