+ freerdp-CVE-2026-22852.patch (CVE-2026-22852, bsc#1256718) + freerdp-CVE-2026-22854.patch (CVE-2026-22854, bsc#1256720) + freerdp-CVE-2026-22856.patch (CVE-2026-22856, bsc#1256722) + freerdp-CVE-2026-22859.patch (CVE-2026-22859, bsc#1256725) + freerdp-CVE-2026-23530.patch (CVE-2026-23530, bsc#1256940) + freerdp-CVE-2026-23531.patch (CVE-2026-23531, bsc#1256941) + freerdp-CVE-2026-23532.patch (CVE-2026-23532, bsc#1256942) + freerdp-CVE-2026-23534.patch (CVE-2026-23534, bsc#1256944) * Fix integer overflow in progressive decoder (bsc#1219049, CVE-2024-22211) OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/freerdp2?expand=0&rev=21
45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
From c4a7c371342edf0d307cea728f56d3302f0ab38c Mon Sep 17 00:00:00 2001
|
|
From: akallabeth <akallabeth@posteo.net>
|
|
Date: Thu, 15 Jan 2026 12:04:36 +0100
|
|
Subject: [PATCH] [gdi,gfx] properly clamp SurfaceToSurface
|
|
|
|
---
|
|
libfreerdp/gdi/gfx.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
Index: freerdp-2.11.7/libfreerdp/gdi/gfx.c
|
|
===================================================================
|
|
--- freerdp-2.11.7.orig/libfreerdp/gdi/gfx.c
|
|
+++ freerdp-2.11.7/libfreerdp/gdi/gfx.c
|
|
@@ -1175,7 +1175,6 @@ static UINT gdi_SurfaceToSurface(RdpgfxC
|
|
UINT status = ERROR_INTERNAL_ERROR;
|
|
UINT16 index;
|
|
BOOL sameSurface;
|
|
- UINT32 nWidth, nHeight;
|
|
const RECTANGLE_16* rectSrc;
|
|
RECTANGLE_16 invalidRect;
|
|
gdiGfxSurface* surfaceSrc;
|
|
@@ -1199,8 +1198,8 @@ static UINT gdi_SurfaceToSurface(RdpgfxC
|
|
if (!is_rect_valid(rectSrc, surfaceSrc->width, surfaceSrc->height))
|
|
goto fail;
|
|
|
|
- nWidth = rectSrc->right - rectSrc->left;
|
|
- nHeight = rectSrc->bottom - rectSrc->top;
|
|
+ const UINT32 nWidth = rectSrc->right - rectSrc->left;
|
|
+ const UINT32 nHeight = rectSrc->bottom - rectSrc->top;
|
|
|
|
for (index = 0; index < surfaceToSurface->destPtsCount; index++)
|
|
{
|
|
@@ -1209,8 +1208,10 @@ static UINT gdi_SurfaceToSurface(RdpgfxC
|
|
if (!is_rect_valid(&rect, surfaceDst->width, surfaceDst->height))
|
|
goto fail;
|
|
|
|
+ const UINT32 rwidth = rect.right - rect.left;
|
|
+ const UINT32 rheight = rect.bottom - rect.top;
|
|
if (!freerdp_image_copy(surfaceDst->data, surfaceDst->format, surfaceDst->scanline,
|
|
- destPt->x, destPt->y, nWidth, nHeight, surfaceSrc->data,
|
|
+ destPt->x, destPt->y, rwidth, rheight, surfaceSrc->data,
|
|
surfaceSrc->format, surfaceSrc->scanline, rectSrc->left,
|
|
rectSrc->top, NULL, FREERDP_FLIP_NONE))
|
|
goto fail;
|