git: 1ac65cf22787 - 2024Q2 - net/freerdp3: update to 3.5.0 with 6 CVEs fixed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Apr 2024 21:02:39 UTC
The branch 2024Q2 has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1ac65cf22787496b194b399a3dd90afad81cb95a
commit 1ac65cf22787496b194b399a3dd90afad81cb95a
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-04-18 20:31:11 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-04-18 21:02:04 +0000
net/freerdp3: update to 3.5.0 with 6 CVEs fixed
Changelog:
https://github.com/FreeRDP/FreeRDP/releases/tag/3.5.0
CVE:
CVE-2024-32041 [Low] OutOfBound Read in zgfx_decompress_segment
CVE-2024-32039 [Moderate] Integer overflow & OutOfBound Write in clear_decompress_residual_data
CVE-2024-32040 [Low] integer underflow in nsc_rle_decode
CVE-2024-32458 [Low] OutOfBound Read in planar_skip_plane_rle
CVE-2024-32459 [Low] OutOfBound Read in ncrush_decompress
CVE-2024-32460 [Low] OutOfBound Read in interleaved_decompress
Approved by: arrowd (mentor, implicit)
MFH: 2024Q2
(cherry picked from commit 8c3cc66ae44252df585713b085edda4c4f04c457)
---
net/freerdp3/Makefile | 7 ++++--
net/freerdp3/distinfo | 8 +++---
.../files/patch-winpr_libwinpr_sysinfo_sysinfo.c | 29 ----------------------
3 files changed, 10 insertions(+), 34 deletions(-)
diff --git a/net/freerdp3/Makefile b/net/freerdp3/Makefile
index 7d102ef502eb..cab6f9a4d66b 100644
--- a/net/freerdp3/Makefile
+++ b/net/freerdp3/Makefile
@@ -1,11 +1,14 @@
PORTNAME= freerdp
-DISTVERSION= 3.4.0
-PORTREVISION= 1
+DISTVERSION= 3.5.0
CATEGORIES= net comms
MASTER_SITES= https://pub.freerdp.com/releases/ \
https://github.com/FreeRDP/FreeRDP/releases/download/${DISTVERSION}/
PKGNAMESUFFIX= 3
+PATCH_SITES= https://github.com/FreeRDP/FreeRDP/commit/
+# move epoll detection to platform: https://github.com/FreeRDP/FreeRDP/pull/10097
+PATCHFILES+= be19268d5d186118a751d275602be2fb5ffcc3d8.patch:-p1
+
MAINTAINER= vvd@FreeBSD.org
COMMENT= Free implementation of Remote Desktop Protocol
WWW= https://www.freerdp.com/
diff --git a/net/freerdp3/distinfo b/net/freerdp3/distinfo
index b46f48bda6da..9ffa6383688e 100644
--- a/net/freerdp3/distinfo
+++ b/net/freerdp3/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1710490177
-SHA256 (freerdp-3.4.0.tar.gz) = e44fec047d69c728178a21cdc3d5a55d1dac57e4c104e7318d27cba247232133
-SIZE (freerdp-3.4.0.tar.gz) = 9331562
+TIMESTAMP = 1713470999
+SHA256 (freerdp-3.5.0.tar.gz) = 13c37e875c1f26f78526e58aa63303b04221e393fde61e6106ce72402a63b529
+SIZE (freerdp-3.5.0.tar.gz) = 9335565
+SHA256 (be19268d5d186118a751d275602be2fb5ffcc3d8.patch) = 6d27ff2cc60994794142c0fcabb7988dbacf105636cae66f47e98b7e477c9def
+SIZE (be19268d5d186118a751d275602be2fb5ffcc3d8.patch) = 1553
diff --git a/net/freerdp3/files/patch-winpr_libwinpr_sysinfo_sysinfo.c b/net/freerdp3/files/patch-winpr_libwinpr_sysinfo_sysinfo.c
deleted file mode 100644
index 23b92abce568..000000000000
--- a/net/freerdp3/files/patch-winpr_libwinpr_sysinfo_sysinfo.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- winpr/libwinpr/sysinfo/sysinfo.c.orig 2024-03-14 10:28:33 UTC
-+++ winpr/libwinpr/sysinfo/sysinfo.c
-@@ -34,7 +34,7 @@
- #endif
-
- #if !defined(_WIN32)
--#if defined(_POSIX_SOURCE) && (_POSIX_C_SOURCE >= 200112L)
-+#if (_POSIX_C_SOURCE >= 200112L) || defined(__FreeBSD__)
- #include <time.h>
- #elif !defined(__APPLE__)
- #include <sys/time.h>
-@@ -579,7 +579,7 @@ ULONGLONG winpr_GetTickCount64(void)
- UINT64 winpr_GetTickCount64NS(void)
- {
- UINT64 ticks = 0;
--#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)
-+#if (_POSIX_C_SOURCE >= 200112L) || defined(__FreeBSD__)
- struct timespec ts = { 0 };
-
- if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts) == 0)
-@@ -632,7 +632,7 @@ UINT64 winpr_GetUnixTimeNS(void)
- } t = { 0 };
- GetSystemTimeAsFileTime(&t.ft);
- return (t.u64 - FILETIME_TO_UNIX_OFFSET_S * 10000000ull) * 100ull;
--#elif _POSIX_C_SOURCE >= 200112L
-+#elif (_POSIX_C_SOURCE >= 200112L) || defined(__FreeBSD__)
- struct timespec ts = { 0 };
- if (clock_gettime(CLOCK_REALTIME, &ts) != 0)
- return 0;