Flatpak: add broadway variable type fix patch

This commit is contained in:
Rafał Dzięgiel
2021-02-25 09:51:24 +01:00
parent 6b4521c49a
commit 2f3fac7d81
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
From c6320cfd75c65bfb1736b7ca5afc9c0f5ffc09d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= <rafostar.github@gmail.com>
Date: Thu, 25 Feb 2021 09:45:38 +0100
Subject: [PATCH] Broadway: fix unsafe variable type
Only guint32 guarantees to be always 32bit on all platforms. Mixing 32bit and 64bit memory sizes leads to a crash.
---
gdk/broadway/gdkbroadway-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdk/broadway/gdkbroadway-server.c b/gdk/broadway/gdkbroadway-server.c
index 02b6f93183..e6b96ff0b9 100644
--- a/gdk/broadway/gdkbroadway-server.c
+++ b/gdk/broadway/gdkbroadway-server.c
@@ -235,7 +235,7 @@ static void
parse_all_input (GdkBroadwayServer *server)
{
guint8 *p, *end;
- size_t size;
+ guint32 size;
BroadwayReply *reply;
p = server->recv_buffer;
--
2.26.2

View File

@@ -24,6 +24,10 @@
{ {
"type": "patch", "type": "patch",
"path": "gtk4-popover-unrealize.patch" "path": "gtk4-popover-unrealize.patch"
},
{
"type": "patch",
"path": "gtk4-broadway-fix-unsafe-variable-type.patch"
} }
] ]
} }