[Pidgin] #6798: Pidgin crashes when trying to connect Sametime protocol.

Pidgin trac at pidgin.im
Wed Aug 27 09:07:10 EDT 2008


#6798: Pidgin crashes when trying to connect Sametime protocol.
--------------------------------+-------------------------------------------
 Reporter:  junglebz            |        Owner:  siege   
     Type:  defect              |       Status:  pending 
Milestone:                      |    Component:  Sametime
  Version:  2.5.0               |   Resolution:          
 Keywords:  libmeanwhile-1.dll  |  
--------------------------------+-------------------------------------------

Comment(by stegoe):

 I experienced the same issue with Pidgin 2.4.3 on Debian today. I tracked
 it down to function "fetch_line" in source file st_list.c which caused a
 segfault due to dreferencing a null pointer. I don't know what that code
 does, but I fixed the problem for me with this patch:

 {{{
 diff -ur meanwhile-1.0.2.orig/src/st_list.c meanwhile-1.0.2/src/st_list.c
 --- meanwhile-1.0.2.orig/src/st_list.c  2005-12-08 23:01:27.000000000
 +0100
 +++ meanwhile-1.0.2/src/st_list.c       2008-08-27 14:27:21.567594640
 +0200
 @@ -600,6 +600,8 @@
    char *start = *str;
    char *end;

 +  /* prevent segfault in case *str = 0 (SG) */
 +  if(! start) return NULL;
    /* move to first non-whitespace character */
    while(*start && g_ascii_isspace(*start)) start++;
    if(! *start) return NULL;
 }}}

 I estimate that this code was nevver triggered before or that the protocol
 has been changed in such a way that it behaves like this now. I did some
 strace-ing and found that a lot of reads from the Sametime server result
 in nothing but thousands of null bytes. Anyway - applying this little
 patch works for me and I am online again :-)

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


More information about the Tracker mailing list