Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 159
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 285 lines (+86/-17)
10 files modified
ChangeLog (+48/-0)
configure (+11/-11)
configure.ac (+3/-3)
debian/changelog (+8/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
libdbusmenu-glib/client.c (+9/-0)
libdbusmenu-glib/menuitem-proxy.c (+2/-0)
libdbusmenu-glib/menuitem.c (+1/-1)
libdbusmenu-glib/server.c (+2/-0)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+77598@code.launchpad.net

Description of the change

Protection. Use it always.

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
159. By Ken VanDine

* New upstream release.
  * Protect functions against NULL results (LP: #757569, LP: #742909,
    LP: #743050, LP: #743661)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2011-09-20 05:02:09 +0000
3+++ ChangeLog 2011-09-29 19:52:24 +0000
4@@ -1,5 +1,53 @@
5 # Generated by Makefile. Do not edit.
6
7+2011-09-29 Ted Gould <ted@gould.cx>
8+
9+ 0.5.0
10+
11+2011-09-29 Ted Gould <ted@gould.cx>
12+
13+ More NULL protection
14+
15+2011-09-23 Ted Gould <ted@gould.cx>
16+
17+ Protecting against NULL private areas
18+
19+2011-09-27 Ted Gould <ted@gould.cx>
20+
21+ Protect from a NULL class
22+
23+2011-09-23 Ted Gould <ted@gould.cx>
24+
25+ Ensure the class is correct
26+
27+2011-09-27 Ted Gould <ted@gould.cx>
28+
29+ Protect client_about_to_show() from abusers
30+
31+2011-09-23 Ted Gould <ted@gould.cx>
32+
33+ Attaching bug
34+
35+2011-09-23 Ted Gould <ted@gould.cx>
36+
37+ Protect an external function better
38+
39+2011-09-27 Ted Gould <ted@gould.cx>
40+
41+ Protect from NULL privates
42+
43+2011-09-23 Ted Gould <ted@gould.cx>
44+
45+ Protect against an odd crash. Not sure how the private becomes 'NULL'
46+
47+2011-09-23 Ted Gould <ted@gould.cx>
48+
49+ Fix ref leaks in proxy code
50+
51+2011-09-23 Michael Terry <michael.terry@canonical.com>
52+
53+ unref added children in proxy code
54+
55 2011-09-19 Ted Gould <ted@gould.cx>
56
57 0.4.94
58
59=== modified file 'configure'
60--- configure 2011-09-20 05:03:25 +0000
61+++ configure 2011-09-29 19:52:24 +0000
62@@ -1,6 +1,6 @@
63 #! /bin/sh
64 # Guess values for system-dependent variables and create Makefiles.
65-# Generated by GNU Autoconf 2.68 for libdbusmenu 0.4.94.
66+# Generated by GNU Autoconf 2.68 for libdbusmenu 0.5.0.
67 #
68 # Report bugs to <ted@canonical.com>.
69 #
70@@ -572,8 +572,8 @@
71 # Identity of this package.
72 PACKAGE_NAME='libdbusmenu'
73 PACKAGE_TARNAME='libdbusmenu'
74-PACKAGE_VERSION='0.4.94'
75-PACKAGE_STRING='libdbusmenu 0.4.94'
76+PACKAGE_VERSION='0.5.0'
77+PACKAGE_STRING='libdbusmenu 0.5.0'
78 PACKAGE_BUGREPORT='ted@canonical.com'
79 PACKAGE_URL=''
80
81@@ -1429,7 +1429,7 @@
82 # Omit some internal or obsolete options to make the list less imposing.
83 # This message is too long to be a string in the A/UX 3.1 sh.
84 cat <<_ACEOF
85-\`configure' configures libdbusmenu 0.4.94 to adapt to many kinds of systems.
86+\`configure' configures libdbusmenu 0.5.0 to adapt to many kinds of systems.
87
88 Usage: $0 [OPTION]... [VAR=VALUE]...
89
90@@ -1499,7 +1499,7 @@
91
92 if test -n "$ac_init_help"; then
93 case $ac_init_help in
94- short | recursive ) echo "Configuration of libdbusmenu 0.4.94:";;
95+ short | recursive ) echo "Configuration of libdbusmenu 0.5.0:";;
96 esac
97 cat <<\_ACEOF
98
99@@ -1649,7 +1649,7 @@
100 test -n "$ac_init_help" && exit $ac_status
101 if $ac_init_version; then
102 cat <<\_ACEOF
103-libdbusmenu configure 0.4.94
104+libdbusmenu configure 0.5.0
105 generated by GNU Autoconf 2.68
106
107 Copyright (C) 2010 Free Software Foundation, Inc.
108@@ -2020,7 +2020,7 @@
109 This file contains any messages produced by compilers while
110 running configure, to aid debugging if configure makes a mistake.
111
112-It was created by libdbusmenu $as_me 0.4.94, which was
113+It was created by libdbusmenu $as_me 0.5.0, which was
114 generated by GNU Autoconf 2.68. Invocation command line was
115
116 $ $0 $@
117@@ -2841,7 +2841,7 @@
118
119 # Define the identity of the package.
120 PACKAGE=libdbusmenu
121- VERSION=0.4.94
122+ VERSION=0.5.0
123
124
125 # Some tools Automake needs.
126@@ -14309,7 +14309,7 @@
127 ###########################
128
129 LIBDBUSMENU_CURRENT=4
130-LIBDBUSMENU_REVISION=4
131+LIBDBUSMENU_REVISION=5
132 LIBDBUSMENU_AGE=0
133
134
135@@ -15659,7 +15659,7 @@
136 # report actual input values of CONFIG_FILES etc. instead of their
137 # values after options handling.
138 ac_log="
139-This file was extended by libdbusmenu $as_me 0.4.94, which was
140+This file was extended by libdbusmenu $as_me 0.5.0, which was
141 generated by GNU Autoconf 2.68. Invocation command line was
142
143 CONFIG_FILES = $CONFIG_FILES
144@@ -15725,7 +15725,7 @@
145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
147 ac_cs_version="\\
148-libdbusmenu config.status 0.4.94
149+libdbusmenu config.status 0.5.0
150 configured by $0, generated by GNU Autoconf 2.68,
151 with options \\"\$ac_cs_config\\"
152
153
154=== modified file 'configure.ac'
155--- configure.ac 2011-09-20 05:03:25 +0000
156+++ configure.ac 2011-09-29 19:52:24 +0000
157@@ -1,11 +1,11 @@
158
159-AC_INIT(libdbusmenu, 0.4.94, ted@canonical.com)
160+AC_INIT(libdbusmenu, 0.5.0, ted@canonical.com)
161 AC_COPYRIGHT([Copyright 2009,2010 Canonical])
162
163 AC_PREREQ(2.62)
164
165 AM_CONFIG_HEADER(config.h)
166-AM_INIT_AUTOMAKE(libdbusmenu, 0.4.94, [-Wno-portability])
167+AM_INIT_AUTOMAKE(libdbusmenu, 0.5.0, [-Wno-portability])
168
169 AM_MAINTAINER_MODE
170
171@@ -172,7 +172,7 @@
172 ###########################
173
174 LIBDBUSMENU_CURRENT=4
175-LIBDBUSMENU_REVISION=4
176+LIBDBUSMENU_REVISION=5
177 LIBDBUSMENU_AGE=0
178
179 AC_SUBST(LIBDBUSMENU_CURRENT)
180
181=== modified file 'debian/changelog'
182--- debian/changelog 2011-09-20 16:41:41 +0000
183+++ debian/changelog 2011-09-29 19:52:24 +0000
184@@ -1,3 +1,11 @@
185+libdbusmenu (0.5.0-0ubuntu1~ppa1) oneiric; urgency=low
186+
187+ * New upstream release.
188+ * Protect functions against NULL results (LP: #757569, LP: #742909,
189+ LP: #743050, LP: #743661)
190+
191+ -- Ted Gould <ted@ubuntu.com> Thu, 29 Sep 2011 14:46:57 -0500
192+
193 libdbusmenu (0.4.94-0ubuntu1) oneiric; urgency=low
194
195 [ Ted Gould ]
196
197=== modified file 'docs/libdbusmenu-glib/reference/version.xml'
198--- docs/libdbusmenu-glib/reference/version.xml 2011-09-20 05:03:25 +0000
199+++ docs/libdbusmenu-glib/reference/version.xml 2011-09-29 19:52:24 +0000
200@@ -1,1 +1,1 @@
201-0.4.94
202+0.5.0
203
204=== modified file 'docs/libdbusmenu-gtk/reference/version.xml'
205--- docs/libdbusmenu-gtk/reference/version.xml 2011-09-20 05:03:25 +0000
206+++ docs/libdbusmenu-gtk/reference/version.xml 2011-09-29 19:52:24 +0000
207@@ -1,1 +1,1 @@
208-0.4.94
209+0.5.0
210
211=== modified file 'libdbusmenu-glib/client.c'
212--- libdbusmenu-glib/client.c 2011-04-19 19:49:33 +0000
213+++ libdbusmenu-glib/client.c 2011-09-29 19:52:24 +0000
214@@ -1057,7 +1057,12 @@
215
216 /* If this wasn't cancelled, we should be good */
217 DbusmenuClient * client = DBUSMENU_CLIENT(user_data);
218+ /* But let's check */
219+ g_return_if_fail(client != NULL);
220 DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
221+ g_return_if_fail(priv != NULL);
222+
223+
224 priv->menuproxy = proxy;
225
226 if (priv->menuproxy_cancel != NULL) {
227@@ -1604,7 +1609,11 @@
228 void
229 dbusmenu_client_send_about_to_show(DbusmenuClient * client, gint id, void (*cb)(gpointer data), gpointer cb_data)
230 {
231+ g_return_if_fail(DBUSMENU_CLIENT(client));
232+ g_return_if_fail(id > 0);
233+
234 DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
235+ g_return_if_fail(priv != NULL);
236
237 about_to_show_t * data = g_new0(about_to_show_t, 1);
238 data->client = client;
239
240=== modified file 'libdbusmenu-glib/menuitem-proxy.c'
241--- libdbusmenu-glib/menuitem-proxy.c 2011-02-16 19:34:17 +0000
242+++ libdbusmenu-glib/menuitem-proxy.c 2011-09-29 19:52:24 +0000
243@@ -188,6 +188,7 @@
244 DbusmenuMenuitemProxy * pmi = DBUSMENU_MENUITEM_PROXY(user_data);
245 DbusmenuMenuitemProxy * child_pmi = dbusmenu_menuitem_proxy_new(child);
246 dbusmenu_menuitem_child_add_position(DBUSMENU_MENUITEM(pmi), DBUSMENU_MENUITEM(child_pmi), position);
247+ g_object_unref (child_pmi);
248 return;
249 }
250
251@@ -283,6 +284,7 @@
252 for (child = children; child != NULL; child = g_list_next(child)) {
253 DbusmenuMenuitemProxy * child_pmi = dbusmenu_menuitem_proxy_new(DBUSMENU_MENUITEM(child->data));
254 dbusmenu_menuitem_child_append(DBUSMENU_MENUITEM(pmi), DBUSMENU_MENUITEM(child_pmi));
255+ g_object_unref (child_pmi);
256 }
257
258 return;
259
260=== modified file 'libdbusmenu-glib/menuitem.c'
261--- libdbusmenu-glib/menuitem.c 2011-06-20 21:43:41 +0000
262+++ libdbusmenu-glib/menuitem.c 2011-09-29 19:52:24 +0000
263@@ -1730,7 +1730,7 @@
264 #endif
265 DbusmenuMenuitemClass * class = DBUSMENU_MENUITEM_GET_CLASS(mi);
266
267- if (class->send_about_to_show != NULL) {
268+ if (class != NULL && class->send_about_to_show != NULL) {
269 return class->send_about_to_show(mi, cb, cb_data);
270 } else if (cb != NULL) {
271 cb(mi, cb_data);
272
273=== modified file 'libdbusmenu-glib/server.c'
274--- libdbusmenu-glib/server.c 2011-08-24 21:13:32 +0000
275+++ libdbusmenu-glib/server.c 2011-09-29 19:52:24 +0000
276@@ -1194,7 +1194,9 @@
277 static void
278 bus_get_layout (DbusmenuServer * server, GVariant * params, GDBusMethodInvocation * invocation)
279 {
280+ g_return_if_fail(DBUSMENU_IS_SERVER(server));
281 DbusmenuServerPrivate * priv = DBUSMENU_SERVER_GET_PRIVATE(server);
282+ g_return_if_fail(priv != NULL);
283
284 /* Input */
285 gint32 parent;

Subscribers

People subscribed via source and target branches

to all changes: