[asterisk-bugs] [JIRA] Created: (ASTERISK-20525) Segfault in XMPP caused by the presence stanza of one of my contacts

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Oct 5 16:57:27 CDT 2012


Segfault in XMPP caused by the presence stanza of one of my contacts
--------------------------------------------------------------------

                 Key: ASTERISK-20525
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20525
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_xmpp
    Affects Versions: 11.0.0-beta2
         Environment: built from head on x86_64 Ubuntu
            Reporter: Martin W
            Assignee: Rusty Newton


Apologies if this report is a dupe or not appropriate here; I am new to the Asterisk source so please go easy.
Builds of asterisk were causing a segfault at start-up. I traced it to a particular contact whose presence contained the following:
{code}
<c ver="mac-2.2.0s" xmlns="http://jabber.org/protocol/caps"/>
{code}
It looks like the handling of "node" and "ver" attributes is incorrect: on res_xmpp.c:3144 (r374095).
To get it running locally I worked around it with the attached patch.
Hope this is useful.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list