Description
Andres Salomon
2009-08-31 19:15:00 UTC
Fixed in a branch, along with some more checks. (In reply to comment #0) > ** ERROR **: Out of memory > aborting... > Aborted This is another manifestation of Bug #30171, incidentally. Created attachment 45003 [details] [review] [PATCH 1/5] dbus_g_proxy_new_from_proxy: check that the old proxy is in fact a proxy Created attachment 45004 [details] [review] [PATCH 2/5] Document that most DBusGProxy methods stop working on ::destroy Created attachment 45005 [details] [review] [PATCH 3/5] dbus_g_proxy_set_interface: check that it's a proxy and not destroyed If it has emitted destroy, our use of priv->manager will be a NULL pointer dereference. Created attachment 45006 [details] [review] [PATCH 4/5] dbus_g_proxy_end_call: check that it's a proxy Created attachment 45007 [details] [review] [PATCH 5/5] DBusGProxy: link against GIO and use GDBus to check names' syntax (In reply to comment #0) > Alternatively, if it is to be handled with an assertion, there should be an > associated > function that a programmer can use to sanity check the path. I used GDBus (GIO) for this; life's too short to implement these functions yet again. 11:39 < wjt> smcv: top marks for proposing that dbus-glib use methods from gdbus Created attachment 45010 [details] [review] [PATCH 5/5 v2] DBusGProxy: link against GIO and use GDBus to check names' syntax Oops, one of the NULL returns on a programming error should have been FALSE. Review of attachment 45003 [details] [review]: looks good. Review of attachment 45004 [details] [review]: I'm assuming that you grepped for g_return_if_fail (!DBUS_G_PROXY_DESTROYED (proxy)); to decide where to sprinkle these notes? Looks good in any case. Review of attachment 45005 [details] [review]: Looks fine. Review of attachment 45006 [details] [review]: Looks good. Review of attachment 45010 [details] [review]: Looks fine. All applied to master for 0.94, thanks! Bug #36216 has a similar documentation patch, adjusted to apply after this one. Bug #7909, Bug #35767 should now be mergeable. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.