Package: libinfinity / 0.5.2-6.1

0001-Fix-a-few-enumeration-type-registration.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From 5125dbe5f8194d45fd9a196c980d52aaf61a184d Mon Sep 17 00:00:00 2001
From: Colomban Wendling <ban@herbesfolles.org>
Date: Wed, 30 May 2012 19:50:21 +0200
Subject: [PATCH] Fix a few enumeration type registration

InfXmlConnectionStatus, InfcBrowserStatus and InfGtkBrowserModelStatus
GType registration code missed an array sentinel leading to GType
reading invalid memory paste the end of the array.
---
 ChangeLog                               |    9 +++++++++
 libinfgtk/inf-gtk-browser-model.c       |    4 ++++
 libinfinity/client/infc-browser.c       |    4 ++++
 libinfinity/common/inf-xml-connection.c |    4 ++++
 4 files changed, 21 insertions(+)

diff --git a/libinfgtk/inf-gtk-browser-model.c b/libinfgtk/inf-gtk-browser-model.c
index cd3ae48..3c11e83 100644
--- a/libinfgtk/inf-gtk-browser-model.c
+++ b/libinfgtk/inf-gtk-browser-model.c
@@ -94,6 +94,10 @@ inf_gtk_browser_model_status_get_type(void)
         INF_GTK_BROWSER_MODEL_ERROR,
         "INF_GTK_BROWSER_MODEL_ERROR",
         "error"
+      }, {
+        0,
+        NULL,
+        NULL
       }
     };
 
diff --git a/libinfinity/client/infc-browser.c b/libinfinity/client/infc-browser.c
index 086e0f8..adf571f 100644
--- a/libinfinity/client/infc-browser.c
+++ b/libinfinity/client/infc-browser.c
@@ -3832,6 +3832,10 @@ infc_browser_status_get_type(void)
         INFC_BROWSER_CONNECTED,
         "INFC_BROWSER_CONNECTED",
         "connected"
+      }, {
+        0,
+        NULL,
+        NULL
       }
     };
 
diff --git a/libinfinity/common/inf-xml-connection.c b/libinfinity/common/inf-xml-connection.c
index 2efe1c8..54ad3a7 100644
--- a/libinfinity/common/inf-xml-connection.c
+++ b/libinfinity/common/inf-xml-connection.c
@@ -166,6 +166,10 @@ inf_xml_connection_status_get_type(void)
         INF_XML_CONNECTION_OPENING,
         "INF_XML_CONNECTION_OPENING",
         "opening"
+      }, {
+        0,
+        NULL,
+        NULL
       }
     };
 
-- 
1.7.10