Bug 7057 - crash in glib bindings introspecting an interface with properties
Summary: crash in glib bindings introspecting an interface with properties
Status: RESOLVED DUPLICATE of bug 8607
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-28 21:57 UTC by Jonathan Matthew
Modified: 2006-10-25 12:52 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch (876 bytes, patch)
2006-05-28 21:59 UTC, Jonathan Matthew
Details | Splinter Review

Description Jonathan Matthew 2006-05-28 21:57:07 UTC
The block in dbus-gobject.c:write_interface for dealing with properties is
broken in three ways:
- dereferences NULL when calling _dbus_gutils_wincaps_to_uscore (should pass in
propname, not spec->name)
- double frees the string resulting from _dbus_gutils_wincaps_to_uscore
- adds an extra "</property>" tag to the xml output
Comment 1 Jonathan Matthew 2006-05-28 21:59:34 UTC
Created attachment 5753 [details] [review]
patch

Fixes the above issues.
Comment 2 Rob Taylor 2006-10-25 12:52:58 UTC
I can't see how there's a duplicate </property> emitted frm the current code
base, so i assume that's been fixed by someone else at some point. Otherwise
this is the  same as #8607, fixed in 0.72

*** This bug has been marked as a duplicate of 8607 ***


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.