[Pidgin] #8830: Pidgin 2.5.5 crash with jabber

Pidgin trac at pidgin.im
Wed Apr 1 15:02:43 EDT 2009


#8830: Pidgin 2.5.5 crash with jabber
--------------------+-------------------------------------------------------
 Reporter:  Nico    |        Owner:  lschiere
     Type:  defect  |       Status:  new     
Milestone:          |    Component:  XMPP    
  Version:  2.5.5   |   Resolution:          
 Keywords:  jabber  |  
--------------------+-------------------------------------------------------

Comment(by TEMHOTA):

 Now, libxml2 strictly check xml validity. So adding this patch - cure
 problem when login to jabber server, but not cure crash at all.
 There is big mess of threaded/not-threaded internal callback trampolines
 in libxml. Now, clean version overwrite error reporting callback (see:
 http://bugzilla.gnome.org/show_bug.cgi?id=564217 ), modified libxml call
 jabber callback once and still crash with same symptom.
 So - this is problem with libxml2 not with pidgin.

 {{{
 --- pidgin-2.5.5.orig/libpurple/protocols/jabber/parser.c       2009-03-01
 22:37:12.000000000 +0300
 +++ pidgin-2.5.5/libpurple/protocols/jabber/parser.c    2009-04-01
 21:40:42.000000000 +0400
 @@ -207,6 +207,7 @@

  void jabber_parser_free(JabberStream *js) {
         if (js->context) {
 +               xmlParseChunk(js->context, "</stream:stream>" ,16 ,1);
                 xmlParseChunk(js->context, NULL,0,1);
                 xmlFreeParserCtxt(js->context);
                 js->context = NULL;

 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8830#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list