git: 1386a9a718e5 - main - devel/mcpp: update to 2.7.2.1, fix CVE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Aug 2024 18:11:52 UTC
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=1386a9a718e50df51bbe3027d6e3abf4425a7be6 commit 1386a9a718e50df51bbe3027d6e3abf4425a7be6 Author: Älven <alster@vinterdalen.se> AuthorDate: 2024-08-23 07:55:44 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> 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; -