[Bug 43584] New: Wocky dataforms serialization segfault

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 7 18:16:01 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=43584

             Bug #: 43584
           Summary: Wocky dataforms serialization segfault
    Classification: Unclassified
           Product: Telepathy
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: gabble
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: alban.crequy at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


Function add_field_to_node_using_default() can segfault with the following
code:

  form = g_object_new (WOCKY_TYPE_DATA_FORM, NULL);
  wocky_data_form_set_string (form, "field", "value", TRUE);
  wocky_data_form_add_to_node (form, ...);

field->raw_value_contents is not initialized because the field does not come
from a WockyNode.

The following patches fix the crash.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list