From nobody Fri Aug 23 18:11:52 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 4Wr7ST16pDz5ThJJ; Fri, 23 Aug 2024 18:11:53 +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 4Wr7ST0Wj6z4K9g; Fri, 23 Aug 2024 18:11:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724436713; 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=jwP5UAUpTGFShW91JToGTBg0QYt5LY/sgo5/hfmcviw=; b=GfjBPZ2yA5S6QHc1WuT90tmVqZVZEc53xqu98wHyLWOwS6gh/mwfNWy8cEONkOxoyvT5zN Iga5b/hea7o13JE4lW9gwJ3M8Mku7bCfkPvqy+w6Xn+HJQHjGLa5a+tK5EQklJ+xMs1Zmh kCyck+wLmbNVBw1F6PY7GgN7TjgGsOCHiT073/oaBH1NOqjrSiNj4A9JkNwvnOCP0MRMNv lB0rZNaczRmQQz19Mr7NwjjoSV/2rMLYnRsB5noXd4kDqhCPHrGw6dDZD8cNuvetZVrt+p vnnvDDFgb1C5M5DcqIsEplGjQcEIWK3UPC9UnXDaDm6O+JEYLKYOYGK0WKswjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724436713; a=rsa-sha256; cv=none; b=c4O6jE/hLX+fHekltp+E6uZEmfBw9cU/K5iNshLdIUMofQsW4N6lZBAL32Afh4ulyvqnD6 UP8/y9QDzHPSJ5ZbmIeZ9u3B5cjcgxoNGz0KsEG09wneaawkN4veXz+IMf0QH2J6dUYGxp 8ab702Bzcq3ZwV8lYBzJPuZkgo/jG22NGi8fh5av8U+QmayX6QlQCbxdP44IMMuqswWtwn O/BPWl1/TNf9w/Yx8Dlc3k9rmymMNhORKomSFOPhIl2Lx8Tr4NFSe6CX1XAZkmbkIxL7I7 gKEABKzfctLO3RdAX38/TLgAknI29moGbaI8H7rUgmXml+sbf9C5uNWsRYjURg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724436713; 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=jwP5UAUpTGFShW91JToGTBg0QYt5LY/sgo5/hfmcviw=; b=TJn/K0inwB+NdLaLPhVN3XE/cPP3Zm/P2zm+azB0kNtEh+oZun3LqYZFyc3+4GRQjVlHah RPm91HkmFXEMHroqh62+Jsl+8StvVKE3eiW5srYukWCY1kRbVeiwpTU3MPVcMEz1W5gliU sySD7JSnjm5JfpkNHse4cBg+2RRpB3chSuC3RkFGJqAXP6ipsSi9XapMUhA13Gq1pDfjxs GbAnB6NC/nE8QrZPIiwUcrRZ0kV/MrFpXDYcs/Gu5HXclqN3qurektgPbEm/0VaRUXANNh +e+ULAUwTiMIc4HVJxlxokjrhm1JQW5qljIlZKj2r/snLjosdZKOcfHRhVDDZg== 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 4Wr7SS6FvgzMDX; Fri, 23 Aug 2024 18:11:52 +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 47NIBqGe033877; Fri, 23 Aug 2024 18:11:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47NIBq4J033874; Fri, 23 Aug 2024 18:11:52 GMT (envelope-from git) Date: Fri, 23 Aug 2024 18:11:52 GMT Message-Id: <202408231811.47NIBq4J033874@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 1386a9a718e5 - main - devel/mcpp: update to 2.7.2.1, fix CVE 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: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1386a9a718e50df51bbe3027d6e3abf4425a7be6 Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=1386a9a718e50df51bbe3027d6e3abf4425a7be6 commit 1386a9a718e50df51bbe3027d6e3abf4425a7be6 Author: Älven AuthorDate: 2024-08-23 07:55:44 +0000 Commit: Fernando Apesteguía CommitDate: 2024-08-23 18:11:37 +0000 devel/mcpp: update to 2.7.2.1, fix CVE ChangeLog: https://github.com/museoa/mcpp/compare/2.7.2...2.7.2.1 Fixes CVE-2019-14274: heap-based buffer overflow * Base Score: 5.5 MEDIUM * Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H PR: 280962 Reported by: alster@vinterdalen.se MFH: 2024Q3 (security fix) Security: CVE-2019-14274 --- devel/mcpp/Makefile | 12 ++++++------ devel/mcpp/distinfo | 5 +++-- devel/mcpp/files/patch-src__internal.H | 19 ------------------- devel/mcpp/files/patch-src__main.c | 11 ----------- devel/mcpp/files/patch-src__support.c | 20 -------------------- devel/mcpp/files/patch-src__system.c | 21 --------------------- 6 files changed, 9 insertions(+), 79 deletions(-) diff --git a/devel/mcpp/Makefile b/devel/mcpp/Makefile index 1c0643bd66f0..d448b23248e4 100644 --- a/devel/mcpp/Makefile +++ b/devel/mcpp/Makefile @@ -1,8 +1,6 @@ PORTNAME= mcpp -PORTVERSION= 2.7.2 -PORTREVISION= 4 +DISTVERSION= 2.7.2.1 CATEGORIES= devel -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/V.${PORTVERSION} MAINTAINER= kmatsui@t3.rim.or.jp COMMENT= Alternative C/C++ preprocessor @@ -12,11 +10,13 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= cpe libtool +CPE_VENDOR= mcpp_project +USE_GITHUB= yes +GH_ACCOUNT= museoa +USE_LDCONFIG= yes + GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --enable-mcpplib -USE_LDCONFIG= yes -CPE_VENDOR= mcpp_project OPTIONS_DEFINE= DOCS diff --git a/devel/mcpp/distinfo b/devel/mcpp/distinfo index df4fd5418fd2..3482a738eb8e 100644 --- a/devel/mcpp/distinfo +++ b/devel/mcpp/distinfo @@ -1,2 +1,3 @@ -SHA256 (mcpp-2.7.2.tar.gz) = 3b9b4421888519876c4fc68ade324a3bbd81ceeb7092ecdbbc2055099fcb8864 -SIZE (mcpp-2.7.2.tar.gz) = 1533457 +TIMESTAMP = 1724203382 +SHA256 (museoa-mcpp-2.7.2.1_GH0.tar.gz) = ec6c2ead79b2334fccf56b8811256c4fccbbe2350e6a2e52dc83a1c7ad995af4 +SIZE (museoa-mcpp-2.7.2.1_GH0.tar.gz) = 1523105 diff --git a/devel/mcpp/files/patch-src__internal.H b/devel/mcpp/files/patch-src__internal.H deleted file mode 100644 index c21a9a6f765e..000000000000 --- a/devel/mcpp/files/patch-src__internal.H +++ /dev/null @@ -1,19 +0,0 @@ ---- ./src/internal.H.orig 2008-08-27 15:01:16.000000000 +0200 -+++ ./src/internal.H 2011-03-30 19:57:37.000000000 +0200 -@@ -390,6 +390,8 @@ - extern char identifier[]; /* Lastly scanned name */ - extern IFINFO ifstack[]; /* Information of #if nesting */ - extern char work_buf[]; -+extern FILEINFO * sh_file; -+extern int sh_line; - /* Temporary buffer for directive line and macro expansion */ - - /* main.c */ -@@ -557,6 +559,6 @@ - #endif - #endif - --#if HOST_HAVE_STPCPY -+#if HOST_HAVE_STPCPY && !defined(stpcpy) - extern char * stpcpy( char * dest, const char * src); - #endif diff --git a/devel/mcpp/files/patch-src__main.c b/devel/mcpp/files/patch-src__main.c deleted file mode 100644 index 2bfbd5c674bf..000000000000 --- a/devel/mcpp/files/patch-src__main.c +++ /dev/null @@ -1,11 +0,0 @@ ---- ./src/main.c.orig 2008-11-05 09:34:46.000000000 +0100 -+++ ./src/main.c 2011-03-30 19:57:37.000000000 +0200 -@@ -326,6 +326,8 @@ - = FALSE; - option_flags.trig = TRIGRAPHS_INIT; - option_flags.dig = DIGRAPHS_INIT; -+ sh_file = NULL; -+ sh_line = 0; - } - - int mcpp_lib_main diff --git a/devel/mcpp/files/patch-src__support.c b/devel/mcpp/files/patch-src__support.c deleted file mode 100644 index 08de1ec8b695..000000000000 --- a/devel/mcpp/files/patch-src__support.c +++ /dev/null @@ -1,20 +0,0 @@ ---- ./src/support.c.orig 2008-06-10 10:32:33.000000000 +0200 -+++ ./src/support.c 2011-03-30 19:57:37.000000000 +0200 -@@ -188,7 +188,7 @@ - size_t length - ) - { -- if (mem_buf_p->bytes_avail < length) { /* Need to allocate more memory */ -+ if (mem_buf_p->bytes_avail < length + 1) { /* Need to allocate more memory */ - size_t size = MAX( BUF_INCR_SIZE, length); - - if (mem_buf_p->buffer == NULL) { /* 1st append */ -@@ -1722,6 +1722,8 @@ - sp -= 2; - while (*sp != '\n') /* Until end of line */ - mcpp_fputc( *sp++, OUT); -+ mcpp_fputc( '\n', OUT); -+ wrong_line = TRUE; - } - goto end_line; - default: /* Not a comment */ diff --git a/devel/mcpp/files/patch-src__system.c b/devel/mcpp/files/patch-src__system.c deleted file mode 100644 index 5e80aabb2378..000000000000 --- a/devel/mcpp/files/patch-src__system.c +++ /dev/null @@ -1,21 +0,0 @@ ---- ./src/system.c.orig 2008-11-26 10:53:51.000000000 +0100 -+++ ./src/system.c 2011-03-30 19:57:37.000000000 +0200 -@@ -3858,6 +3858,9 @@ - } - #endif - -+FILEINFO* sh_file; -+int sh_line; -+ - void sharp( - FILEINFO * sharp_file, - int flag /* Flag to append to the line for GCC */ -@@ -3868,8 +3871,6 @@ - * else (i.e. 'sharp_file' is NULL) 'infile'. - */ - { -- static FILEINFO * sh_file; -- static int sh_line; - FILEINFO * file; - int line; -