[gtk: 1/2] broadway: Restore guint32 type for memory size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] broadway: Restore guint32 type for memory size
- Date: Sat, 27 Feb 2021 23:16:29 +0000 (UTC)
commit d58641041660db5e8093863fd2ff2d113c3b57bc
Author: Rafał Dzięgiel <rafostar github gmail com>
Date: Sat Feb 27 23:43:01 2021 +0100
broadway: Restore guint32 type for memory size
guint32 is used as part of the protocol in broadway backend.
Memory size declared with it was mistakenly replaced with size_t type
which does not guarantee being 32bit on all platforms, leading 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]